FBSOpenApplicationErrorDomain code =4 error
IosXcodeXcode6Ios SimulatorIphone 6Ios Problem Overview
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?
Ios Solutions
Solution 1 - Ios
This worked for me:
iOS Simulator -> Reset Contents and Settings... -> Reset
referenced from Qiita: Unable to run app in Simulator エラーの対応方法.
Solution 2 - Ios
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.
Solution 3 - Ios
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.
Solution 4 - Ios
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 .
Solution 5 - Ios
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.
> 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:
Solution 6 - Ios
Just quit the xcode6.0 beta or else and run project again, it worked for me.
Solution 7 - Ios
I just quit the simulator , cleaned up the project and ran again it worked.
Solution 8 - Ios
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.
Solution 9 - Ios
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.
Solution 10 - Ios
This problem probably started after we enabled background mode in our app.My solution :
- Go to simulator
- Hold cmd + shift
- Tap 'H' key two times
- Slide the application off to stop it running in the background.
- Run again.
(Very tiring to have to repeat the above step each time I build and run)
Solution 11 - Ios
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,
- Select your target and select "edit scheme"
- Select "Options" tab on right side of detail window
- Uncheck "Launch Due to background fetch" checkbox.
Solution 12 - Ios
Disconnect hardware keyboard. In ios simulator main menu Hardware -> Keyboard -> Disconnect Hardware keyboard.