The iOS 8.1 simulator runtime is not available err

2019-04-03 08:30发布

问题:

I was using Xcode 6.0.1 till now and things were fine. Then I upgraded to Xcode 6.1 and tried running my application(which has a deployment target of 7.0) in iPhone 6 simulator. But it shows an error message :

The iOS 8.1 simulator runtime is not available. Download the iOS 8.1 simulator runtime from the Downloads section in Xcode's Preferences

I manually deleted the earlier Xcode (6.0.1) and installed 6.1 from a dmg. I tried searching across but couldn't find related stuff. Any help would be appreciated.

回答1:

It is a Mac problem, not an Xcode problem.

Logout the user, shutdown, restart or just reboot Mac. Your Xcode simulator will go back to normal.



回答2:

Rebooting did not help me.

Installing/Reinstalling Simulators worked!!

Look under (XCode Preferences-> Downloads -> Components)



回答3:

Maintain an accurate list of iOS simulators

When upgrading, you may drag around old simulators no longer available with your current version of Xcode. You can clean these by running this command in Terminal:

xcrun simctl delete unavailable

Quit Xcode first just for good measures. From the documentation:

Delete a device or all unavailable devices.



回答4:

Rebooting my computer fixed this exact issue for me. Same error was thrown for both iOS7 and iOS8 simulators. I'm on OS X 10.10 and Xcode 6.1.



回答5:

Just had this problem with Xcode 8 beta 5. I downloaded ios8 and 9 simulators, but was not able to run my app. I simply deleted derived data and rebooted my computer. It worked for me.