Created
October 28, 2020 11:00
-
-
Save reubn/113ef6bbad067a2fe8c030262e5bf54a to your computer and use it in GitHub Desktop.
Xcode Archive to *.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/zsh | |
tempdir=$(mktemp -d) | |
tempfile=$tempdir/archive.xcarchive | |
xcodebuild -quiet -project ./iCryptr.xcodeproj -config Release -scheme iCryptr -archivePath $tempfile archive | |
mv "$tempfile/Products/Applications" "$tempfile/Payload" | |
pushd "$tempfile/" | |
zip -q -r ./app.ipa ./Payload | |
popd | |
rm ./iCryptr.ipa | |
mv "$tempfile/app.ipa" ./iCryptr.ipa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment