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 20:07

Just closing the iOS Simulator worked for me.

There is not always the need to reset the iOS Simulator. I did not even had to close Xcode.

查看更多
成全新的幸福
3楼-- · 2019-01-12 20:09

This problem probably started after we enabled background mode in our app.My solution :

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.

(Very tiring to have to repeat the above step each time I build and run)

查看更多
淡お忘
4楼-- · 2019-01-12 20:13

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 .

查看更多
Evening l夕情丶
5楼-- · 2019-01-12 20:14

Open your app scheme setting and edit it as shown in attached screenshot, Actually you have to disable the "Launch Due to background fetch". Worked for me. Steps, 1. Select your target and select "edit scheme" 2. Select "Options" tab on right side of detail window 3. Uncheck "Launch Due to background fetch" checkbox.

查看更多
倾城 Initia
6楼-- · 2019-01-12 20:15

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.

查看更多
The star\"
7楼-- · 2019-01-12 20:15

Disconnect hardware keyboard. In ios simulator main menu Hardware -> Keyboard -> Disconnect Hardware keyboard.

查看更多
登录 后发表回答