DYLD_INSERT_LIBRARIES arm64 Ventura bug?

Prior to Ventura, you could compile arm64e dylibs, sign them, and inject them with DYLD_INSERT_LIBRARIES into some platform binaries (not all, mostly dev tools - debugserver, python, java, etc).

Post Ventura, we're getting an error of (mach-o file, but is an incompatible architecture (have 'arm64e', need '')). I would assume if the desire was to stop loading custom libraries into binaries they'd have the same limitation as other platforms binaries (which just ignore DYLD_INSERT_LIBRARIES, they don't crash), so not sure if it's intended, it's a bug or we need to add an extra step in order to load our dylib into such binary.

Posted on Nov 6, 2022 1:54 AM

Reply

Similar questions

3 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

DYLD_INSERT_LIBRARIES arm64 Ventura bug?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.