Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4.4.1 and Xcode 4.5 side by side

Tags:

xcode

ios

Anyone have this two versions of Xcode side by side on same machine?

I have Xcode 4.4.1 installed and I want to update to latest version (4.5) so I can use iOS 6 SDK, but I need to keep 4.4.1 for some clients.

Can I make a simple copy of this version and keep installed after upgrade? Because I know some people tried to make this and failed.

like image 503
Sebastián Castro Avatar asked Sep 24 '12 15:09

Sebastián Castro


2 Answers

  1. Complete a Time Machine backup.
  2. Upgrade Xcode to 4.5.
  3. Restore Xcode 4.4 from the Time Machine backup. (You may have to go back a few hours, depending on how long Xcode 4.5 took to download. Check the file size.) Keep Both.
  4. Rename Xcode (Original) to Xcode 4.4.1.

Once you've done this, just run the appropriate version of Xcode. Xcode 4.5 will update some system components, but these updates won't prevent Xcode 4.4.1 from running.

If you use the command line tools, you should use xcode-select to switch between versions or the environment variable DEVELOPER_DIR to pin to a specific version.

like image 177
Steven Fisher Avatar answered Sep 21 '22 10:09

Steven Fisher


Since Xcode is available on the App Store it's just a regular app. It doesn't install anything under /Developer that could be overridden if you install a new version. All the required files are inside the app bundle (except preferences, docs - those will be shared by multiple Xcode versions)

If you want to be sure, I recommend the following. Backup the old version (to an external hard disk), install the new version and restore the old version with a different name.

like image 39
DrummerB Avatar answered Sep 21 '22 10:09

DrummerB