Skip to content

why in 2025 flutter still need use rosetta #170214

Closed
@qinfuyao

Description

@qinfuyao

Steps to reproduce

When I use flutter to start the iOS version of the real device test, it prompts that it cannot be started successfully. However, I use xcode to open the iOS Runner.xcworkspace file in this flutter project and run it again. Then it can run on the real device without any errors. All these errors are problems with the real device. iPhone simulators will not have this problem.

I want to know if rosetta is necessary, why it is still necessary in 2025, and is there any way to avoid rosetta?

Actual results

When running the iOS program with a virtual machine, no error is reported. When I test it with a real device, I will get an error when typing flutter run in the terminal, but not in Xcode.

Logs

Logs
<!-- Paste your logs here -->

Flutter failed to run "/Users/qinfuyao/development/flutter/bin/cache/artifacts/libimobiledevice/idevicesyslog -u
00008130-00044CA90043401C".
The binary was built with the incorrect architecture to run on this machine.
If you are on an ARM Apple Silicon Mac, Flutter requires the Rosetta translation environment. Try running:
  sudo softwareupdate --install-rosetta --agree-to-license

</details>


### Flutter Doctor output

<details open>
<summary>Doctor output</summary>

```console

<!-- Paste your output here -->

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.32.2, on macOS 15.5 24F74 darwin-arm64, locale
    en-US)
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from:
      https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK
      components.
      (or visit https://flutter.dev/to/macos-android-setup for detailed
      instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Xcode - develop for iOS and macOS (Xcode 16.4)
[✗] Chrome - develop for the web (Cannot find Chrome executable at
    /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[!] Android Studio (not installed)
[✓] IntelliJ IDEA Community Edition (version 2025.1.1.1)
[✓] VS Code (version 1.100.2)
[✓] Connected device (3 available)
[✓] Network resources

! Doctor found issues in 3 categories.

</details>

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: solvedIssue is closed as solved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions