I came up against a bit of an issue today, I realised my Xcode was stuck on version 4.1 and the AppStore wasn’t detecting the update available to v4.2. Now normally this wouldn’t be an issue, however version 4.1 doesn’t include the iOS 5.* SDK’s.
So I decided the only way around the issue, would be to completely remove the old version, then install the fresh version 4.2 straight from the AppStore.
This seemed to do the trick for me:
- Open Finder
- Open the Utilities folder
- Open a terminal window
- Copy and paste the following line in:
1sudo /Developer/Library/uninstall-devtools –mode=all - Press return
- When prompted, enter your password
- Press return
Xcode should then eventually uninstall. This may take some time depending on the speed on your machine.