0cyn / ktool

pip install k2l | Mach-O + Obj-C analysis TUI / CLI kit and library. Zero compiled deps, runs anywhere with a python interpreter.
MIT License
484 stars 24 forks source link

Insert command only inserts to first architecture in universal binaries #14

Closed jonpalmisc closed 2 years ago

jonpalmisc commented 2 years ago

I've attempted to insert a load command as follows:

ktool insert --lc load --payload libExample.dylib --out TargetPatched Target

This succeeds in adding the load command to the first architecture in the universal binary, however, it does not insert it to the second. The ability to either;

would be helpful.

0cyn commented 2 years ago

It should already be doing this; currently, it doesn't have slice selection (but should) and just iterates through all of them. Something must be broken.

0cyn commented 2 years ago

image No idea when this was fixed but as of 963e41c it works.

0cyn commented 2 years ago

Fix published in 1.3.0