FBSOpenApplicationErrorDomain code =4 error

2019-01-12 19:22发布

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.

And error code is:

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

Can any one suggest how to resolve it?

enter image description here

12条回答
一夜七次
2楼-- · 2019-01-12 19:52

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.

See https://developer.apple.com/library/prerelease/mac/releasenotes/DeveloperTools/RN-Xcode/Chapters/xc6_release_notes.html#//apple_ref/doc/uid/TP40001051-CH4-SW1

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.

Also see:

https://devforums.apple.com/thread/248879?tstart=0

查看更多
别忘想泡老子
3楼-- · 2019-01-12 19:55

I just quit the simulator , cleaned up the project and ran again it worked.

查看更多
甜甜的少女心
4楼-- · 2019-01-12 20:01

This happened to me once when I added some assets as symbolic links (through ln -sf). Even installing to devices was failing.

After I removed the links and made a hard copy, it worked and error was gone.

查看更多
Melony?
5楼-- · 2019-01-12 20:02

Reseting the Xcode will delete some bad junk which simulator has cached, so reseting is good option to resolve this issue.

iOS Simulator -> Reset Contents and Settings.

查看更多
地球回转人心会变
6楼-- · 2019-01-12 20:03

Just quit the xcode6.0 beta or else and run project again, it worked for me.

查看更多
时光不老,我们不散
7楼-- · 2019-01-12 20:06

This worked for me:

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

menu bar screenshot

are you sure screenshot

referenced from Qiita: Unable to run app in Simulator エラーの対応方法.

查看更多
登录 后发表回答