3 ms·
The macOS equivalent is DYLD_INSERT_LIBRARIES. You can then use Objective C reflection from your library to patch someone else's app by replacing method impleme
by grishka 3y ago
The macOS equivalent is DYLD_INSERT_LIBRARIES. You can then use Objective C reflection from your library to patch someone else's app by replacing method implementations for example.
- lloeki 3y agoNote that darwin prevents dylib injection in certain scenarios. https://web.archive.org/web/20161007013145/http://pewpewthespells.com/blog/blocking_code_injection_on_ios_and_os_x.html https://web.archive.org/web/20161007013145/http://pewpewthes... IIRC it has been further tightened since the above was written. DYLD_INTERPOSE is now a thing, DYLD_LIBRARY_PATH and DYLD_INSERT_LIBRARIES may be silently ignored and dropped from the env. https://apple.stackexchange.com/questions/421306/exporting-dyld-insert-libraries-for-libgmalloc-not-working-on-big-sur https://apple.stackexchange.com/questions/421306/exporting-d...