I would like to install both Xcode 3 and Xcode 4 on the same OS instance using the headless install mode (I cannot VPN). Xcode3 should be installed in a folder denoted Developer3, Xcode4 in Developer4.
I've executed the Xcode installer with -showChoicesXML (sudo installer -showChoicesXML -pkg "Xcode and iOS SDK.mpkg" -target mytarget) trying to see if I can customize the default folder - I haven't found anything helpful.
Is it safe to install Xcode in the /Developer folder and after that to rename the folder to another name? It might be a solution, but I suppose it will not work properly.
Thanks.
It is safe to rename the /Developer
folder to something else after installation and use xcode-select
to switch the active version of the developer tools when working on the command-line.
Also, you should install Xcode 4 after Xcode 3, as only one version of the UNIX tools (installed in /usr
) can exist on a system.