Fix: Add detailed build result checking and DerivedData inspection
This commit is contained in:
@@ -109,6 +109,15 @@ jobs:
|
|||||||
-skipPackagePluginManifestValidation \
|
-skipPackagePluginManifestValidation \
|
||||||
-skipMacroValidation \
|
-skipMacroValidation \
|
||||||
2>&1 | tee build_output.log
|
2>&1 | tee build_output.log
|
||||||
|
|
||||||
|
# 立即检查构建结果
|
||||||
|
echo "Build completed, checking results..."
|
||||||
|
BUILD_RESULT=$(grep "BUILD SUCCEEDED" build_output.log || echo "BUILD FAILED")
|
||||||
|
echo "$BUILD_RESULT"
|
||||||
|
|
||||||
|
# 显示构建产物目录
|
||||||
|
echo "Checking DerivedData directory..."
|
||||||
|
find ~/Library/Developer/Xcode/DerivedData -name "*.app" -type d || echo "No .app found in DerivedData"
|
||||||
|
|
||||||
- name: Check if build succeeded
|
- name: Check if build succeeded
|
||||||
if: steps.build_attempt_1.outcome == 'failure'
|
if: steps.build_attempt_1.outcome == 'failure'
|
||||||
@@ -166,6 +175,14 @@ jobs:
|
|||||||
APP_PATH=$(find ~/Library/Developer/Xcode/DerivedData -path "*Debug-iphonesimulator*.app" -type d | head -n 1)
|
APP_PATH=$(find ~/Library/Developer/Xcode/DerivedData -path "*Debug-iphonesimulator*.app" -type d | head -n 1)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# 方法6: 列出所有 DerivedData 内容
|
||||||
|
if [ -z "$APP_PATH" ]; then
|
||||||
|
echo "Listing ALL contents in DerivedData..."
|
||||||
|
find ~/Library/Developer/Xcode/DerivedData -type d -name "*.app" 2>/dev/null || true
|
||||||
|
find ~/Library/Developer/Xcode/DerivedData -type d -name "Build" 2>/dev/null || true
|
||||||
|
ls -R ~/Library/Developer/Xcode/DerivedData/ 2>/dev/null | head -100 || true
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "$APP_PATH" ] && [ -d "$APP_PATH" ]; then
|
if [ -n "$APP_PATH" ] && [ -d "$APP_PATH" ]; then
|
||||||
echo "✅ Found app at: $APP_PATH"
|
echo "✅ Found app at: $APP_PATH"
|
||||||
echo "App size:"
|
echo "App size:"
|
||||||
|
|||||||
Reference in New Issue
Block a user