xcode 8 error denied by service delegate (SBMainWo

2020-02-02 06:31发布

问题:

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").

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.

Any help or suggestions?

回答1:

Quitting the simulator and relaunching fixed this for me.



回答2:

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.



回答3:

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



回答4:

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



回答5:

The only thing that worked for me was:

Simulator > Reset Content And Setting

Then clean and run your project



回答6:

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.



回答7:

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 install to reinstate the deleted Pod frameworks.



回答8:

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

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



回答9:

restart simulator...

That worked for me



回答10:

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



回答11:

I followed all the other suggestions in here, and for me, it would fix if I restart Xcode and simulator, then it would work once. After that, the issue would start happening again until I did another restart.

What fixed it for me was to delete the scheme and recreate it.



回答12:

I got this error when I use "/" character in target name. Fixed after deleting it.



回答13:

Xcode 10: Erase All content on simulator > Quit Xcode > Reopen XCode & Rebuild worked for me