Upgrading to XCode 4.3 and solving the /Developer issue

With the upgrade to XCode 4.3, one of the significant changes is that the /Developer folder is gone and instead bundled within the /Applications/XCode.app/ content bundle. One thing that you have to remember is that for the command-line tools (of which now you should be downloading individually within the Apple Developer Site) is that you have to switch those command lines to use your new path, rather than the old Developer path.

An excellent article from UseYourLoaf, outlines what needs to be done. 

For example I often used the agvtool to manage build version numbers but if you try to run it after installing Xcode 4.3 you will get the following error message:

$ agvtool
Error: No developer directory found at /Developer. 
Run /usr/bin/xcode-select to update the developer
 directory path.

The xcode-select utility allows you to switch between versions of Xcode which makes it easy to correct the problem:

$ sudo /usr/bin/xcode-select -switch /Applications/Xcode.app

If you are wondering where all of the files that were previously under /Developer have gone you can find them by right-clicking on the Xcode.app file in the Applications folder and showing the package contents. The old /Developer/usr/bin directory is now in /Applications/Xcode.app/Contents/Developer/usr/bin.

Don’t forget to clean up your shell environment if you previously referred to anything under /Developer. So for example, if you added /Developer/usr/bin to your PATH and /Developer/usr/share/man to your MANPATH you will need to prepend /Applications/Xcode.app/Contents to these settings in your shell login script.


This entry was posted in General, iOS and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s