Created
June 2, 2017 10:20
-
-
Save odra/2750bc8d60a139948fe039d95bc74a51 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
#!/bin/bash | |
SRC_FOLDER="$PWD/src" | |
TEAM_ID='' | |
BUILD_FILE='build.xcconfig' | |
rm -rf $BUILD_FILE | |
echo "CODE_SIGN_IDENTITY =" >> $BUILD_FILE | |
echo "DEVELOPMENT_TEAM = $TEAM_ID" >> $BUILD_FILE | |
echo "CODE_SIGNING_REQUIRED=NO" >> $BUILD_FILE | |
(cd $SRC_FOLDER; xcodebuild -xcconfig "$PWD/$BUILD_FILE" clean) | |
(cd $SRC_FOLDER; pod install) | |
xcodebuild \ | |
-workspace "$SRC_FOLDER/helloworld-ios-app.xcworkspace" \ | |
-scheme helloworld-ios-app \ | |
-xcconfig "$PWD/$BUILD_FILE" \ | |
-configuration Release \ | |
-sdk iphoneos \ | |
-derivedDataPath $SRC_FOLDER \ | |
build \ | |
CONFIGURATION_BUILD_DIR="$SRC_FOLDER/build/device/Release-iphoneos" \ | |
OTHER_CFLAGS='-fstack-protector -fstack-protector-all' | |
rm -rf "$PWD/myapp.app" | |
cp -R src/build/device/Release-iphoneos/hello-henry.app "$PWD/myapp.app" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment