Scenario: You have an IPA that you want to test on a device, but the IPA was generated using a provisioning profile that does not include the device, and was signed with a certificate that is not yours. You drag this IPA to XCode’s organizer window hoping it would be installed on the connected device, but this results in an
Turns out that this is easy to fix. Here’s how to make it work.
First, unpack the IPA (
unzip -q <IPA>). This would create a directory named
Payload and a few other files. Delete the existing signature in the extracted package:
For the next step, you need two things: a valid provisioning profile and a valid certificate. Both can be obtained via the iOS developer portal.
Replace the provisioning profile first
Then resign using your certificate (the certificate must be present in your keychain)
Now you can recreate the IPA and then drag & drop it in the XCode organizer to install it on the device!