How to build against older iOS versions with the latest Xcode downloads?

Viewed 36600

I have multiple versions of Xcode installed. I can build my project against older iOS versions by launching old Xcode. But how could I use newer Xcode versions to build against older iOS versions?

In the project settings there's a Base SDK dropdown. It only offers the very latest iOS version for selection.

Under /Developer/Platforms/ there is an iOS.platform folder which contains this:

SDKs/
  iPhoneOS3.2.sdk
  iPhoneOS4.1.sdk

And finally, there is an interesting folder called DeviceSupport, which contains a whole bunch of versions ranging from 3.0 to 4.1!

There must be a way to copy SDKs / DeviceSupport files from old Xcode to new Xcode and make the older ones like iOS 4.0 or even 3.0 working. How?

3 Answers

This became harder in Xcode 3.2.5 (iOS 4.2.1) as the separate "Base SDK" values for Device and Simulator are replaced with a single "iOS SDK".

See my post in Xcode/Simulator: How to run older iOS version? for details on how to access older Simulator SDK versions in this latest Xcode.

Related