We've received an IPA from our vendor signed with a dev provisioning profile, to test Prod Push messaging we manually resigned the IPA with an AdHoc profile.
The app installs and runs fine on the device, but fails to register for Push Messaging.
Here's what we did (followed this https://coderwall.com/p/cea3fw):
unzip app.ipa
rm -rf Payload/MyApp.app/_CodeSignature/
cp ~/Downloads/AdHoc.mobileprovision Payload/MyApp.app/embedded.mobileprovision
codesign -f -s "iPhone Distribution: Company Certificate" --resource-rules Payload/MyApp.app/ResourceRules.plist Payload/MyApp.app
zip -qr app-resigned.ipa Payload/
Sideload to device, app launches, but fails to register for push.
Since then the vendor sent us a xacrchive file, which we can successfully export signing it via xcode, but we're still curious as to why code sign didn't work on the IPA.