Last active
January 24, 2018 11:08
-
-
Save mekanics/20cb85b5fca20688b058 to your computer and use it in GitHub Desktop.
unsign ipa
This file contains hidden or 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 | |
if [[ -z "$1" ]] | |
then | |
ipaname=$(ls . | grep -i -E '\.ipa$' | head -1) | |
else | |
ipaname=$1 | |
fi | |
echo "unzip '$ipaname'"; | |
unzip $ipaname; | |
appname=$(ls Payload | grep -i -E '\.app$' | head -1) | |
echo "Remove old CodeSignature" | |
rm -r "Payload/$appname/_CodeSignature" "Payload/$appname/CodeResources" 2> /dev/null | true | |
echo "Remove mobileprovision" | |
rm "Payload/$appname/embedded.mobileprovision" | |
newipa="${ipaname%.*}-unsigned.ipa" | |
echo "repack to '$newipa'" | |
zip -qrm "$newipa" Payload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment