diff --git a/scripts/build_release.sh b/scripts/build_release.sh index 0f31355..1fa6605 100755 --- a/scripts/build_release.sh +++ b/scripts/build_release.sh @@ -13,10 +13,20 @@ APP_NAME="Bugger.app" echo "=== Cleaning ===" xcodebuild -project "$PROJECT" -scheme "$SCHEME" clean 1>/dev/null +# Use Config.xcconfig if present +XCCONFIG_FLAG="" +if [ -f "Config.xcconfig" ]; then + XCCONFIG_FLAG="-xcconfig Config.xcconfig" + echo "=== Using Config.xcconfig ===" +else + echo "=== WARNING: Config.xcconfig not found, credentials will be empty ===" +fi + echo "=== Building Release ===" xcodebuild -project "$PROJECT" -scheme "$SCHEME" \ -configuration Release \ -derivedDataPath "$BUILD_DIR/derived" \ + $XCCONFIG_FLAG \ build 2>&1 | grep -E "^.../|error:|BUILD|warning:.*Swift" # Find the built .app