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?

8
  • Related (any one could be a duplicate since we don't know what the versions are): Unable to run app in simulator, Unable to run app in Simulator XCode 6.0, Unable to run app in Simulator : Xcode beta 6 iOS 8, Unable to run app in Simulator Xcode 6, ... Commented Dec 18, 2014 at 23:27
  • Since you've tried all those, try deleting Derived data stackoverflow.com/a/25609137/2143387 Commented Dec 18, 2014 at 23:32
  • that still didn't work, getting the same error Commented Dec 18, 2014 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. Commented Dec 19, 2014 at 0:28
  • Dec 18 19:57:15 MacBook-Pro.local CoreSimulatorService[713] <Error>: 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>: 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} Commented Dec 19, 2014 at 0:58

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.