Is it possible to resign an .ipa file signed with a development certificate to an enterprise certificate?
Background: My client needs the .ipa file. He owns the enterprise certificates which he won't share with us. The idea is that I deliver the .ipa file with my own development certificate and deliver it to him. He resigns it using his enterprise certificate so he can deploy his app on his internal app store.
Currently I have my .ipa file signed and I'm ready to submit the file, but I have to be certain it's possible.
I read this article but the assumption there is that the provisioning profile is either for Adhoc, or Enterprise distribution .. which is not my case and I don't know if it matters.
It is possible to resign the ipa after it is built.
Terminal way - You can try this. https://coderwall.com/p/cea3fw/resign-ipa-with-new-distribution-certificate
Tool - https://github.com/xndrs/XReSign - A wonderful tool to resign the IPA.
To resign ipa for enterprise or ad-hoc distribution you can follow below simple steps:
To resign app using terminal you can follow below steps:
Unzip ipa
unzip MyApp.ipa
Remove existing signature
rm -rf Payload/MyApp.app/_CodeSignature/
Copy your Ad-Hoc
or enterprise
provisioning profile to payload's embedded
provisioning profile.
cp ~/Desktop/MyAdHoc.mobileprovision Payload/MyApp.app/embedded.mobileprovision
Re-sign .app
file with related code signing identity for Ad-hoc
or Enterprise
certificate available in Keychain.
codesign -f -s "iPhone Distribution: Code signing Certificate for Enterprise or Ad-hoc app" Payload/MyApp.app
Zip payload and give name of ipa
you want.
zip -qr MyApp_Resigned.ipa Payload/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With