Created
November 23, 2018 08:09
-
-
Save kishikawakatsumi/601264e7e219147744c1af379bb074cd to your computer and use it in GitHub Desktop.
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/bash | |
set -exo pipefail | |
PROJECT_ROOT=$(cd $(dirname $0); cd ..; pwd) | |
PODS_ROOT="$PROJECT_ROOT/Pods" | |
PODS_PROJECT="$PODS_ROOT/Pods.xcodeproj" | |
SYMROOT="$PODS_ROOT/Build" | |
(cd "$PROJECT_ROOT"; bundle install --path=vendor/bundle --binstubs=vendor/bin) | |
(cd "$PROJECT_ROOT"; bundle exec pod repo update) | |
(cd "$PROJECT_ROOT"; COCOAPODS_DISABLE_STATS=true bundle exec pod install) | |
xcodebuild -project "$PODS_PROJECT" \ | |
-sdk iphoneos -configuration Release -alltargets \ | |
ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=NO SYMROOT="$SYMROOT" \ | |
BITCODE_GENERATION_MODE=bitcode | bundle exec xcpretty | |
xcodebuild -project "$PODS_PROJECT" \ | |
-sdk iphonesimulator -configuration Release -alltargets \ | |
ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=NO SYMROOT="$SYMROOT" | bundle exec xcpretty |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment