Xcode 8 Beta (null) 无法为请求提供服务
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/37827635/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode 8 Beta (null) was unable to service the request
提问by RubberDucky4444
I have an app that worked fine in the released version of Xcode. I downloaded the beta and after I fixed all the little changes I ran it and it worked. I just came back and ran it again and I get an error saying
我有一个在 Xcode 发布版本中运行良好的应用程序。我下载了测试版,在修复了所有小改动后,我运行了它,它工作正常。我刚回来并再次运行它,我收到一条错误消息
The request to open "com.matthewhsingleton.Smoke" failed . (null) was unable to service the request.
打开“com.matthewhsingleton.Smoke”的请求失败。(null) 无法为请求提供服务。
I have quit Xcode and reopened it, I have restarted my computer, tried different iPhone simulators and all produce the same resulte
我已经退出 Xcode 并重新打开它,我已经重新启动了我的计算机,尝试了不同的 iPhone 模拟器并且都产生了相同的结果
回答by Felipe Andrade
My error was similar, instead of "(null)", the message was: "SpringBoard was unable to service the request"
我的错误是类似的,而不是“(空)”,消息是:“SpringBoard 无法为请求提供服务”
Restarting the simulator worked for me.
重新启动模拟器对我有用。
回答by RubberDucky4444
After reading @Droppy suggestion I read the thread and it is a common issue. To solve it is as follows
阅读@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.
由 Apple 工程师在实验室解决的问题。这是他们正在研究的问题。最重要的是,当我将 Xcode 复制到 Applications 文件夹时,它上面有一些设置,这阻止了它与模拟器进行通信。
要修复它:将 Xcode-beta.app 从 Applications 文件夹复制粘贴到其他地方,例如 Documents 文件夹。从 Applications 文件夹中删除 Xcode-beta.app。再次将 Xcode-beta.app 从 Documents 移动到 Applications 文件夹。
Seen here https://forums.developer.apple.com/message/143094#143094
在这里看到https://forums.developer.apple.com/message/143094#143094
回答by Yash Tamakuwala
I had 2 versions of Xcode installed. Xcode 7 and 8. I resolved this issue by setting the command line tools to Xcode 8 in preferences. Open preferences -> Locations -> Command Line tools. Set that to Xcode 8.
我安装了 2 个版本的 Xcode。Xcode 7 和 8。我通过在首选项中将命令行工具设置为 Xcode 8 解决了这个问题。打开首选项 -> 位置 -> 命令行工具。将其设置为 Xcode 8。