I'm trying to run an app in the simulator but get this error message:
Unable to run app in Simulator
An error was encountered while running (Domain = FBSSystemServiceDomain, Code = 4)
I've not seen any previous references to this from googling around.
Its using XCode 6 Beta, the app is in Swift which links to a Obj-C static library. It runs fine on the device.
Any ideas?
I suggest you to use stable version of Xcode 6.1.
There are three possible solutions :
Clean simulator. Use (Command + Shift + k) as shortcut key or goto Product -> Clean
Quit simulator and relaunch it.
Open simulator. Select iOS simulator -> Reset contents and settings...
None of the solutions worked for me including the accepted answer of "Reset Content and Settings".
The only way I was able to get it to work was by downloading a previous iOS simulator version which let me install the app.
You can either Reset Content and Setting or just close iOS Simulator and relaunch.
It's enough to quit and re-open the Simulator, this has been verified in the Xcode 6.0.1 release.
This issue is discussed in the Xcode 6 Release Notes
And is also discussed in my sticky post in the Apple Developer Forums for iOS Simulator Debugging
Note that the original question is about domain FBSSystemServiceDomain whereas my post on devforums mentions FBSOpenApplicationErrorDomain. FBSSystemServiceDomain was used in earlier versions of iOS 8.0 betas.
Go to the iOS Simulator menu and select Reset Content and Settings.
Alternatively, you could quit and reopen the Simulator.