Files
Yonas Kolb 4988388cc5 Update to Xcode 12 (#960)
* update to final xcode 12 version

* only generate and test xcode 12 project

* update default xcode version to 12

* update changelog
2020-10-02 18:42:50 +10:00

24 lines
856 B
Bash
Executable File

#!/bin/bash
set -e
XCODE_VERSION=$(/usr/libexec/PlistBuddy -c "Print :DTXcode" "$(xcode-select -p)/../Info.plist")
CARTHAGE_DYNAMIC_FRAMEWORKS=(Result)
CARTHAGE_STATIC_FRAMEWORKS=(SwiftyJSON swift-nonempty)
XCODE_XCCONFIG_FILE="$PWD/carthage_dynamic.xcconfig" \
carthage bootstrap $CARTHAGE_DYNAMIC_FRAMEWORKS --cache-builds
XCODE_XCCONFIG_FILE="$PWD/carthage_static.xcconfig" \
carthage bootstrap $CARTHAGE_STATIC_FRAMEWORKS --cache-builds
echo "
⚙️ Building iOS app"
xcodebuild -quiet -workspace Workspace.xcworkspace -scheme "App_iOS Test" -configuration "Test Debug" -xcconfig fixtures.xcconfig
echo "✅ Successfully built iOS app"
echo "
⚙️ Building macOS app"
xcodebuild -quiet -workspace Workspace.xcworkspace -scheme "App_macOS" -configuration "Test Debug" -xcconfig fixtures.xcconfig
echo "✅ Successfully built macOS app"