简体   繁体   English

无法在Simulator XCode 6.0中运行应用程序

[英]Unable to run app in Simulator XCode 6.0

After migrating from XCode 5.0 to XCode 6.0 the project fails to run with the following error. 从XCode 5.0迁移到XCode 6.0后,项目无法运行,并出现以下错误。

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

Any suggestions? 有什么建议?

截图

iOS Simulator -> Reset Contents and Settings iOS模拟器 - >重置内容和设置

Worked for me! 为我工作!

iOS Simulator -> Reset Contents and Settings... -> Reset iOS模拟器 - >重置内容和设置... - >重置

在此输入图像描述

referenced from: http://qiita.com/tajihiro/items/f6f50b56162c93d25c90 引用自: http//qiita.com/tajihiro/items/f6f50b56162c93d25c90

I had this error too. 我也有这个错误。 My solution was product->clean 我的解决方案是产品 - >清洁

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. 您在此论坛上找到的建议表明您应该从Xcode中“删除内容和设置”或“清除”是不正确的。

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. 或者,您可以在启动的模拟器中“手指启动”它。

I had this error. 我有这个错误。

I got it while using Xcode 6 on Yosemite. 我在Yosemite上使用Xcode 6时得到了它。

My solution was to download and install Xcode 6.1 for Yosemite. 我的解决方案是为Yosemite下载并安装Xcode 6.1。 This solved my issue. 这解决了我的问题。

  • David 大卫

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM