macOS 14 sonoma (23A5257q) DYLD_INSERT_LIBRARIES is not working totally

  1. open Terminal.app
  2. export DYLD_INSERT_LIBRARIES="path_to_dylib"
  3. env

Result:

  1. x86: no DYLD_INSERT_LIBRARIES environment is printed.

  2. M1 pro:

dyld[1393]: tried: '/usr/local/lib/***.dylib' (fat file, but missing compatible architecture (have 'x86_64,arm64', need '')), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/lib/***.dylib' (no such file), '/usr/local/lib/***.dylib' (fat file, but missing compatible architecture (have 'x86_64,arm64', need ''))

Replies

Looking at your post it seems that you’re trying to insert your library into a process running the /usr/bin/env executable. Is that right?

If so, I wouldn’t expect that to work. I presume from your post that it worked previously. Honestly, I find that very surprising.

What are you really trying to do here?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I've encountered the same issue as I'm trying to insert my library into a process, similar to how cc operates. Is there a solution or workaround available for this situation?

I've encountered the same issue as I'm trying to insert my library into a process

What executable is that process running?

similar to how cc operates.

cc the C compiler? Or something else?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"