Skip to content

No ports reported on macos ventura 13.1 apple silicon arduino 2.0.3 unless rosetta is installed #1818

Closed
arduino/help-center-content
#172
@nickdesaulniers

Description

@nickdesaulniers

Describe the problem

Apple Silicon-based machines (M1, M2 CPUs) are able to run applications built for x86 host thanks to the Rosetta 2 binary translator.

Rosetta 2 is not installed by default, but when an x86 application is started on an Apple Silicon-based machine, macOS displays a dialog offering the installation to the user:

https://support.apple.com/en-us/HT211861

Since native Apple Silicon builds have better performance, Arduino produced the first Arduino IDE 2.x build for this target and published it in December. Unlike the x86 build of Arduino IDE 2.x, starting the Apple Silicon build does not result in the Rosetta 2 installation dialog. Even though Rosetta 2 is not needed by the Arduino IDE application itself, the IDE uses a wide array of additional tools. Many of these are not available in an Apple Silicon build:

🐛 These tools produce an error when Arduino IDE attempts to execute them:

bad CPU type in executable

This produces an array of symptoms. For example, no serial ports are discovered (due to not having a functional serial-discovery tool).

To reproduce

  1. Download the Apple Silicon build of Arduino IDE:
    https://www.arduino.cc/en/software
  2. Start Arduino IDE on an Apple Silicon machine that does not have Rosetta 2 installed.

🐛 No Rosetta 2 installation prompt is shown.
🐛 All x86 targeted tools fail to execute.
🐛 The IDE displays a variety of symptoms, including no ports listed, failed compilation ...

Expected behavior

The dependency on Rosetta 2 is communicated to the user.

Arduino IDE version

2.0.3

Operating system

macOS

Operating system version

Ventura

Additional context

Fix

  1. Open your Applications folder in Finder.
  2. Open the Utilities folder.
  3. Double-click on "Terminal".
  4. Type the following command in the Terminal window:
    softwareupdate --install-rosetta
    
  5. Accept the license agreement.
  6. Wait for the installation to finish.

Additional reports

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions