Unable to run app in Simulator XCode 6.0

☆樱花仙子☆ 提交于 2019-12-03 11:33:31

问题


After migrating from XCode 5.0 to XCode 6.0 the project fails to run with the following error.

An error was encountered while running (Domain = FBSOpenApplicationErrorDomain,
Code = 4)

Any suggestions?


回答1:


iOS Simulator -> Reset Contents and Settings

Worked for me!

iOS Simulator -> Reset Contents and Settings... -> Reset

referenced from: http://qiita.com/tajihiro/items/f6f50b56162c93d25c90




回答2:


I had this error too. My solution was product->clean




回答3:


As described in my answer to the queation that this is a duplicate of, this error is one manifestation of an install/launch race condition bug. The suggestions you find on this forum suggesting that you should "Erase Contents & Settings" or "Clean" from within Xcode are not correct.

You simply have to try again and hope you don't loose the race on the next launch. Alternatively, you can just "finger launch" it from within the booted simulator.




回答4:


I had this error.

I got it while using Xcode 6 on Yosemite.

My solution was to download and install Xcode 6.1 for Yosemite. This solved my issue.

  • David


来源:https://stackoverflow.com/questions/25818410/unable-to-run-app-in-simulator-xcode-6-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!