• Home
  • About
    • Rick photo

      Rick

      Moon is a minimal, one column jekyll theme for your blog.

    • Learn More
    • Email
  • Posts
    • All Posts
    • All Tags
  • Projects

重签名打包

24 Jan 2018

Reading time ~1 minute

打包签名


0、使用otool -l xxx.app/xxx | grep crypt 0为砸壳 1未砸壳

1、tweak打包后的包在.theos/obj/debug/xxx.dylib
2、使用otool -L xxx.dylib查看包依赖
3、install_name_tool -change /Library/Frameworks/CydiaSubstrate.framework/CydiaSubstrate @loader_path/libsubstrate.dylib xxx.dylib
4、将xxx.dylib libsubstrate.dylib 放入xxx.app中 然后使用 optool install -c load -p “@executable_path/xxx.dylib” -t /xxx.app/xxx (libsubstrate.dylib该文件应该在/opt/thoes/lib/目录下)
5、对xxx.lib和libsubstrate.dylib 签名 codesign -f -s “iPhone Developer: xxx (xxx)” xxx.dylib
6、对xxx.app中Frameworks所有的lib进行签名 codesign -f -s “iPhone Developer: xxx (xxx)” xxx.framework 注意是所有
7、使用iOS App Siner工具签名

—查看mac上的证书

查看当前系统中可用的所有签名证书

security find-identity -v -p codesigning

签名, 可以加 -f 参数 以覆盖签名

codesign -s ‘iPhone Developer: xxx (5TPNQN7D6K)’ Example.app

查看签名状态

codesign -vv -d Example.app



blog Share Tweet +1