Last active
May 12, 2019 23:52
-
-
Save c-goosen/cb79d260598809d3765df525bc888939 to your computer and use it in GitHub Desktop.
Archiving Ionic 3 quickly with build and xcodebuild archive
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
# Script I use for quicker archiving of iOS builds. | |
# Might need to enter password for keychain based on your security preference | |
cd $(pwd)/platforms/ios | |
xcodebuild clean | |
cd ../../ | |
ionic cordova build ios --release --production | |
# --prod should minify and compress html/css/js assets. | |
cd $(pwd)/platforms/ios | |
echo "\n" | |
echo "xcodebuild ios build" | |
echo "\n" | |
xcodebuild -workspace project.xcworkspace \ | |
-scheme project \ | |
-destination generic/platform=iOS build | |
echo "\n" | |
echo "xcodebuild ios archive" | |
echo "\n" | |
xcodebuild archive -project project.xcodeproj -scheme project \ | |
-destination generic/platform=iOS -sdk iphoneos -verbose -configuration AppStoreDistribution \ | |
-archivePath $(pwd)/build/project.xcarchive | |
echo "\n" | |
echo "xcodebuild ios archive ipa" | |
echo "\n" | |
xcodebuild -exportArchive -archivePath $(pwd)/build/project.xcarchive -exportOptionsPlist $(pwd)/ios-release-arch.xcarchive/Info.plist -exportPath $(pwd)/build |
hthetiot
commented
May 12, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment