Reputation: 9120
I have created a new iOS project; by default the deployment target is iOS 8.2, but I don't have the option to use the simulator. I went to the Xcode preferences, and I don't have the option to download the iOS 8.2 simulator. I'm using Xcode Version 6.2 (6C131e).
If I tried to open the simulator via developer tools. I get this error:
I rename Xcode.app and rebooted my mac but didn't help.
I ran "xcrun simctl list" and I got this list:
== Device Types ==
iPhone 4s (com.apple.CoreSimulator.SimDeviceType.iPhone-4s)
iPhone 5 (com.apple.CoreSimulator.SimDeviceType.iPhone-5)
iPhone 5s (com.apple.CoreSimulator.SimDeviceType.iPhone-5s)
iPhone 6 Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-6-Plus)
iPhone 6 (com.apple.CoreSimulator.SimDeviceType.iPhone-6)
iPad 2 (com.apple.CoreSimulator.SimDeviceType.iPad-2)
iPad Retina (com.apple.CoreSimulator.SimDeviceType.iPad-Retina)
iPad Air (com.apple.CoreSimulator.SimDeviceType.iPad-Air)
Resizable iPhone (com.apple.CoreSimulator.SimDeviceType.Resizable-iPhone)
Resizable iPad (com.apple.CoreSimulator.SimDeviceType.Resizable-iPad)
== Runtimes ==
iOS 8.1 (8.1 - 12B411) (com.apple.CoreSimulator.SimRuntime.iOS-8-1)
iOS 8.2 (8.2 - 12D508) (com.apple.CoreSimulator.SimRuntime.iOS-8-2)
== Devices ==
-- iOS 8.1 --
-- iOS 8.2 --
Any of you know why I don't have the option to run my project in the simulator?
Upvotes: 0
Views: 3366
Reputation: 23623
You are likely experiencing the issue mentioned in the release notes:
Renaming Xcode.app after running any of the Xcode tools in that bundle may cause iOS simulator to be no longer be available. Either rename Xcode.app back to what it was when first launched or restart your Mac. (16646772)
Additionally, it may be the case that you really don't have any devices configured (did you delete them?). Look at the output of xcrun simctl list
and try creating devices using xcrun simctl create
. Also take a look in ~/Library/Developer/CoreSimulator/Devices. Is there anything there?
Upvotes: 5