Flutter build fails after MacBook, macOS & Xcode upgrade

Build completes on MacBook Pro with Intel chip running macOS 12.7.1 and Xcode 13.4.1. Build fails on MacBook Air with Apple M2 chip running macOS 14.2.1 and Xcode 15.1.

bryonnicoson@Bryons-Air wishbone % flutter doctor -v
[✓] Flutter (Channel stable, 3.16.5, on macOS 14.2.1 23C71 darwin-arm64, locale
    en-US)
    • Flutter version 3.16.5 on channel stable at
      /Users/bryonnicoson/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 78666c8dc5 (13 days ago), 2023-12-19 16:14:14 -0800
    • Engine revision 3f3e560236
    • Dart version 3.2.3
    • DevTools version 2.28.4

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/bryonnicoson/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      17.0.7+0-17.0.7b1000.6-10550314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15C65
    • CocoaPods version 1.14.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      17.0.7+0-17.0.7b1000.6-10550314)

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 14.2.1 23C71
      darwin-arm64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 120.0.6099.129

[✓] Network resources
    • All expected network resources are available.

• No issues found!
bryonnicoson@Bryons-Air wishbone % flutter build ipa

Archiving org.wishbonecaninerescue...
Automatically signing iOS for device deployment using specified development team
in Xcode project: Y7SP32JD57
Running Xcode build...                                                  
Xcode archive done.                                         10.7s
Failed to build iOS app
Error (Xcode): Target aot_assembly_release failed: Exception: Flutter failed to
run
"/Users/bryonnicoson/development/flutter/bin/cache/artifacts/engine/ios-release/
gen_snapshot_arm64 --deterministic --snapshot_kind=app-aot-assembly
--assembly=/Users/bryonnicoson/projects/wishbone/.dart_tool/flutter_build/3845b4
145dcae82f344df65f7b356936/arm64/snapshot_assembly.S
/Users/bryonnicoson/projects/wishbone/.dart_tool/flutter_build/3845b4145dcae82f3
44df65f7b356936/app.dill".


Encountered error while archiving for device.

Were you able to fix the issue?

@bryonnicoson Did you ever find a solution?

For anyone else looking for a solution, you need to install Rosetta: softwareupdate --install-rosetta --agree-to-license

That should not be necessary anymore once this Flutter fix is released: https://github.com/flutter/engine/pull/53524

Enjoy!

Flutter build fails after MacBook, macOS & Xcode upgrade
 
 
Q