A Boolean value that indicates whether the app may be affected by dynamic linker environment variables, which you can use to inject code into your app’s process.
- macOS 10.7+
If your app relies on dynamic linker variables to modify its behavior at runtime, add the
Allow DYLD Environment Variables Entitlement to your app. This causes the macOS dynamic linker (
dyld) to read from environment variables that begin with
DLYD_. See the
dyld man page for a list of these variables.
Injecting libraries or changing search paths with this feature may still require another entitlement. For example, you also need the
Disable Library Validation Entitlement if an injected library isn’t signed with the expected team ID.
To add the entitlement to your app, first enable the Hardened Runtime capability in Xcode, and then under Runtime Exceptions, select Allow DYLD Environment Variables.