服务委托拒绝 xcode 8 错误(SBMainWorkspace)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/39495620/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 18:21:15  来源:igfitidea点击:

xcode 8 error denied by service delegate (SBMainWorkspace)

xcodexcode8xcode10

提问by RyanTCB

Trying to run a build on simulator and I get this error:

尝试在模拟器上运行构建,但出现此错误:

The request to open "com.companyname.appname" failed.

The request was denied by service delegate (SBMainWorkspace) for reason: Security ("Entitlement "com.apple.frontboard.debugapplications" required to launch applications for debugging").

打开“com.companyname.appname”的请求失败。

请求被服务委托 (SBMainWorkspace) 拒绝,原因是:安全性(“启动调试应用程序所需的权利“com.apple.frontboard.debugapplications”)。

This was not there when using the GM of Xcode 8, but started soon as I downloaded it again form the mac app store. Google is no help neither is the Apple developers forum.

这在使用 GM 时不存在Xcode 8,但是当我从 mac 应用商店再次下载它时就开始了。谷歌也无济于事,苹果开发者论坛也无济于事。

Any help or suggestions?

任何帮助或建议?

回答by Confused Vorlon

Quitting the simulator and relaunching fixed this for me.

退出模拟器并重新启动为我解决了这个问题。

回答by clauswey

Empty setting causing error

空设置导致错误

In case anyone is wondering what is meant by "empty settings" that should be unchecked as mentioned in the answer of maricle and in the comment of Vinayak GH At least that is what caused the problem for me.

如果有人想知道“空设置”是什么意思,如 maricle 的回答和 Vinayak GH 的评论中提到的应该取消选中至少这就是我遇到问题的原因。

回答by Anas

Make Sure that you have not Checked Any "empty settings" in Product > Scheme > Edit scheme > Run > Environment variables. this cause the above issue.

确保您没有在产品 > 方案 > 编辑方案 > 运行 > 环境变量中检查任何“空设置”。这导致了上述问题。

回答by maricle

check your scheme settings and make sure all empty settings are unchecked.

检查您的方案设置并确保未选中所有空设置。

回答by Chris Edwards

The only thing that worked for me was:

唯一对我有用的是:

Simulator > Reset Content And Setting

模拟器 > 重置内容和设置

Then clean and run your project

然后清理并运行您的项目

回答by Frank Wang

I have suffered from this problem for a couple days. Basically I have tried every way which can be found on the internet but none of those was helpful indeed. I even reinstalled Xcode two times (Xcode 8.3.2 8E2002, simulator iOS 10.3 14E269). And of course, there was nothing wrong with my project, scheme and empty settings.. everything seems normal. Finally I found that the best way to solve this is before you deploy your app to the simulator, you should clean your project (shift + cmd + K) and then you run again (cmd + R). This will solve your problem.

我已经被这个问题困扰了几天。基本上我已经尝试了可以​​在互联网上找到的所有方法,但没有一个确实有帮助。我什至重新安装了 Xcode 两次(Xcode 8.3.2 8E2002,模拟器 iOS 10.3 14E269)。当然,我的项目、方案和空设置没有任何问题......一切似乎都很正常。最后我发现解决这个问题的最好方法是在你将你的应用程序部署到模拟器之前,你应该清理你的项目(shift + cmd + K)然后你再次运行(cmd + R)。这将解决您的问题。

回答by christopherpow

For me, the problem seems to be related to my being a bit too hasty to remove some red-hilighted Pod frameworks. I thought they were missing, but the entitlement error started immediately after I removed them. The error persisted until I ran pod installto reinstate the deleted Pod frameworks.

对我来说,这个问题似乎与我过于草率地删除一些红灯的 Pod 框架有关。我以为它们不见了,但在我删除它们后立即出现权利错误。该错误一直存在,直到我跑去pod install恢复已删除的 Pod 框架。

回答by bhagyash ingale

Build Setting > Combined > Linking > Mach - o - type change to executable

构建设置 > 组合 > 链接 > Mach - o - 类型更改为可执行文件

This worked for me because I had changed that to static before.

这对我有用,因为我之前已将其更改为静态。

回答by theswed

restart simulator...

重启模拟器...

That worked for me

那对我有用

回答by Sandeep Sonale

Uninstall (Delete) App from Simulator and run it again. works for me.

从模拟器卸载(删除)应用程序并再次运行它。对我来说有效。