2

I keep trying to run an app through Xcode 6.1.1 but whenever I try it, iOS Simulator opens up to a black box, and then when I quit it I get the error:

Unable to run app in Simulator
An error was encountered while running (Domain = com.apple.CoreSimulator.SimError, Code = 146)

The part that is annoying is that I haven't changed any of the code after creating a new project (using a single view application). The only things I've changed are some of the settings and pictures in Main.storyboard. (These changes were just adding images to the view controller).

I've tried restarting, resetting the content and settings, and cleaning in Xcode. Any ideas on what I should do?

pablaber
  • 89
  • 1
  • 7
  • Related (any one could be a duplicate since we don't know what the versions are): [Unable to run app in simulator](http://stackoverflow.com/q/26396166/608639), [Unable to run app in Simulator XCode 6.0](http://stackoverflow.com/q/25818410/608639), [Unable to run app in Simulator : Xcode beta 6 iOS 8](http://stackoverflow.com/q/24033417/608639), [Unable to run app in Simulator Xcode 6](http://stackoverflow.com/q/25608943/608639), ... – jww Dec 18 '14 at 23:27
  • Since you've tried all those, try deleting `Derived data` http://stackoverflow.com/a/25609137/2143387 – Pahnev Dec 18 '14 at 23:32
  • that still didn't work, getting the same error – pablaber Dec 18 '14 at 23:41
  • None of the issues linked to by jww are related to this one. Those are all completely different errors. This is only the second time I've seen *this* error reported (and the other time, the reporter never responded, so I'm not sure if it just went away or something). Can you please take a look a ~/Library/Logs/CoreSimulator/CoreSimulator.log while reproducing the error. There should be more details in that log about the problem that aren't printed in the Xcode dialog box. – Jeremy Huddleston Sequoia Dec 19 '14 at 00:28
  • Dec 18 19:57:15 MacBook-Pro.local CoreSimulatorService[713] : Error Domain=com.apple.CoreSimulator.SimError Code=146 "Unable to lookup in current state: Shutdown" UserInfo=0x7fdbb2d1a4e0 {NSLocalizedDescription=Unable to lookup in current state: Shutdown} Dec 18 19:57:15 MacBook-Pro.local CoreSimulatorService[713] : Error Domain=com.apple.CoreSimulator.SimError Code=146 "Unable to lookup in current state: Shutdown" UserInfo=0x7fdbb2d1a4e0 {NSLocalizedDescription=Unable to lookup in current state: Shutdown} – pablaber Dec 19 '14 at 00:58
  • that's what I got from the CoreSimulator.log file – pablaber Dec 19 '14 at 00:59
  • I've also gotten this: – pablaber Dec 19 '14 at 01:03
  • Dec 18 18:12:50 MacBook-Pro.local CoreSimulatorService[713] : The runtime is not available at /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk – pablaber Dec 19 '14 at 01:04

1 Answers1

1

Per this answer, try the following Xcode menu items (under Product):

  1. Clean

  2. Clean build folder

You can also go to Help and start typing "Clean" in the search bar.

Community
  • 1
  • 1
st.derrick
  • 4,769
  • 2
  • 24
  • 25