Xcode 8 Beta (null) 无法为请求提供服务

Xcode 8 Beta (null) was unable to service the request

我有一个应用程序在 Xcode 的发布版本中运行良好。我下载了测试版,在修复了所有的小改动后,我 运行 它成功了。我刚回来,又 运行 了,我收到一条错误消息

The request to open "com.matthewhsingleton.Smoke" failed . (null) was unable to service the request.

我已经退出 Xcode 并重新打开它,我重新启动了我的电脑,尝试了不同的 iPhone 模拟器并且都产生了相同的结果

在阅读了@Droppy 的建议后,我阅读了帖子,这是一个常见问题。解决方法如下

Problem solved for by an Apple Engineer in the lab. It's an issue they're working on. The bottom line was that when I copied Xcode to Applications folder, there was a bit set on it and that was preventing it from communicating with the simulator.

To fix it: Copy-paste Xcode-beta.app from Applications folder to somewhere else, e.g. Documents folder. Delete Xcode-beta.app from Applications folder. Move Xcode-beta.app from Documents to Applications folder again.

看到这里https://forums.developer.apple.com/message/143094#143094

我安装了 2 个版本的 Xcode。 Xcode 7 和 8。我通过在首选项中将命令行工具设置为 Xcode 8 解决了这个问题。打开首选项 -> 位置 -> 命令行工具。将其设置为 Xcode 8.

我的错误是类似的,而不是“(null)”,消息是:"SpringBoard was unable to service the request"

重启模拟器对我有用。