{"id":125,"date":"2012-02-18T10:38:35","date_gmt":"2012-02-18T15:38:35","guid":{"rendered":"http:\/\/developer.casgrain.com\/?p=125"},"modified":"2012-02-18T10:38:38","modified_gmt":"2012-02-18T15:38:38","slug":"upgrading-to-xcode-4-3","status":"publish","type":"post","link":"http:\/\/developer.casgrain.com\/?p=125","title":{"rendered":"Upgrading to Xcode 4.3"},"content":{"rendered":"<p>Xcode 4.3 was <a href=\"http:\/\/itunes.apple.com\/us\/app\/xcode\/id497799835?ls=1&#038;mt=12\">released<\/a> on February 16th. It is now truly a Mac App Store application.<\/p>\n<p>\nWith Xcode 4.2, you downloaded an &#8220;Install Xcode&#8221; application from the Mac App Store, which in turn &#8220;installed&#8221; Xcode in the usual location, &#8220;\/Developer&#8221;, which is a folder named &#8220;Developer&#8221; at the root of your hard drive.<\/p>\n<p>\nFurthermore, if you wanted Xcode to automatically update (from the Mac App Store), you had to keep the &#8220;Install Xcode&#8221; application (1.8 GB) in your Applications folder, as that was what the the Mac App Store actually updated; you then had to run &#8220;Install Xcode&#8221; manually to update.<\/p>\n<p>\nThis has changed for the better.<\/p>\n<p>\nXcode.app now installs directly in the Applications folder. In fact, it will helpfully propose to move the older, obsolete installation to the Trash for you:<br \/>\n<center><\/p>\n<div>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.casgrain.com\/images\/xcode-migration.jpg\" width=\"916\" height=\"635\" alt=\"Xcode move to Trash\" \/>\n<\/div>\n<p><\/center><\/p>\n<p>\nXcode is also smaller, since a lot of (probably) lesser-used software has moved to optional downloads. Peter Hosey has a <a href=\"http:\/\/boredzo.org\/blog\/archives\/2012-02-17\/xcode-and-friends\">comprehensive list<\/a>.<\/p>\n<p>\nIn my case, I had one more thing to do: install the command-line tools. They can be found in Xcode > Preferences > Downloads > Components. To get them working properly, here is what I had to do:<\/p>\n<ol>\n<li><code>sudo xcode-select -switch \/Applications\/Xcode.app<\/code><br \/>This updates the command-line Xcode tools to point to the new location, and is only important if you are migrating from 4.2. A new install should work fine.<\/li>\n<li>Install autoconf. Some of my projects (and many unix-based ones) use <a href=\"http:\/\/www.gnu.org\/software\/autoconf\/\">autoconf<\/a> to generate &#8216;configure&#8217; files, and this tool is missing from the new install. It was present in earlier installs, so I have filed a <a href=\"https:\/\/bugreport.apple.com\">radar<\/a>.<br \/>In the meantime, I was able to <a href=\"http:\/\/ftp.gnu.org\/gnu\/autoconf\/autoconf-latest.tar.gz\">download the latest version<\/a> (2.84 at the time of this writing) and install it with the usual <code>.\/configure; make; sudo make install<\/code> dance<\/li>\n<p><li>Update any scripts that have a hard-coded &#8216;\/Developer&#8217; path.<br \/>Since everything is in the &#8216;\/Applications\/Xcode.app&#8217; bundle, the new path is &#8216;\/Applications\/Xcode.app\/Contents\/Developer&#8217;. If you don&#8217;t want to hard-code it (for instance, if you use Xcode 4.3 but your colleagues are still on Xcode 4.2), you can use the output of <code>xcode-select --print-path<\/code> to find the path to &#8216;Developer&#8217; on any system. This works in Xcode 3 as well.\n<\/ol>\n<p>\nXcode 4.3 requires MacOSX Lion 10.7.3.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Xcode 4.3 was released on February 16th. It is now truly a Mac App Store application. With Xcode 4.2, you downloaded an &#8220;Install Xcode&#8221; application from the Mac App Store, which in turn &#8220;installed&#8221; Xcode in the usual location, &#8220;\/Developer&#8221;, which is a folder named &#8220;Developer&#8221; at the root of your hard drive. Furthermore, if [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,5,10],"tags":[],"class_list":["post-125","post","type-post","status-publish","format-standard","hentry","category-ios","category-macosx","category-xcode"],"_links":{"self":[{"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=\/wp\/v2\/posts\/125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=125"}],"version-history":[{"count":2,"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=\/wp\/v2\/posts\/125\/revisions"}],"predecessor-version":[{"id":127,"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=\/wp\/v2\/posts\/125\/revisions\/127"}],"wp:attachment":[{"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=125"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}