<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: oguzoldev</title>
    <description>The latest articles on DEV Community by oguzoldev (@oguzoldev).</description>
    <link>https://dev.to/oguzoldev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F60112%2Fceca1da7-e5d8-48d1-a97a-d8a32b453b7f.png</url>
      <title>DEV Community: oguzoldev</title>
      <link>https://dev.to/oguzoldev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/oguzoldev"/>
    <language>en</language>
    <item>
      <title>How to fix "macOS: xcrun: error: invalid active developer path, missing xcrun" error?</title>
      <dc:creator>oguzoldev</dc:creator>
      <pubDate>Tue, 15 Dec 2020 19:17:36 +0000</pubDate>
      <link>https://dev.to/oguzoldev/macos-xcrun-error-invalid-active-developer-path-missing-xcrun-411a</link>
      <guid>https://dev.to/oguzoldev/macos-xcrun-error-invalid-active-developer-path-missing-xcrun-411a</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fo9uz.dev%2Fimages%2Fmacos-xcrun-error-invalid-active-developer-path-missing-xcrun.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fo9uz.dev%2Fimages%2Fmacos-xcrun-error-invalid-active-developer-path-missing-xcrun.jpg" alt="macos-xcrun-error-invalid-active-developer-path-missing-xcrun" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I ran into this error when I tried any &lt;code&gt;brew&lt;/code&gt; operation (like &lt;code&gt;brew update&lt;/code&gt; and &lt;code&gt;brew upgrade&lt;/code&gt;) on a Mac. I had just upgraded to macOS Big Sur 11.1 and suddenly brew broke!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;brew update

xcrun: error: invalid active developer path &lt;span class="o"&gt;(&lt;/span&gt;/Library/Developer/CommandLineTools&lt;span class="o"&gt;)&lt;/span&gt;,
missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The fix, luckily, is pretty straight forward. Install the Xcode toolkit! Even if you had it installed before, you might have to re-register it or update it to the latest version.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;xcode-select &lt;span class="nt"&gt;--install&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If that doesn’t work, force it to reset. You’ll need &lt;code&gt;sudo&lt;/code&gt; access for this one.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;xcode-select &lt;span class="nt"&gt;--reset&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If even that fails, go to the &lt;a href="https://developer.apple.com/download/more/" rel="noopener noreferrer"&gt;Apple developer download section&lt;/a&gt; and download Xcode manually.&lt;/p&gt;

</description>
      <category>macos</category>
      <category>terminal</category>
      <category>commandlinetools</category>
    </item>
  </channel>
</rss>
