Skip to content

Commit 21fd5a1

Browse files
Fix macOS CI: run flutter build first to generate ephemeral files, remove x64 option
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 055e7e9 commit 21fd5a1

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/build-macos.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@ on:
1212
required: true
1313
type: string
1414
arch:
15-
description: 'Architecture (arm64, x64, or both)'
15+
description: 'Architecture'
1616
required: false
1717
type: choice
1818
options:
1919
- arm64
20-
- x64
21-
- both
2220
default: arm64
2321

2422
jobs:
@@ -123,7 +121,11 @@ jobs:
123121
flutter pub get
124122
dart run build_runner build --delete-conflicting-outputs
125123
126-
# Two-step xcodebuild — flutter build macos fails with module dependency errors
124+
# Try flutter build first — it generates ephemeral files needed by xcodebuild.
125+
# It may fail with module dependency errors, which is OK.
126+
flutter build macos --release || true
127+
128+
# Two-step xcodebuild — handles module dependency errors that flutter build can't
127129
cd macos
128130
rm -rf Pods Podfile.lock
129131
pod install

0 commit comments

Comments
 (0)