Resign IPA from development to enterprise
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.
IOS - How to resign an ipa file?
I have found a solution: I have used IReSign to resign .ipa file. The correct entitlements.plist file is this:
application-identifier
{team-identifier}.{bundleId}
aps-environment
production
com.apple.developer.team-identifier
{team-identifier}
get-task-allow
keychain-access-groups
{team-identifier}.{bundleId}
Re-sign IPA (iPhone)
Finally got this working!
Tested with a IPA signed with cert1 for app store submission with no devices added in the provisioning profile. Results in a new IPA signed with a enterprise account and a mobile provisioning profile for in house deployment (the mobile provisioning profile gets embedded to the IPA).
Solution:
Unzip the IPA
unzip Application.ipa
Remove old CodeSignature
rm -r "Payload/Application.app/_CodeSignature" "Payload/Application.app/CodeResources" 2> /dev/null | true
Replace embedded mobile provisioning profile
cp "MyEnterprise.mobileprovision" "Payload/Application.app/embedded.mobileprovision"
Re-sign
/usr/bin/codesign -f -s "iPhone Distribution: Certificate Name" --resource-rules "Payload/Application.app/ResourceRules.plist" "Payload/Application.app"
Re-package
zip -qr "Application.resigned.ipa" Payload
Edit: Removed the Entitlement part (see alleys comment, thanks)
re-sign IPA files
Try this software. It was working fine for me for re-signing IPA with enterprise certificates.
https://github.com/maciekish/iReSign
Related Topics
What Is an "Unwrapped Value" in Swift
How to Know When Uitableview Did Scroll to Bottom in Iphone
Check For Internet Connection Availability in Swift
How to Set the Width of a Cell in a Uitableview in Grouped Style
Cgcontextdrawimage Draws Image Upside Down When Passed Uiimage.Cgimage
Sqlite File Location Core Data
How to Enable_Bitcode in Xcode 7
Uicollectionview Flowlayout Not Wrapping Cells Correctly
Adding Custom Fonts to iOS App Finding Their Real Names
Resizing Uitableview to Fit Content
When to Use Dequeuereusablecellwithidentifier VS Dequeuereusablecellwithidentifier: Forindexpath
Detect If the App Was Launched/Opened from a Push Notification
How to Make Uilabel Display Outlined Text
iOS (Iphone, iPad, Ipodtouch) View Real-Time Console Log Terminal
Converting Escaped Utf8 Characters Back to Their Original Form