41

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.

Screenshot for warning

Jayprakash Dubey
  • 35,723
  • 18
  • 170
  • 177
ArG
  • 637
  • 1
  • 7
  • 12

6 Answers6

73

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.

Zach Saucier
  • 24,871
  • 12
  • 85
  • 147
user1858725
  • 1,293
  • 1
  • 11
  • 13
  • 2
    I renamed Xcode.app and ran into this. The reboot helped. I (now) believe I read something about this in recent release notes. – Steven Kramer Jun 15 '15 at 11:52
  • Old Q&A, but I had this issue migrating from Xcode 10.1 to 10.2, and this result popped up first in google when checking for the error message. This worked for me. – mmvdv Apr 16 '19 at 10:09
  • Works like a charm. I didnt even have the version in preferences for which the error was coming. Restarting helped – RahulB May 22 '19 at 11:54
  • Rebooting also solved for me after Xcode 10.2 to 10.2.1 upgrade. – francybiga Jun 17 '19 at 14:14
32

For anyone still facing this issue, this command worked for me:

sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService
shim
  • 9,289
  • 12
  • 69
  • 108
Nitneq
  • 651
  • 10
  • 26
8

Rebooting did not help me.

Installing/Reinstalling Simulators worked!!

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

k-thorat
  • 4,873
  • 1
  • 27
  • 36
4

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.

SwiftArchitect
  • 47,376
  • 28
  • 140
  • 179
  • 1
    `An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=159): Errors encountered while deleting multiple devices.` -- any ideas? – evolutionxbox Aug 08 '16 at 14:10
3

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.

Zach Saucier
  • 24,871
  • 12
  • 85
  • 147
mkabatek
  • 1,244
  • 12
  • 23
0

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.

TheRealRonDez
  • 2,807
  • 2
  • 30
  • 40