You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This fixes the regression introduced in PR flutter#154645 that broke `flutter run` for projects with Apple Watch extensions. The fix restores the check that prevents ARCHS from being set when a watchOS companion app is detected, while preserving the Swift Package Manager improvements from the original PR.
The regression occurred because PR flutter#154645 accidentally removed the hasWatchCompanion check when refactoring the architecture handling code. This caused xcodebuild to attempt building watchOS targets with iOS architectures, which is impossible and results in build failures.
Changes:
- Move ONLY_ACTIVE_ARCH setting outside the hasWatchCompanion check (preserves SPM fix)
- Keep ARCHS setting inside the \!hasWatchCompanion check (restores watchOS protection)
This matches the historical pattern that worked from Flutter 2020-2024 and fixes the issue reported by users since Flutter 3.27.0.
Fixesflutter#160622
0 commit comments