<?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: Chester Martinez</title>
    <description>The latest articles on DEV Community by Chester Martinez (@akositey).</description>
    <link>https://dev.to/akositey</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%2F329782%2Faec9e19f-d334-4b15-b9e6-f261462e907a.jpg</url>
      <title>DEV Community: Chester Martinez</title>
      <link>https://dev.to/akositey</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/akositey"/>
    <language>en</language>
    <item>
      <title>No Xcode or CLT version detected</title>
      <dc:creator>Chester Martinez</dc:creator>
      <pubDate>Wed, 23 Sep 2020 02:08:23 +0000</pubDate>
      <link>https://dev.to/akositey/no-xcode-or-clt-version-detected-3mk1</link>
      <guid>https://dev.to/akositey/no-xcode-or-clt-version-detected-3mk1</guid>
      <description>&lt;p&gt;I recently updated to MacOS Catalina. And faced some issues when running some &lt;code&gt;git&lt;/code&gt; and &lt;code&gt;npm&lt;/code&gt; commands.&lt;/p&gt;

&lt;p&gt;I cloned a repo from GitHub and tried to run&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm ci
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This error appeared after running the command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;No Xcode or CLT version detected
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;as the cover image above shows.&lt;/p&gt;

&lt;p&gt;Now as every faithful developer, I googled the error and pointed me to StackOverflow and some other blogs.&lt;/p&gt;

&lt;p&gt;I checked CommandLineTools path with&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;xcode-select -print-path
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and it showed the correct path&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/Library/Developer/CommandLineTools
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So maybe the package was broken or some links were not created (not sure lol). So I deleted it&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo rm -rf /Library/Developer/CommandLineTools
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After deleting CommandLineTools this window prompted me&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--LwKlnRIH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/tr74gyf75fzsegku32os.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--LwKlnRIH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/tr74gyf75fzsegku32os.png" alt="Alt Text" width="463" height="192"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If the window didn't show, just run&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;xcode-select --install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But for some reason it didn't download and showed me an error&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--CEhWjizG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/oh4iof3q82z4bwkya091.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--CEhWjizG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/oh4iof3q82z4bwkya091.png" alt="Alt Text" width="501" height="154"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So I went to download it manually in Apple website. Use your Apple ID to sign in.&lt;br&gt;
&lt;code&gt;https://developer.apple.com/download/more/?=Command%20Line%20Tools&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;I chose the latest one which is the first entry in the table.&lt;/p&gt;

&lt;p&gt;After downloading I just installed the package normally:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--diaEPm00--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/0bpx3jgarsjrfzhbvola.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--diaEPm00--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/0bpx3jgarsjrfzhbvola.png" alt="Alt Text" width="615" height="440"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And everything worked back to normal after that. &lt;/p&gt;

&lt;p&gt;Hope this helps out somebody.&lt;/p&gt;

&lt;p&gt;Cheers!&lt;/p&gt;

</description>
      <category>npm</category>
      <category>git</category>
      <category>xcode</category>
      <category>osx</category>
    </item>
  </channel>
</rss>
