2

I'm not sure what happened. All of a sudden the simulator doesn't work, and I haven't done a single thing differently with XCode. The simulator has been operative for the past 2 weeks, and when I went to run my program again, I got the error "The iOS 8.4 simulator runtime is not available.". I didn't upgrade XCode, didn't change any settings, and I didn't even close XCode between simulations. It was literally out of nowhere. When I try to stop the simulation, the run/stop buttons don't work. Has this happened to anyone else??

EDIT: The error tells me "Download the iOS 8.4 simulator runtime from the Downloads section in Xcode's Preferences", but it doesn't exist in there.

Niko
  • 147
  • 9

3 Answers3

8

Found the problem...XCode was listed as XCode 2 in my Applications folder and I changed it back to XCode (after closing it first). For some reason that screwed things up. I changed it back to XCode 2 and now it's working again. I guess I'll just have to live with that name :/

Niko
  • 147
  • 9
  • Try this: change it back to Xcode, launch it, go to the Locations preference pane, and switch the pop-up at the bottom to point to this version of Xcode. Does that fix it? (If not you can always change it back to Xcode 2, so the experiment is safe...) – matt Aug 10 '15 at 18:54
  • OK, sorry :( I don't understand why you're forced to keep this name, but it must be hard-coded somewhere that we can't get to... – matt Aug 10 '15 at 19:11
2

Under Xcode > Preferences > Downloads > Component check if iOS 8.4 simulator is present. One of the possible solutions is to restart your MAC book, this bug might get fixed by doing so

Munahil
  • 2,381
  • 1
  • 14
  • 24
0

I had the same problem. The solution, that helped me is to specify Xcode version via xcode-select:

% sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/

After that you can check your available SDKs:

% xcodebuild -sdk -version
akozin
  • 529
  • 1
  • 7
  • 18