返回首页

注入动态库后打包ipa闪退【完结】

来源:www.homebrew.com.cn   时间:2022-12-29 21:51   点击:253  编辑:admin 手机版

制作了动态库,放到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复制一个到/Frameworks/libsubstrate.dylib下可以了

顶一下
(0)
0%
踩一下
(0)
0%