How to upgrade xcode by keeping the previous version? - xcode

is there anyway to upgrade latest version of xcode and also keeping the previous version? Like I'll upgrade my xcode from version 8.3 to version 9.0, how can I also keep the version 8.3 in my mac? will duplicate do the job done? I'm on mac-os sierra.

The Xcode copy that was downloaded from the AppStore is always managed by the AppStore app; even if you move the bundle to a different location (folder), the next time you download Xcode from the store it will be overwritten.
You should always keep the "managed" (purchased) version up to date, and download any necessary older versions from Apple's developer website (log in needed).
In your particular case:
Update the store version from 8.3 to 9.0 (through the AppStore app)
Download the xip installer for 8.3 from Apple's Developer website, and install (for example) in /Applications/Xcode_old/Xcode.app (to avoid filename collision with Xcode 9, residing in Applications/Xcode.app)

Related

Updating xcode after upgrading MacOs operating system

I have just upgraded my MacOs operating system on one of my older machines from El Capitan to Big Sur. I subsequently tried to open xcode but I get the error:
In order to use “Xcode”, you need to update to the latest version. The version of Xcode installed on this Mac is not compatible with macOS Big Sur. You have “Xcode” 7.3.1. Download version 14.1 for free from the App Store.
When I go to the App Store, the only available xcode that I can see is 14.1 which is for Ventura and therefore not compatible with my current set up and so of no use. How to upgrade to say xcode 13, compatible with Big Sur? I hope it is possible without having to manually download xip file from developers section of apple.
The App Store will only let you download and install the latest version of Xcode.
You answered the question in the last sentence. Download Xcode from Apple's developer site. The site Xcode Releases has Apple's download links for every version of Xcode. Xcode 13.2.1 is the latest version that runs on macOS 11.

Can I run project on older version of Xcode and iOS Simulator

Is it possible to run project from the newest version of XCode on an older version of XCode (older Mac with older XCode and iOS Simulator)?
It really depends. Storyboards will have trouble on older versions of Xcode as they are updated regularly. Some other new features may be a problem too, it really depends on your project.
You can download old simulators in the current Xcode from: Preferences > Downloads and then in components, but it doesn't go back very far, at the time of writing as far as iOS 7.1.
If your Mac is too old to run current Xcode/Yosemite you probably do need to upgrade your Mac sooner or later I'm afraid.

What will happen to my old xcode when I download new xcode?

The question is in the title already. I have an old XCode. Then there is a software update message on my Mac. It said that there is a newer version of XCode. If I download the new XCode, will my old XCode be deleted? Or I will end up with 2 XCodes?
If you are upgrading Xcode through the Mac App Store then it will replace your old version of Xcode. However, if you download a beta version then you can have the beta version and the production version on your machine both at the same time.
For example during the iOS 8 beta period, I had the production version of Xcode 5 on my machine and also Xcode 6 beta (all versions) installed at the same time.
However, either way you really don't need to fret because you can always download the older versions of Xcode through developer.apple.com. Just look in the "Downloads" section and click the "Looking for an older version of Xcode?" link which takes you to: Downloads for Apple Developers
It depends. If you install a GM version of Xcode it will replace your current GM version, and it will be named "Xcode". If you install a beta version, it will install a separate Xcode, with a beta mark appended to the name, eg. "Xcode6-Beta5".

Can I run xcode 4.3.3 without lion?

My current version of xcode is 4.0, which doesn't support iOS 5. However, when I tried to download the latest version, 4.4, it said I needed to upgrade to lion.
I'm wondering if I can download a less recent version of xcode. My current os version is 10.6.8; would I be able to use xcode version 4.3.3?
No.
If I remember correctly, Xcode 4.2 was the last version you could run without Lion.
At https://connect.apple.com/ you are able to download the entire dmg for Xcode, even for older versions, but you must be registered as an Apple developer.

how to fix old xcode installations on mac

I had xcode 3.2.something. and iwth ios sdks 3.0-3.1-....4.1 and 2 iphone simulator sdks.
Now i installed xcode 4.0 with ios sdk 4.3 something like that.
Now all my previous applications cannot be launched nor on device nor on simulator because there's not a single old sdk available.
so next i reinserted the original cds containing macosx and xcode and reinstalled the first xcode i used, but now there's not one ios sdk available at all.
i've been surfing the net for hours now, andi have a couple of questions:
1)have i had to uninstall the xcode 3.2.x before installing xcode 4?
2)how to uninstall applications on mac??? just to make sure that the answer i've found is the correct one.
3)how can erase the traces of all previous xcodes and their sdks in order to install the original one, now that i learned how to install different xcode versions side by side.
4) now what do you think i should to recover? do i have to back up everything and reinstall mac from the beginning?
thank you
So, your questions:
1. Have I got to uninstall XCode 3.2 before installing XCode 4? - No, you don't, but the XCode installer will overwrite your old copy by default. When installing the newer version of XCode and the iOS SDK you must specify a different install directory (eg, create a new folder in the root of your drive called 'Developer 4' for XCode 4.
2. How can I uninstall XCode? - Normally on a mac you would just drag your application to the trash, but it's a little more complicated with XCode. Refer to the instructions at this link: http://pushkararora.com/how-to/how-to-uninstall-xcode-completely/
3. How can I erase all traces of all previous XCodes? - see the answer above for question 2 :)
You can obtain old versions of the SDK from various unofficial online sources if you need to roll back to iOS 3 SDKs. However, it may not be all that much work to move your apps over to the 4.x SDKs.
ok it turned out that at the beginning i was using xcode 3.2.4 with ios sdk 4.1
The xcode that comes with mac osx only targets mac sdk. No iphone support
So i got xcode 3.2.4 setup from a backup (you can find it online) and installed and this should work
And now i have 3.2.5 using sdk 4.2 and targetting all till 3.0
and also xcode 4.0.2

Resources