Skip to content

Instantly share code, notes, and snippets.

@reubn
Created October 28, 2020 11:00
Show Gist options
  • Save reubn/113ef6bbad067a2fe8c030262e5bf54a to your computer and use it in GitHub Desktop.
Save reubn/113ef6bbad067a2fe8c030262e5bf54a to your computer and use it in GitHub Desktop.
Xcode Archive to *.ipa
#!/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