I can't download Xcode Simulator for old iOS versions - ios

The minimum iOS version of my project is selected as 11 but I cannot download the simulator. I searched but couldn't find a solution. What should I do?
Available downloadable simulators:
I chose the minimum iOS version as 11.
Minimum iOS deployment:
I guess I can't even install iOS 12.4 because I'm using macOS Ventura.

If you do not see the earlier SDK version for which you want to download the simulators listed among your options, then you cannot download that SDK for use with this version of Xcode on this system.

Related

XCode doesn't include files to build on iOS 13.3

I just updated my iPhone to iOS 13.3 and now I'm unable to build a simple react native app, I tried to download the newest XCode version (XCode 11.3 beta) which supposed to include the files but it doesn't.
macOS Mojave 10.14.6
Sounds like this: https://forums.developer.apple.com/thread/126948
Filed a bug report, no answer yet, will update when more information.
Update:
Got feedback from Apple Support, not sure what's exactly happened there:
Xcode 11.3 contains the iOS 13.2 SDK, which supports iOS 13.3 development. However, you cannot set a deployment target of 13.3. Please set a deployment target of 13.2 if you want to support the latest features.
You should add device support for iOS 13.3 in Xcode device support folder. Then quit Xcode and relaunch it.
You can find the file from the below link.
https://github.com/filsv/iPhoneOSDeviceSupport

How to install older iOS runtimes on newer Xcode?

I have Xcode 10.3
I wish to run an iPad Mini simulator running iOS 9.0.3
However when I go to Preferences > Components the only options are:
iOS 12.2 Simulator
iOS 12.1 Simulator
iOS 12.0 Simulator
iOS 11.4 Simulator
iOS 11.3 Simulator
iOS 11.2 Simulator
iOS 11.1 Simulator
iOS 11.0 Simulator
iOS 10.3.1 Simulator
There is no 9.0.3. How do I download older simulators?
Xcode supports SDK latest three versions of the iOS SDK. The only way to have an access to older simulators is to install older version of Xcode.
I will make a final summary, there are two ways:
1. I originally provided this, reference this
This is my download path, you can download 9.0
1.1 cd ~/Library/Caches, find com.apple.dt.Xcode, show in package. Paste DMG into the Downloads folder (if not created).
1.2 Restart Xcode, open the panel Xcode->Preferences->Components, you can see iOS 9.0 Simulator, click to download
In practice, Xcode 10.3 could not be seen to see the download button of the iOS 9.0 Simulator.
It seems to confirm #Adobels Xcode supports SDK latest three versions of the iOS SDK
2. Download .simruntime and put it directly into the /Library/Developer/CoreSimulator/Profiles/Runtimes/ folder.
The Runtimes folder has all the emulators you installed, suffixed with .simruntime.
Apple did not provide the .simruntime download address, I downloaded it from the cloud disk shared by others, of course, if you installed the old version of Xcode.
I am working after the test, iOS 9.0 Simulator will open the prompt Safe Area Layout Guide before iOS 9.0, and finally close the Safe Area Layout Guide.

Xcode: iOS backward and forward compatibility for Deployment Target

I am trying to understand how the compatibility does work and could not get the perfect answer out there. Many answers are confusing.
I want to understand if I develop an app targeting iOS 9, does it work on iOS 11.2 devices for example (forward compatibility)
and if I target iOS 11.2, is it going to be compatible with iOS 9 and 10 as an example (backward compatibility)
I found this answer where he is suggesting to download the image file for an older versions. When shall I do that? What is the case that requires downloading the images to my project?
This issue is giving me the following error:
My iPhone is running iOS11.3 and my Xcode Project (Objective-c) is targeting iOS 10 and I am developing using Xcode 9.2
Apple only supports 'forward compatibility'. You can specify your App's min OS support in its target. All OS version higher than the min target version will support your app. You can't make your app to support OS versions less than the target version.
This "Could not locate device support files" error occurs when your Xcode is not compatible with the OS version of the device. In such scenarios, you can download those image and make your Xcode compatible with the OS version.
"When to download the images??" - When you can't update your Xcode to its newest version( for eg: if you are using Sierra and no plans to update to High Sierra).

How do I add older SDKs to my system?

I am running on MacOS Sierra. I downloaded/upgraded my X Code.
Currently, if I run xcodebuild -showsdks it reveals that I have iOS SDK 10.0.
I need to add support for iOS 9.3. How do I do this?
Do I need to download XCode 7.3?
EDIT:
I need iOS SDK 9.3 specifically -- no version after, because of RubyMotion.
iOS 9.3 is still supported with Xcode 8. There shouldn't be any issues.
For anything less than iOS 8, you will have to download Xcode 7 series.
No need for older Xcode. Just open your project, open projects settings, choose your target and change "General -> Deployment Info -> Deployment Target" to needed value (e.g. 9.3)
Update for your edit: yes, to get older SDK version you need to download older Xcode, unfortunately
You can check by downloading simulator of iOS 9 only, Go to xcode preference and download required simulator, check screenshot below:

How to build and test Xcode iOS SDK 4.3 project in iPad 2 iOS 5?

I'm wondering if I can build and test my current project which is iOS SDK 4.3 based, to iPad 2 (iOS 5)? In Organizer - Devices it says:
The version of iOS on “my iPad” does not match any of the versions of iOS
supported for development with this installation of the iOS SDK. Please restore
the device to a version of the OS listed below, or update to the latest version
of the iOS SDK;
Can I build my project without updating to iOS SDK 5?
No, this isnt possible, you must upgrade to the lastest Xcode.
It is possible to have two versions of Xcode installed if you still want to hang onto the old one.
What is the reluctance to upgrade? Are you having compiling issues?

Resources