Run these commands from the terminal in the folder where you have YOUR_IPA.ipa file.
- unzip -q YOUR_IPA.ipa
- rm -rf Payload/YOUR_IPA.app/_CodeSignature
- rm -rf Payload/YOUR_IPA.app/Frameworks/X.framework/_CodeSignature
- codesign -f -s “iPhone Distribution: XXX (XXXX)” Payload/YOUR_IPA.app/Frameworks/X.framework
- security cms -D -i PRODUCTION.mobileprovision > pr.plist
- /usr/libexec/PlistBuddy -x -c ‘Print :Entitlements’ pr.plist > YOUR_Plist.plist
- codesign -f -s “iPhone Distribution: XXX (XXXX)” –entitlements YOUR_Plist.plist Payload/YOUR_IPA.app
- zip -qr ResignedApp.ipa Payload SwiftSupport Symbols