From ec225e72bd6548ea5a03385f62bff2a524beb160 Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 2 Jul 2026 10:37:27 +0800 Subject: [PATCH] Fix: Add skip validation flags and list schemes for better error diagnosis --- .github/workflows/build-debug.yml | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-debug.yml b/.github/workflows/build-debug.yml index 69fd170..92443e5 100644 --- a/.github/workflows/build-debug.yml +++ b/.github/workflows/build-debug.yml @@ -86,8 +86,15 @@ jobs: run: | cd iOS-SwiftUI-Code xcodebuild -resolvePackageDependencies -project uuvpn.xcodeproj -scheme SFI - - - name: Build iOS Debug App + + - name: List available schemes + run: | + cd iOS-SwiftUI-Code + xcodebuild -list -project uuvpn.xcodeproj + + - name: Build iOS Debug App (attempt 1 - with verbose output) + id: build_attempt_1 + continue-on-error: true run: | cd iOS-SwiftUI-Code xcodebuild clean build \ @@ -97,7 +104,19 @@ jobs: -destination 'platform=iOS Simulator,name=iPhone 15,OS=latest' \ -configuration Debug \ CODE_SIGN_IDENTITY="" \ - CODE_SIGNING_REQUIRED=NO + CODE_SIGNING_REQUIRED=NO \ + -skipPackagePluginManifestValidation \ + -skipMacroValidation \ + 2>&1 | tee build_output.log + + - name: Check if build succeeded + if: steps.build_attempt_1.outcome == 'failure' + run: | + echo "First build attempt failed. Trying alternative approach..." + cd iOS-SwiftUI-Code + # 尝试使用 xcpretty 获取更清晰的错误信息 + cat build_output.log | grep -A 5 "error:" || echo "No specific error found in log" + exit 1 - name: Find and upload iOS Debug App run: |