What does the get-task-allow entitlement do in Xcode?
Codemia Knowledge Hub ·
get-task-allow is a boolean entitlement in an iOS or macOS app's code signature that controls whether other processes, such as the debugger, can attach to the app. When it is true, Xcode's LLDB can connect, inspect memory, set breakpoints and control execution. Development builds have it set to true by default, and App Store distribution builds have it false for security. If it is misconfigured, debugging fails or the App Store rejects the submission.
What the entitlement allows
When get-task-allow is true:
- Xcode's LLDB debugger can attach to the running process
- Instruments can profile the app
- Other developer tools can inspect the process
- The app can be debugged on a physical device via Xcode
When it is false:
- No external process can attach to the app
- Debugging is disabled
- The app is hardened against runtime inspection
- Required for App Store and enterprise distribution
How Xcode sets it for you
Xcode controls get-task-allow through build configurations and provisioning profiles:
You normally never set it by hand. Automatic code signing handles it from the selected scheme and provisioning profile. Adding it manually to the .entitlements file can conflict with the profile and cause code signing failures.
The relevant build settings:
Checking the entitlement on a build
Errors caused by get-task-allow
App Store upload rejected over get-task-allow
This rejection means the build was signed with get-task-allow = true: a Debug build, or one signed with a Development profile. Archive with the Release configuration and a Distribution provisioning profile instead.
Cannot attach the debugger on a device
The provisioning profile may not include get-task-allow. Check that:
- You are using a Development provisioning profile
- The device is registered in your Apple Developer account
- The build configuration is Debug, not Release
Ad-hoc builds signed with a Development profile
Ad-hoc and enterprise distribution profiles set get-task-allow = false. Using a Development profile for ad-hoc builds includes the entitlement and may cause installation failures on non-registered devices.
Re-signing an app for testing
macOS Hardened Runtime and notarization
On macOS, get-task-allow interacts with the Hardened Runtime:
Apps notarized for distribution outside the App Store need the Hardened Runtime enabled and get-task-allow set to false. The notarization service rejects builds with get-task-allow = true because it weakens the Hardened Runtime. During development, Xcode adds get-task-allow = true automatically even with the Hardened Runtime enabled.
Archiving correctly in CI
Build scripts that default to the Debug configuration produce binaries with get-task-allow = true, so always pass -configuration Release when archiving:
The method: app-store export option strips get-task-allow from the final binary.
Related reading
- What does Python's eval do?
- What does the aws.cognito.signin.user.admin scope mean in Amazon Cognito?
- What guarantees does Microsoft Graph provide for change notifications?
- What happens if a TiDB leader goes down? How does TiDB use Raft to ensure data security and consistency?
- What does is unavailable Use truncatingRemainder instead mean?
- What does it mean to inflate a view from an xml file?
- What does it mean The serializable class does not declare a static final serialVersionUID field?
- What does it mean when MySQL is in the state Sending data?

System Design Fundamentals
Build a strong foundation in designing scalable, reliable distributed systems.
View the courseSystem Design practice on Codemia
Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.