简体   繁体   中英

Xcode 4.6 and Xcode 5 installed together

我们可以在同一台机器上安装Xcode 4.6和xcode 5而无需从xcode 4.6升级到xcode 5吗?

Yes, you can install multiple versions of Xcode. They will install into separate directories. I've found that the best practice is to install the version that came with your Mac first, and then install downloaded versions, but it probably doesn't make a big difference. See this Apple Developer Connection page for lots of details.

It's easy to have multiple XCode installs.

In the installer there's a pulldown for the location... you just need to pick a new location when you're installing the beta version.

These instructions from an Apple dev tools evangelist have the full details (Apple dev username/password required): https://devforums.apple.com/message/40847#40847

Then grab yourself a custom icon for the Beta version of XCode you're using, so you can tell them apart in the dock: http://iphonedevelopment.blogspot.com/2009/03/multiple-developer-tool-installs.html

I prefer to create separate folders for different versions of Xcode, which I find provides a little more organization than renaming each Xcode release.

My folder layout looks as follows:

/Applications/Xcode.app
/Applications/Xcode4.6/Xcode.app
/Applications/Xcode5.0/Xcode.app

Simply create the necessary folders and drag/drop the relevant Xcode version into the same. You can also download older versions of Xcode from http://developer.apple.com/downloads/ and follow the same idea.

With the folder structure approach, from within a script (eg bash shell) you can move between versions of XCode with the xcode-select command line utility by simply specifying the desired folder:

$sudo xcode-select --switch /Applications/Xcode4.6/Xcode.app

Change the release number in the command line to switch to a different version.

是的,只要确保有两个不同的名字!

Yes you can because both can be installed and run simultaneously.

Create a folder with XCode 4 for example and keep XCode 5 in Application Folder.

But, with XCode 5 you can use the property of XCode 4 using iOS 6 sdk. Have a look here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM