Add load command to mach-o binary

2019-05-26 10:22发布

问题:

Is it possible to add an LC_LOAD_DYLIB to a binary? There has been protection against DYLD_INSERT_LIBRARIES being used so I need another to load a dylib into an app

回答1:

I open-sourced optool which does exactly this.