GBA001/Systems/build.sh
Riley Testut 6a01a74608 Adds GPGXDeltaCore dependency
Links indirectly via new Systems.framework to avoid conflicts between Cocoapods and SwiftPM.
2021-02-09 16:51:47 -06:00

25 lines
530 B
Bash
Executable File

#!/bin/bash
# Fail if error occurs
set -e
SCHEME="Systems"
PLATFORM="iOS"
BUILD_DIR=".build"
case $PLATFORM in
"iOS")
CONFIG_FOLDER="${CONFIGURATION}-iphoneos"
;;
"iOS Simulator")
CONFIG_FOLDER="${CONFIGURATION}-iphonesimulator"
;;
esac
OUTPUT_DIR="$BUILD_DIR/Build/Products/$CONFIG_FOLDER"
xcodebuild -workspace Systems.xcworkspace -scheme $SCHEME -configuration ${CONFIGURATION} -destination "generic/platform=$PLATFORM" -derivedDataPath $BUILD_DIR
cp -Rf "$OUTPUT_DIR/Systems.framework" "${BUILT_PRODUCTS_DIR}/"