Impossible to debug in device '[my iPhone] has denied the launch request.'

Facing a weird issue from few days now:


If I set the automatic signing in Xcode to true, it successfully generates a provisioning profile. The debug build then proceeds as usual and the app is installed to my device, however the debugger fails to attach to the process. The error message in Xcode reads '[my iPhone] has denied the launch request.'

After some struggle I found out that the 'get-task-allow' flag is set to false in the automatically generated provision. As the account that I use is not enrolled in the development program, I am not able to change the generated parameters of the provision profile using the web interface. I guess that it is the cause of my problem.

An attempt to change the value of the flag in the entitlements results in the conflict between my entitltments and the generated profile.

The same problem occurs for the blank newly-created projects that should work out of the box. I tried rebooting and updating everything, wiping my phone and even using another Mac. Same error for all projects – both old and new.


Does anyone know how what causes this issue, I really need to debug in device and I'm stuck here ?

Replies

Same problem here

Same here. I’ve tried to delete and regenerate provision file for two days, but no luck. ‘get-task-allow’ flag is always set to false.

Same problem here

Same problem here

Same Problem here. Tried regeneration of provisional profile. Still the same issue.

Same issue here. I’ve tried everything. I’ve tried deleting my developer certs, reinstalling Xcode, restarting my Mac and iPhone. The only thing I have not tried at this point is reinstalling iOS and Mac OS.

So I figured it out sort of. Looks like something is wrong with the free provisioning profiles. I purchased a yearly dev subscription and now I can deploy without any issues. I hope this is a bug and Apple doesn’t plan on putting more limitations on free developers.

Same problem. Hope Apple fixes it soon

That fix worked for me:

https://youtu.be/j1ztHZ8v474