制作了動態(tài)庫,放到ipa文件里面去
install_name_tool -change /Library/Frameworks/CydiaSubstrate.framework/CydiaSubstrate @loader_path/libsubstrate.dylib qqAngel.dylib
?/Users/joe/Desktop/逆向安裝包/將dylib注入到macho的工具/yololib QQ? qqAngel.dylib
重簽名后,安裝到手機上點擊打開閃退。
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x, 0x
Exception Note:? EXC_CORPSE_NOTIFY
Termination Description: DYLD, Library not loaded: @executable_path/Frameworks/libsubstrate.dylib | Referenced from: /var/containers/Bundle/Application/0A5D0588-5A5B-4F59-B3D8-0A416163B460/QQ.app/qqAngel.dylib | Reason: no suitable image found.? Did find: | /usr/lib/libsubstrate.dylib: file system sandbox blocked stat()
Triggered by Thread:? 0
萬惡的Library not loaded、no suitable image found。
注意@executable_path/Frameworks/libsubstrate.dylib,而我寫的是@loader_path/libsubstrate.dylib,會不會是這里原因呢?
解決了:把libsubstrate.dylib復(fù)制一個到/Frameworks/libsubstrate.dylib下可以了