From f4668b38d6d4ca68a40657823662487aec0f98bb Mon Sep 17 00:00:00 2001 From: tigerenwork Date: Mon, 29 Jun 2026 23:38:21 +0800 Subject: [PATCH] fix: build_release.sh now passes Config.xcconfig to xcodebuild The Release build wasn't picking up FEISHU_APP_ID / FEISHU_APP_SECRET because xcodebuild doesn't automatically use Config.xcconfig unless it's passed with -xcconfig flag. Added auto-detection: if Config.xcconfig exists, it's used; otherwise a warning is printed. Co-Authored-By: Claude --- scripts/build_release.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) 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