Ios – What does get-task-allow do in Xcode


When I set up my entitlements in my iPhone app project, I create a new Entitlements.plist, and set the value of get-task-allow to false. But why? What does this key represent?

Note this is related to Application could not be verified error when building app for iPhone device – I found that flipping the value of this key to true allowed me to install the app on my device)

Best Answer

From this thread on ADC:

get-task-allow, when signed into an application, allows other processes (like the debugger) to attach to your app. Distribution profiles require that this value be turned off, while development profiles require this value to be turned on (otherwise Xcode would never be able to launch and attach to your app).