ios FBSOpenApplicationErrorDomain 代码 =4 错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25967606/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
FBSOpenApplicationErrorDomain code =4 error
提问by Pradhyuman Chavda
When I'm trying to run iOS application in Xcode 6 in iPhone 6 simulator, I'm getting error Unable to run app in Simulator.
当我尝试在 iPhone 6 模拟器中的 Xcode 6 中运行 iOS 应用程序时,出现错误Unable to run app in Simulator。
And error code is:
错误代码是:
An error was encountered while running (Domain = FBSOpenApplicationErrorDomain, Code = 4)
运行时遇到错误(域 = FBSOpenApplicationErrorDomain,代码 = 4)
Can any one suggest how to resolve it?
任何人都可以建议如何解决它?
回答by Jeff Walters
This worked for me:
这对我有用:
iOS Simulator-> Reset Contents and Settings...-> Reset
iOS 模拟器->重置内容和设置...->重置
referenced from Qiita: Unable to run app in Simulator エラーの対応方法.
回答by Klaas
Just closing the iOS Simulator worked for me.
只是关闭 iOS 模拟器对我有用。
There is not always the need to reset the iOS Simulator. I did not even had to close Xcode.
并非总是需要重置 iOS 模拟器。我什至不必关闭 Xcode。
回答by Matferib
This happened to me once when I added some assets as symbolic links (through ln -sf
). Even installing to devices was failing.
当我添加一些资产作为符号链接(通过ln -sf
)时,这发生在我身上。即使安装到设备也失败了。
After I removed the links and made a hard copy, it worked and error was gone.
在我删除链接并制作硬拷贝后,它工作正常并且错误消失了。
回答by Garry
No need to quit the simulator or reset all content every time .
无需每次都退出模拟器或重置所有内容。
Just close the app on which you are working if running on background .
如果在后台运行,只需关闭您正在使用的应用程序。
it works for me .
这个对我有用 。
回答by Jeremy Huddleston Sequoia
As mentioned in the Xcode release notes, this error (along with a couple others) results from a timing bug. The workaround is to just retry.
正如 Xcode 发行说明中所述,此错误(以及其他一些错误)是由计时错误造成的。解决方法是重试。
Testing on iOS simulator may produce an error indicating that the application could not be installed or launched. Re-run testing or start another integration.
在 iOS 模拟器上测试可能会产生一个错误,表明应用程序无法安装或启动。重新运行测试或开始另一个集成。
Also see:
另见:
回答by Maishi Wadhwani
Just quit the xcode6.0 beta or else and run project again, it worked for me.
只需退出 xcode6.0 beta 或其他并再次运行项目,它对我有用。
回答by Deephunt
I just quit the simulator , cleaned up the project and ran again it worked.
我刚刚退出模拟器,清理项目并再次运行它。
回答by Vinay Nishad
Reseting the Xcode will delete some bad junk which simulator has cached, so reseting is good option to resolve this issue.
重置 Xcode 将删除模拟器缓存的一些坏垃圾,因此重置是解决此问题的不错选择。
iOS Simulator -> Reset Contents and Settings.
iOS 模拟器 -> 重置内容和设置。
回答by Mike Gao
Be careful if you skip installs. I accidentally changed Skip Install on the main target, when i meant to change it on a dependency . When changing it back I had to do a clean.
如果您跳过安装,请小心。当我打算在依赖项上更改它时,我不小心更改了主要目标上的跳过安装。当把它改回来时,我不得不做一个干净的。
回答by humblePilgrim
This problem probably started after we enabled background mode in our app.My solution :
这个问题可能是在我们的 app.My 解决方案中启用后台模式后开始的:
1) Go to simulator
2) Hold cmd + shift
3) Tap 'H' key two times
4) Slide the application off to stop it running in the background.
5) Run again.
1) 进入模拟器
2) 按住 cmd + shift
3) 点击“H”键两次
4) 关闭应用程序以停止它在后台运行。
5) 再次运行。
(Very tiring to have to repeat the above step each time I build and run)
(每次构建和运行都必须重复上述步骤非常累)