I notice that DYLD_INSERT_LIBRARIES
no longer works in Mountion Lion if the application is codesigned with entitlements. For example:
DYLD_INSER
There is no way to make DYLD_INSERT_LIBRARIES
work on applications of this nature.
dyld
strips all DYLD_
environment variables on applications it considers to be restricted, which includes setuid/setgid binaries and those signed with particular entitlements. You can see how this work by looking at the dyld source. In particular, processRestricted
is responsible for determining whether the restrictions should be applied and pruneEnvironmentVariables
does the special handling of the environment variables.