iOS app 砸壳
执行命令 :
DYLD_INSERT_LIBRARIES=dumpdecrypted.dylib /var/containers/Bundle/Application/2A4BC563-164D-456A-8E2B-48ADACCC7ABD/xxxx.app/xxxx
报错:
dyld: could not load inserted library ‘dumpdecrypted.dylib’ because no suitable image found. Did find:
dumpdecrypted.dylib: required code signature missing for ‘dumpdecrypted.dylib’
解决方法:
## 列出可签名证书
security find-identity -v -p codesigning
## 为dumpecrypted.dylib签名
codesign --force --verify --verbose --sign "iPhone Developer: xxx xxxx (xxxxxxxxxx)" dumpdecrypted.dylib
用签过名的dumpdecrypted.dylib,再次砸壳即可。