Open terminal in arm64 or Rosetta mode

Check which version of terminal you're running

uname -m

If it outputs "arm64", then you're in arm64 (which is default for Mx chips).

If it outputs "x86..." then you're in rosetta mode, which emulates the Intel Mac days.

Switch modes on Mac Terminal app:

Before opening the mac terminal app, go to applications folder > utilities > Terminal and right-click to get info.

Check the box for Rosetta mode to enable it.

Then open Terminal app.

Switch Modes in Cursor or VS Code Terminal:

Add this code to settings.json in Cursor or VS Code. This will add an additional terminal profile for .zsh in x86 mode, named "zsh x86", which you can switch to.

"terminal.integrated.profiles.osx": {
    "zsh x86": {
      "path": "/usr/bin/arch",
      "args": ["-arch", "x86_64", "/bin/zsh"]
    }
  }

To switch to it, command + shift + P, then: Terminal: Select Default Profile, then select "zsh" or "zsh x86".

Then trash the current terminal and open a new one.

Last updated