coderesign -d /you/ipa/path/xx.ipa -p your_app.mobileprovision -ex your_watchkitextension.mobileprovision -wp your_watchkitapp_mobileprovision -se your_sharedExtension_mobileprovision -ci certificates_index -py your-python
coderesign -d /you/ipa/path/xx.ipa -p your_app.mobileprovision -ex your_watchkitextension.mobileprovision -wp your_watchkitapp_mobileprovision -se your_sharedExtension_mobileprovision -ci certificates_index
option -ci: App ID prefix should be passed that you can find this value from developer.apple.com when you creating app id, or find it from keychain tools if you have been installed the cert. For example : "MM776WPM62", you can find it from keychain tool
iPhone Developer: Miao guangfa (MM776WPM62)
option -ci: distribution name should be passed that you can find this value from keychain tools. For example: "iPhone Distribution: Beijing xxx Network Technology Co., Ltd.", you should only pass "Beijing xxx Network Technology Co., Ltd".
Enter
coderesignand return, or Enter
coderesign -hand return.
These specifications and coderesign are available under the MIT license.