[英]Xcode 8 Beta (null) was unable to service the request
I have an app that worked fine in the released version of Xcode. 我有一个在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
我刚刚回来再次运行它,我得到一个错误说
The request to open "com.matthewhsingleton.Smoke" failed .
打开“com.matthewhsingleton.Smoke”的请求失败。 (null) was unable to service the request.
(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模拟器并且都生成了相同的结果
My error was similar, instead of "(null)", the message was: "SpringBoard was unable to service the request" 我的错误类似,而不是“(null)”,消息是:“SpringBoard无法为请求提供服务”
Restarting the simulator worked for me. 重启模拟器对我有用。
After reading @Droppy suggestion I read the thread and it is a common issue. 在阅读了@Droppy建议后,我阅读了该主题,这是一个常见的问题。 To solve it is as follows
解决它如下
Problem solved for by an Apple Engineer in the lab.
Apple工程师在实验室中解决了问题。 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.
最重要的是,当我将Xcode复制到Applications文件夹时,它上面有一点设置,这阻止了它与模拟器通信。
To fix it: Copy-paste Xcode-beta.app from Applications folder to somewhere else, eg Documents folder.
要解决此问题:将Xcode-beta.app从Applications文件夹复制粘贴到其他位置,例如Documents文件夹。 Delete Xcode-beta.app from Applications folder.
从Applications文件夹中删除Xcode-beta.app。 Move Xcode-beta.app from Documents to Applications folder again.
再次将Xcode-beta.app从Documents移至Applications文件夹。
Seen here https://forums.developer.apple.com/message/143094#143094 在这里看到https://forums.developer.apple.com/message/143094#143094
I had 2 versions of Xcode installed. 我安装了2个版本的Xcode。 Xcode 7 and 8. I resolved this issue by setting the command line tools to Xcode 8 in preferences.
Xcode 7和8.我通过在首选项中将命令行工具设置为Xcode 8来解决此问题。 Open preferences -> Locations -> Command Line tools.
打开首选项 - >位置 - >命令行工具。 Set that to Xcode 8.
将其设置为Xcode 8。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.