{"id":1110,"date":"2019-09-24T15:41:42","date_gmt":"2019-09-24T23:41:42","guid":{"rendered":"https:\/\/accretiondisc.com\/blog\/?p=1110"},"modified":"2020-05-25T09:14:49","modified_gmt":"2020-05-25T17:14:49","slug":"xcode-and-bandwidth-caps","status":"publish","type":"post","link":"https:\/\/accretiondisc.com\/blog\/2019\/09\/24\/xcode-and-bandwidth-caps\/","title":{"rendered":"Xcode and Bandwidth Caps"},"content":{"rendered":"\n<p>For a long time, I&#8217;ve been in the habit of installing Xcode on Macs, even though I wasn&#8217;t developing software. (Partly because I wasn&#8217;t sure what I needed to run Fink\/MacPorts\/Homebrew, and partly because I think <a href=\"http:\/\/osxdaily.com\/2010\/03\/04\/compare-two-files-with-filemerge\/\">FileMerge<\/a> is pretty sweet, even if it&#8217;s the <em>last<\/em> thing on <a href=\"https:\/\/developer.apple.com\/xcode\/features\/\">this list<\/a> of features.) But lately, the typical Xcode update is like 7 GB, and I just don&#8217;t need it.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"327\" height=\"216\" src=\"https:\/\/accretiondisc.com\/blog\/wp-content\/uploads\/2019\/09\/macosx-xcode11-8gb-download.jpg\" alt=\"\" class=\"wp-image-1116\" srcset=\"https:\/\/accretiondisc.com\/blog\/wp-content\/uploads\/2019\/09\/macosx-xcode11-8gb-download.jpg 327w, https:\/\/accretiondisc.com\/blog\/wp-content\/uploads\/2019\/09\/macosx-xcode11-8gb-download-300x198.jpg 300w\" sizes=\"auto, (max-width: 327px) 100vw, 327px\" \/><figcaption>7.6 GB worth of awesomeness. :-\/<\/figcaption><\/figure><\/div>\n\n\n\n<p>So I wanted to know how to get rid of these monstrous downloads. And I found out. First, you <a href=\"https:\/\/macpaw.com\/how-to\/uninstall-xcode-on-macos\">get rid of Xcode<\/a>. But that&#8217;s only step one:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ cc<br> xcrun: error: active developer path (\"\/Applications\/Xcode.app\/Contents\/Developer\") does not exist<br> Use sudo xcode-select --switch path\/to\/Xcode.app to specify the Xcode that you wish to use for command line developer tools, or use xcode-select --install to install the standalone command line developer tools.<br> See man xcode-select for more details.<\/pre>\n\n\n\n<p>So, next, you have to <a href=\"https:\/\/stackoverflow.com\/questions\/34617452\/how-to-update-xcode-from-command-line\">get rid of the command line tools<\/a> and reinstall them:<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<pre class=\"wp-block-preformatted\"><tt>$ rm -rf \/Library\/Developer\/CommandLineTools<\/tt><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><tt>$ xcode-select --install<\/tt><\/pre>\n<\/div><\/div>\n\n\n\n<p><strong>UPDATE<\/strong>: When that doesn&#8217;t work, you read further down <a href=\"https:\/\/stackoverflow.com\/questions\/34617452\/how-to-update-xcode-from-command-line\">that page<\/a> and find the correct answer:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo xcode-select -s \/Library\/Developer\/CommandLineTools<\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For a long time, I&#8217;ve been in the habit of installing Xcode on Macs, even though I wasn&#8217;t developing software. (Partly because I wasn&#8217;t sure what I needed to run Fink\/MacPorts\/Homebrew, and partly because I think FileMerge is pretty sweet, even if it&#8217;s the last thing on this list of features.) But lately, the typical [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[52],"tags":[1046,383,1048,1047,1010],"class_list":["post-1110","post","type-post","status-publish","format-standard","hentry","category-technology","tag-bandwidth-cap","tag-command-line","tag-filemerge","tag-remove","tag-updates"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paRqpr-hU","_links":{"self":[{"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/posts\/1110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/comments?post=1110"}],"version-history":[{"count":0,"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/posts\/1110\/revisions"}],"wp:attachment":[{"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/media?parent=1110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/categories?post=1110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/tags?post=1110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}