如何给ipa重新签名
Step1 :
unzip YourApp.ipa
Step2:
rm -rf Payload/YourApp.app/_CodeSignature
Step3:
cp InHouse.mobileprovision Payload/YourApp.app/embedded.mobileprovision
Step4:
/usr/bin/codesign -f -s "iPhone Distribution: YourCompanyName" --resource-rules Payload/YourApp.app/ResourceRules.plist Payload/YourApp.app
Step 5:
zip -r YourApp_inhouse.ipa Payload
* InHouse.mobileprovision 是你要用来签名的provision文件
* iPhone Distribution: YourCompanyName 是指该签名对应的证书的名字。这个可以在keychain中找到