From 15e607dfc611f57f284215a3aaa471e36b589dde Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 2 Jul 2026 11:43:50 +0800 Subject: [PATCH] Fix: Disable Android build temporarily, fix iOS simulator app path detection --- .github/workflows/build-debug.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-debug.yml b/.github/workflows/build-debug.yml index 2b2bd06..21a52db 100644 --- a/.github/workflows/build-debug.yml +++ b/.github/workflows/build-debug.yml @@ -15,6 +15,7 @@ jobs: build-android-debug: name: Build Android Debug APK runs-on: ubuntu-latest + if: false # 暂时禁用 Android 构建 steps: - name: Checkout repository @@ -149,13 +150,22 @@ jobs: # 方法4: 使用 xcodebuild 显示构建产物路径 if [ -z "$APP_PATH" ]; then echo "Getting build settings to find target build dir..." - BUILD_DIR=$(xcodebuild -project uuvpn.xcodeproj -scheme SFI -showBuildSettings | grep "TARGET_BUILD_DIR" | cut -d '=' -f 2 | tr -d ' ') - echo "TARGET_BUILD_DIR: $BUILD_DIR" + # 获取模拟器构建目录 (Debug-iphonesimulator) + BUILD_DIR=$(xcodebuild -project uuvpn.xcodeproj -scheme SFI -sdk iphonesimulator -showBuildSettings | grep "TARGET_BUILD_DIR" | cut -d '=' -f 2 | tr -d ' ') + echo "TARGET_BUILD_DIR (Simulator): $BUILD_DIR" if [ -n "$BUILD_DIR" ] && [ -d "$BUILD_DIR" ]; then + echo "Contents of TARGET_BUILD_DIR:" + ls -la "$BUILD_DIR" || true APP_PATH=$(find "$BUILD_DIR" -name "*.app" -type d | head -n 1) fi fi + # 方法5: 直接查找模拟器构建目录 + if [ -z "$APP_PATH" ]; then + echo "Searching in Debug-iphonesimulator directory..." + APP_PATH=$(find ~/Library/Developer/Xcode/DerivedData -path "*Debug-iphonesimulator*.app" -type d | head -n 1) + fi + if [ -n "$APP_PATH" ] && [ -d "$APP_PATH" ]; then echo "✅ Found app at: $APP_PATH" echo "App size:"