Links indirectly via new Systems.framework to avoid conflicts between Cocoapods and SwiftPM.
25 lines
530 B
Bash
Executable File
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}/"
|