I try to inject a .dylib to a ipa(a demo ipa) executable file by insert_dylib tool!
The step insert dylib info to LC_LOAD_DYLIB is OK.
But when exec the command :
/usr/bin/codesign -f -s “iPhone Developer: xxx (xxxxxxx)” Payload/Demo.app/
notice that error:
codesign_allocate: file not in an order that can be processed (link edit information does not fill the __LINKEDIT segment):
~/Path/to/Payload/Demo.app/Demo (for architecture armv7)
Payload/Demo.app/: the codesign_allocate helper tool cannot be found or used
I try google search, but can’t solve.
A possible related search result here Recipe OSX Code Signing
Thanks very much!