Created
November 9, 2015 09:24
-
-
Save tkoki/84d55daef96ceb926f36 to your computer and use it in GitHub Desktop.
既存のipaファイルを別のプロビジョニングプロファイルで署名し直す
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IPA="/path/to/original.ipa" | |
NEWIPA="new_filename.ipa" | |
PROVISION="/path/to/new.mobileprovision" | |
CERTIFICATE="Name of certificate: To sign with" | |
unzip -q "$IPA" | |
rm -rf Payload/*.app/_CodeSignature | |
cp "$PROVISION" Payload/*.app/embedded.mobileprovision | |
codesign -f -s "$CERTIFICATE" Payload/*.app | |
zip -qr "$NEWIPA" Payload | |
rm -rf Payload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment