Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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?

like image 560
openfrog Avatar asked Sep 19 '10 20:09

openfrog


People also ask

How do I install iOS 14.6 on Xcode?

Go into contents/Developer/platform/iPhoneOS. platform/DeviceSupport. Copy your previous iOS 14.5 the device support file or older version. Paste into the same folder and change the iOS number to 14.6.

Does Xcode 12 support iOS 15?

The signature generated by a build with XCode 12.4 or lower on a Mac running with Mac OS 10.14 or lower are invalid with iOS 15.

Does Xcode 13 support iOS 11?

New FeaturesThe compiler supports this flag with deployment targets of macOS 11, iOS and iPadOS 14, tvOS 14, watchOS 7 and later. The flag is enabled by default.


1 Answers

To make an application target that runs on multiple versions of iOS is relatively simple: Set the “Base SDK” in your projects settings to the newest version number of iOS whose features you may want. Set the “iPhone OS Deployment Target” to the oldest version number of iOS that you will support

you will need to install older versions of xcode since the newer simulator will only support the newer ios versions

http://developer.apple.com/library/mac/#documentation/Xcode/Conceptual/XcodeCoexistence/Contents/Resources/en.lproj/Details/Details.html

like image 152
Aaron Saunders Avatar answered Oct 22 '22 20:10

Aaron Saunders