当前位置: 首页 > 工具软件 > dumpdecrypted > 使用案例 >

iOS签名dyld: warning: could not load inserted library ‘dumpdecrypted.dylib‘ into hardened process

张敏达
2023-12-01

iOS利用dumpdecrypted.dylib注入解密时出现如下警告

dyld: warning: could not load inserted library 'dumpdecrypted.dylib' into hardened process because no suitable image found.  Did find:
	dumpdecrypted.dylib: code signature in (dumpdecrypted.dylib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
Abort trap: 6

经分析是 dumpdecrypted.dylib缺少签名,重新给dumpdecrypted.dylib签名后再用即可。

方法如下:
1、终端命令找出电脑中可签名证书

security find-identity -v -p codesigning

2、cd到dumpdecrypted.dylib目录,给dumpdecrypted.dylib签名

codesign --force --verify --verbose --sign "iPhone Developer: Test TestName (1234TESTCODE)" dumpdecrypted.dylib

得到结果为

dumpdecrypted.dylib: signed Mach-O universal (armv7 armv7s arm64) [dumpdecrypted]
 类似资料: