iOS simulator version - ios

I tried Appium iOS tutorial and ran the example successfully. I noticed the UICatalog6.1.app runs on iOS simulator with title "iPhone 6/iOS 8.2" on the top of the simulator.
However the title is "iPhone 6/iOS 9.0" when I run the app developed by myself from Xcode. I am wondering which part controls to use different version of iOS simulator?

When you install Xcode, you automatically get the most recent version of the simulators. However, if you would like to define additional simulators with older iOS versions, you can.
In Xcode, go to Window (on the tool bar), and select Devices. There, you can see a list of all of your current devices and all of your currently setup simulators. If you click the plus on the lower left corner of the screen, you'll get to this screen:
Here, you can select the device you'd like to use for the simulator and its iOS version. By default, you'll only have the most recent version of iOS, but if you'd like to add older versions, just select 'Download more simulators' and you'll be given the option to download older versions and use them for testing.
Once you've set up the new simulator, you'll be able to select it from the list of available devices to run your app on. Good Luck!

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.

Can't create iOS simulator

I am trying to create an iOS simulator with iOS 10 on iPad 2.
I went to the dialog which allows us to create new simulators, Then I entered the simulator's name
and the device "iPad 2" in my case.
Now, time to chose an operating system. Since iOS 10 wasn't available by default, I checked the download option on the left and downloaded the version I wanted.
I downloaded iOS 10 as shown below. :
But when I go back to select the OS I downloaded for my emulator, it doesn't even appear in the drop down.
The same goes for every other simulator I tried to create.
Please does someone know what is wrong ?
Max iOS for iPad 2 is iOS 9.x
Best option is to use a device.
If you really want an iPad 2 simulator, you'll need to use an older version of Xcode.

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.

iPhone simulator not working since xcode5 upgrade

Ever since i upgraded to xcode5, the iOS simulator only displays as an iPad even though the project is targeted for iPhone. The Run button also shows it's set to iPhone and I've tried switching between the different iPhone types in simulator. But no matter what, my iPhone project opens as an iPad simulation. Anybody encounter this problem or know how to fix it?
I believe I've downloaded all the relevant libraries and tools from apple as well. I'll double check that now but I'm pretty sure I have all the accessory downloads up to date.
Edit
I found the answer! Due to the changes with resolution of the retina display, the simulator was loading without the bezel. Turns out the best way to solve this problem without a large screen or retina display is to deploy target in navigator=>General menu=> to iOS 6.1 and make sure iOS simulator=>Hardware=>Devices=>is set to iOS 6.1 as well.
Have you tried changing the simulator device? Go to iOS Simulaotr.app -> hardware -> devices?
Download the extra components/simulators..
If you find your iOS simulator is showing a large iPad like display since upgrading, it's because of the change in resolution for the retina display. In order to view the simulator as a regular looking iPhone follow these steps:
Deploy your project target for iOS 6.1 or earlier. In the navigator menu (far left), top folder (your project folder), click it. Make sure "General" is selected in the menu in the centre of the screen. In 'deployment Info' set it to iOS 6.1 and 'devices' to iPhone.
Open iOS simulator: Click 'XCODE' in the top left of the screen => Open Developer Tools => iOS Simulator.
In iOS simulator, go to => Hardware => Devices => select iPhone => iOS 6.1. Make sure not to select any of the hardware devices that are listed as retina displays, thats the major key.
Finally, make sure the deployment next to the run button is also showing 'iPhone iOS 6.1' AND NOT 'iPhone Retina...'
And enjoy seeing the iPhone simulator properly again! :)

New ios7 update & xcode 5 no device found

I just updated my iPhone4s to ios7 and xcode to 5.
I am trying to run my app on the iphone which worked for 6.1.x and 4.xx. However,
after the update xcode claims not to find my connected iphone testing my app.
Xcode cannot run using the selected device.
No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination?
Window -> Organizer.
Click on device tab.
Click on the iOS device on the left side and click the button 'Use for development'.
Check in Organizer if device is used for development or has lost this property on xcode actualization.
check the organizer like Rauru Ferro said. It might need some time to update the settings in Xcode. You should see a progress bar loading, after that everything should work fine.

Resources