Xcode6 can't run any app in simulator ( Domain

2019-02-16 08:59发布

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)

11条回答
聊天终结者
2楼-- · 2019-02-16 09:02

Every time this has happened to me (as of this writing, still happening on Xcode 6.1) I do not need to restart my mac to fix it. Instead I only had to restart the simulator. I exit the simulator by right-clicking on its icon in the tray and selecting the option to Quit. The I re-run my app and the simulator starts from scratch and runs my app with no error. Much quicker than re-starting the mac.

查看更多
我欲成王,谁敢阻挡
3楼-- · 2019-02-16 09:03

If this error occurs with ionic framework, make sure you have an app id given in your config.xml

查看更多
趁早两清
4楼-- · 2019-02-16 09:04

By Quitting the Simulator and Run the application worked for me.

查看更多
乱世女痞
5楼-- · 2019-02-16 09:08

For me , just Reset Content and setting in your simulator

查看更多
干净又极端
6楼-- · 2019-02-16 09:09

please download new xcode_6 beta 4. your project will work in simulator. As i have tested as well.

查看更多
欢心
7楼-- · 2019-02-16 09:11

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

查看更多
登录 后发表回答