Last active
January 21, 2020 00:45
-
-
Save chris-muller/f5b60706b918e7ebec477d2804a36971 to your computer and use it in GitHub Desktop.
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 for building and exporting iOS project | |
workspace_name=xxxx | |
scheme_name=xxxx | |
current_dir=$(dirname $0) | |
root_dir=$current_dir/.. | |
archive_path=$root_dir/build/ios/archive/$workspace_name.xcarchive | |
export_path=$root_dir/build/ios/export | |
echo "Recreating build folder" | |
# Recreate build folder | |
rm -rf $root_dir/build; | |
mkdir -p $root_dir/build/ios/archive | |
mkdir -p $root_dir/build/ios/export | |
echo "Building..." | |
# Build new project | |
xcodebuild -workspace $root_dir/ios/$workspace_name.xcworkspace -scheme $scheme_name -sdk iphoneos -configuration AppStoreDistribution archive -archivePath $archive_path | |
echo "Build complete" | |
# Export project | |
xcodebuild -exportArchive -archivePath $archive_path -exportOptionsPlist $current_dir/ios-export-options.plist -exportPath $export_path | |
echo "Export complete" | |
open $export_path |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment