I notice that DYLD_INSERT_LIBRARIES
no longer works in Mountion Lion if the application is codesigned with entitlements. For example:
DYLD_INSERT_LIBRARIES=./mylib.dylib /Applications/Safari.app/Contents/MacOS/Safari
dyld: DYLD_ environment variables being ignored because main executeable is code signed with entitlements.
I know this is probably a new security feature added to Mountion Lion. Anyone knows if there is an alternative way to do similar thing on Mountain Lion? Thanks!