本文介绍如何给生成的dumpdecrypted.dylib签名。
1、Mac终端命令查找可用的签名证书
security find-identity -v -p codesigning
得到结果
security find-identity -v -p codesigning
1) ABCDEFG123456789ABCDEFG "iPhone Developer: Ming XingShi (6RTHHF234)"
2) OPCDEFGHE987654OPCDEFGH "iPhone Distribution: Ming XingShi (8JKUYTV349)"
2 valid identities found
2、cd到对应的dumpdecrypted.dylib目录中,签名
codesign --force --verify --verbose --sign "iPhone Developer: Ming XingShi (6RTHHF234)" dumpdecrypted.dylib
得到结果如下
dumpdecrypted.dylib: signed Mach-O universal (armv7 armv7s arm64) [dumpdecrypted]