Skip to content

Instantly share code, notes, and snippets.

@kishikawakatsumi
Created November 23, 2018 08:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kishikawakatsumi/601264e7e219147744c1af379bb074cd to your computer and use it in GitHub Desktop.
Save kishikawakatsumi/601264e7e219147744c1af379bb074cd to your computer and use it in GitHub Desktop.
#!/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