iOS 6 and 7 simulators in Xcode 7 - ios

How to have old simulators in new Xcode?
I have 2 SDKs (6.1 and 7.1) in my old Xcode 5.1.1 following path:
Xcode.app -> right click and <Show package contents> ->
Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
Copied both SDKs to my new Xcode, but Xcode only shows 8.4 and 9.0.
Is there any suggestion? Or maybe I can download it from somewhere (I believe there isn't)?

In Xcode if you click Window->Devices, then on the bottom left click the '+' button, then Add Simulator. There should be an option for selecting older versions of iOS Simulators.
If there isn't an option for iOS 6.1 or 7.1, after you click the '+' button, click the drop-down list for iOS Version and click download more simulators. Then just pick which ones you want.

You can't use simulator for iOS7 and earlier for XCode 7.1 - it's not compatible. Looks like Apple won't support them ever. It means you can't do this on simulator (you still can do this on real devices) at least in official way. You may not know that, but it also depends on your OSX:
El Capitan supports iOS 8.1.
Yosemite supports iOS 7.1

I haven't found any way to use any iOS 7 simulators. However, an iPhone 4 running iOS7 connected to Xcode 7.3, on MacOS X 10.11.4 using the iOS 9 SDK runs just fine.
To support iOS 7 on all devices capable of running it, you will need LaunchImages for iPhone 4 and 5 (retina), and for iPad in portrait and landscape at 1x and 2x.
I would consider supporting iOS 6 at this point to be pointless. That's iPhone 3GS. iOS 7 is pushing it; I run my code on an iPhone 4 mostly to check that its fast enough.

Related

Xcode 14 and iOS 5.5 simulators

After updating to Xcode 14 with iOS 16, I'm not seeing any 5.5 devices - makes sense, as Xcode simulators only seem to support one iOS, and none of the 5.5 devices (for instance iPhone 8 Plus) run iOS 16.
However, 5.5 screenshots are still mandatory for the App store. So how do I create these screenshots? The solutions I can think of are these
Using physical 5.5 device like iPhone 8 Plus (I don't have one)
Downgrade Xcode to version 13 in order to support iOS 15. I would very much like to avoid this, besides some of my Mac setup is Virtual and I am not in control of the Xcode version)
Download simulators
Go to Window
Select `Devices and Simulators
Click on the plus button in the bottom left corner.
Click on OS Version dropdown
Select Download more simulator runtimes
Click on the plus button in the bottom left corner.
Select iOS
Select the desired iOS version and wait for the download.
Now, you can create a desired simulator with the desired iOS.
Remember, you can generate your screenshots based on the device size! and no need for specific simulator by the way.

Xcode Simulator does not show additionally installed iOS versions

I had crash reports for iOS 11.4.1 on iPhone 8 Plus, so I installed iOS 11.4 by 'Download Simulators' below the iOS Simulator list. It downloaded and shows a green checkmark as installed.
Although my application supports iOS 10.0 (and I can see iOS 10.3.1 for some simulators) iOS 11.4 does not show up for any of the devices. I restarted the application as well.
Anything I'm missing here?
You can add already installed simulator to the list from following option:
Open Similator list (Right side of project name) -> Add additional simulators:
Tap on + add button to add installed simulators to the list
Go for New Scheme option and add a new scheme. You'll find the newly downloaded simulators. Seems like Xcode bug. I just tried the same which worked.

how to deploy and debug an iOS app on iPhone 4 using Xcode 6

I have an app which is crashing on iPhone 4 having 7.1 installed , i want to debug app on phone using xcode 6, is it possible(as it shows unavailable currently) ? if not what are the options I am left with ?
There is no option for an "iPhone 4 Simulator" in Xcode 6. But, if you use an iPhone 4S simulator with iOS 7.1, you can achieve the same effect, because with the same screen size and OS they are essentially the same for testing on the simulator. Also see this question for reference.
Of course, if you have a physical iPhone 4, you can also test on the actual device. Make sure that your Deployment Target under TARGETS AND the iOS Deployment Target under PROJECT are set to 7.1 or below. Your Base SDK can be set higher, but this means you will have to make sure that you are either not using features or classes that are unavailable in earlier versions of iOS, or do a version check and adapt your program accordingly. For example, UIAlertController was introduced in iOS 8, and will crash a device below that if it is invoked. So you might want to do a version check and use good old UIAlertView if the iOS device version is below 8. An issue like this is the most probable cause of your crash.
Also, if it's the first time you're using this device for development, don't forget to set it up by going to Window -> Devices, selecting your connected device, and pressing Use for development.
If you don't have the iOS 7.1 SDK and don't see it as a iPhone 4S (7.1) in the simulator selection, you need to download it by going to Preferences -> Downloads.

Run app from Xcode 6 on iPad with iOS to work like in iOS 6

I have postponed all updates for Xcode and iPad till now. So I updated my Xcode to 6.0.1 and iPad to iOS 8. But not some features in my app behave and look different. Also now I have this anointing transparent top bar. So I took 6.1 SKD from my old 4.2 xcode ad put it in the new Xcode, not I can set base SKD and deployment to 6.1. But it did not helped, It still look different like on iOS 8. So how can I run my app as 6.1 on iOS 8?

Choose a different simulator in Xcode 6

How to choose a different simulator(other than iOS 8) in Xcode 6?. I have successfully installed the iOS 7 simulator from Xcode->Preference->Downloads
But it is not listing in the available simulators for running
Any one know how can i install iOS7 simulator in Xcode 6?
Once installed iOS 7 simulator, in Xcode 6 go Window > Devices, click on bottom left corner + button and add iOS 7 simulator. Then you can choose it in your Archive Scheme.
Also make sure your deployment target is set to at least <= 7.0 or else you'll only see the iOS 8 simulators

Resources