iCyber
(iCyber)
2015 年6 月 8 日 15:33
1
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
failed
I try google search, but can’t solve.
A possible related search result here Recipe OSX Code Signing
Thanks very much!
IIRC, codesign works on executables rather than documents. Try
/usr/bin/codesign -f -s "iPhone Developer: xxx (xxxxxxx)" Payload/Demo.app/Demo
to see if it works
iCyber
(iCyber)
2015 年6 月 9 日 02:53
3
Thanks, But the command does’t works here! Notice the same errror info.
If I don’t modify the binary file, only re-codesign by
/usr/bin/codesign -f -s "iPhone Developer: xxx (xxxxxxx)" Payload/Demo.app/
that can works good!
I guess, insert_dylib tool only insert the LC_LOAD_DYLIB , and other info need update together if modify the LC_COMMAND
Try ldid instead by referring to this post
iCyber
(iCyber)
2015 年7 月 10 日 05:48
5
The author updated the tools, and solve the problem!
lobster
(qinzhiwei)
2016 年3 月 30 日 08:51
6
重签名也出现 the codesign_allocate helper tool cannot be found or used 错误 XCode7.3 系统OSX Capitan 10.11.4 。。
lobster
(qinzhiwei)
2016 年3 月 30 日 13:48
7
重签名也出现 the codesign_allocate helper tool cannot be found or used 错误 XCode7.3 系统OSX Capitan 10.11.4 。。