Bad CPU type in executable

Hi,

I recently transitioned to a MacBook Pro with the M4 chip. (I am selecting the Apple Silicon IDE) I have an ESP32-C6-WROOM-1 that I am trying to program but I get the following message:

“fork/exec /Users/fuller/Library/Arduino15/packages/builtin/tools/ctags/5.8-arduino11/ctags: bad CPU type in executable

Compilation error: fork/exec /Users/fuller/Library/Arduino15/packages/builtin/tools/ctags/5.8-arduino11/ctags: bad CPU type in executable”

I tried to use an old Arduino UNO and it dint work either. How do I fix this?

Hi @tony8797. Although Arduino IDE 2.x is a native Apple Silicon application, it uses various helper tools and some of these tools are only available in "Intel" (x86) builds.

Apple has created a "binary translator" named Rosetta 2 that allows x86 applications to run on Apple Silicon machines. So the problem can be solved by simply installing Rosetta 2. You can do that by following these instructions: