[Solved-5 Solutions] FBSOpenApplicationErrorDomain code =4 error
Error Description:
- When we try to run an iOS application in Xcode 6 in iPhone 6 simulator, we get an error: Unable to run app in Simulator.
- And error code is:
An error was encountered while running (Domain = FBSOpenApplicationErrorDomain, Code = 4)
Solution 1:
Solution 2:
- Close and reopen iOS simulator.
Solution 3:
- This might happen when we add some assets as symbolic links (through
ln -sf
). Even installing to devices might fail. - After removing the links and making a hard copy, it will work.
Solution 4:
- This problem might start after we enable background mode in our app.
- Go to simulator
- Hold cmd(Ctrl in Windows PCs) + shift
- Tap 'H' key two times
- Slide the application off to stop it running in the background.
- Run again.
Solution 5:
- Disconnect hardware keyboard. In iOS simulator main menu Hardware -> Keyboard -> Disconnect Hardware keyboard.