I’m trying to perform library hooking on macOS by using the DYLD_FORCE_FLAT_NAMESPACE=1 env-var, I tested it on an old mac I have with macOS Big Sur (11.0) and it works completely fine, the function is hooked, but then I tested it on a macOS Github Action VM (macos-15-intel) and it doesn’t work on that version.
Is this the new behaviour? The variable got completely deleted on recent versions?
I know about the __DATA,__interpose section trick, as a matter of fact, I’m using it on this project to hook dlsym function, but that doesn’t solve my problem for this specific function (I cannot change the source code).
This is the specific test is failing:
And its CI output: