关于ios:模拟器错误FBSSystemServiceDomain代码4

Simulator error FBSSystemServiceDomain code 4

我尝试在模拟器中运行应用程序,但收到以下错误消息:

1
2
Unable to run app in Simulator
An error was encountered while running (Domain = FBSSystemServiceDomain, Code = 4)

Screenshot for error

我以前没有看到过谷歌搜索时提到过这个。

它使用xcode 6测试版,应用程序是在swift中链接到一个obj-c静态库。在设备上运行正常。

有什么想法吗?


进入iOS模拟器菜单,选择重置内容和设置。

或者,您可以退出并重新打开模拟器。

enter image description here


这就足够退出并重新打开模拟器了,Xcode6.0.1版本已经验证了这一点。


Xcode6发行说明中讨论了这个问题。

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. (17733855)

在我在苹果开发者论坛上发表的关于iOS模拟器调试的贴纸中也有讨论。

"(Domain = FBSOpenApplicationErrorDomain, Code = 4)","(Domain NSPOSIXErrorDomain, Code = 3"),
"Domain=IDEUnitTestsOperationsObserverErrorDomain Code=3","Lost
Connection to ...","Debugger disconnected", or app getting SIGKILLed
soon after launch Upon installation of an app, SpringBoard will
SIGKILL that app's process in order to force a relaunch of the app
with the new executable. The problem is that there is a race
condition whereby SpringBoard may accidentally SIGKILL a new process
that we just launched rather than the old process. Which of the
various error messages you get depends on exactly when in the launch
process the SIGKILL was delivered. Normally, this shouldn't happen,
so the advise is to just try again (sorry =/). If you find that this
happes to you all the time or more frequently than you can tollerate,
we are incredibly sorry. We are aware that systems with slower disk
I/O will see this happen more frequently than faster systems, so if
you are using an NFS home directory, you may want to create a local
directory for your simulator data and setup a simlink to it from
~/Library/Developer/CoreSimulator

请注意,最初的问题是关于域FBSSystemServiceDomain,而我在devforums上的帖子提到了FBsopenapplicationErrorDomain。FBSSysystemServiceDomain用于iOS 8.0 Betas的早期版本。


所有的解决方案都不适合我,包括"重置内容和设置"的公认答案。

我能让它工作的唯一方法是下载一个以前的iOS模拟器版本,它让我安装这个应用程序。


您可以重置内容和设置,也可以关闭iOS模拟器重新启动。


我建议您使用Xcode6.1的稳定版本。

1
2
FBSOpenApplicationErrorDomain, code =4 error suggests it is an error from
cached data on the simulator.

有三种可能的解决方案:

  • 清洁模拟器。使用(command+shift+k)作为快捷键或转到product->clean

  • 退出模拟器并重新启动它。

  • 打开模拟器。选择iOS模拟器->重置内容和设置…

  • Screenshot for step 3