Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode6 can't run any app in simulator ( Domain = NSPOSIXErrorDomain, Code = 3 )

No app can run in my simulator, although building is good.

Error messsage is below:

Unable to run app in Simulator

An error was encountered while running (Domain = NSPOSIXErrorDomain, Code = 3)

like image 298
JackZeng Avatar asked Jun 15 '14 19:06

JackZeng


People also ask

How do I enable simulator in Xcode?

The basic way to open a list of simulators is to use Xcode -> Window -> Devices and Simulators. Here you can create and manage all available simulators.

How do you run your app in iOS simulator?

Click the Run button to build and run the app on the selected simulated or real device. View the status of the build in the activity area of the toolbar. If the build is successful, Xcode runs the app and opens a debugging session in the debug area.


2 Answers

In my case, I tried to run the app on a iPhone 6 simulator when I got this error. Quitted the simulator only and re-ran the app on iPhone 5s (8.1) - it worked fine.

After a while I changed the target back to iPhone 6 (without quitting it), and ran the app against it - no error shown.

like image 54
Display Name Avatar answered Sep 18 '22 04:09

Display Name


As mentioned in the Xcode 6.1 Release Notes and in my sticky post in the Apple Developer Forums for the iOS Simulator, this is a known bug in iOS.

Upon installation of an app, SpringBoard will SIGKILL that app's process in order to force a relaunch of the app with the new executable. The problem is that there is a race condition whereby SpringBoard may accidentally SIGKILL a new process that we just launched rather than the old process. Which of the various error messages you get depends on exactly when in the launch process the SIGKILL was delivered. Normally, this shouldn't happen, so the advise is to just try again (sorry =/). If you find that this happes to you all the time or more frequently than you can tollerate, we are incredibly sorry. We are aware that systems with slower disk I/O will see this happen more frequently than faster systems, so if you are using an NFS home directory, you may want to create a local directory for your simulator data and setup a simlink to it from ~/Library/Developer/CoreSimulator

like image 33
Jeremy Huddleston Sequoia Avatar answered Sep 21 '22 04:09

Jeremy Huddleston Sequoia