Subash Suyambuthangam
Subash Suyambuthangam

Reputation: 137

ipa file does not contain a provisioning profile

I am facing an issue in Re signing of IPA file. My requirement is to rename the app and resign it with new provisioning profile and certificate. So i have changed the "CFBundleIdentifier" to the new app name. Then I followed the below steps to re sign the IPA file.

extract the IPA file:unzip Myapp.ipa

remove existing code signature: rm -r "Payload/MyApp Mobile.app/_CodeSignature" "Payload/MyApp Mobile.app/CodeResources" 2> /dev/null | true

replace the existing Provisioning Profile: cp "MyEnterprise.mobileprovision" "Payload/MyApp Mobile.app/embedded.mobileprovision"

re-sign the executable: /usr/bin/codesign -f -s "iPhone Distribution: Certificate Name" --resource-rules "Payload/MyApp Mobile.app/ResourceRules.plist" "Payload/MyApp Mobile.app"

re-package the IPA file for distribution: zip -qr "MyApp.resigned.ipa" Payload

I am just re signing this IPA with the new Provisioning profile and the certificate which i have received from my vendor. I have followed the steps and resigned the app. While installing in Mobile Iron it is giving error as "ipa file does not contain provisioning profile". But i can see that my new provisioning profile is inside the IPA file.

Please anyone tell what could be the issue. I am new to this Apple app.

Upvotes: 2

Views: 3280

Answers (1)

Ravi Gautam
Ravi Gautam

Reputation: 978

I think your device UDID is not added in your provisioning profile.Most probably this error comes at this point.The following link can help you-

A valid provisioning profile for this executable was not found for debug mode

Upvotes: 0

Related Questions