Questions tagged [rosetta-2]

Use this tag for questions related to Apple’s Rosetta 2 x86 emulation, first introduced in macOS Big Sur in 2020 to enable backward compatibility for x86 code running on Apple Silicon (ARM) CPUs.

Use this tag for questions related to Apple’s Rosetta 2 x86 emulation, first introduced in macOS Big Sur in 2020 to enable backward compatibility for x86 code running on Apple Silicon (ARM) CPUs.

50 questions
129
votes
9 answers

How to run the Homebrew installer under Rosetta 2 on M1 Macbook

I'm on the M1 MacBook. This is the error when I try to install Homebrew: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" Homebrew is not (yet) supported on ARM processors! Rerun the Homebrew…
Watson
  • 3,168
  • 3
  • 12
  • 13
48
votes
2 answers

How can I run two isolated installations of Homebrew?

I want to install and run two versions of Homebrew simultaneously on an Apple Silicon Mac: an ARM64 version, and an Intel version running under Rosetta 2. I know I can prepend any brew command with arch --x86_64 to emulate Intel for that command,…
Jacob Ford
  • 4,553
  • 5
  • 27
  • 42
19
votes
1 answer

Is it possible for other x86-64 emulators on M1 to leverage the same optimizations used by Rosetta 2?

I am curious about the vastly different performance characteristics of running x86-64 binaries on the Apple M1 platform using Rosetta 2 vs. emulation, for example what Docker Desktop currently does using QEMU. I understand why emulation is so slow,…
NReilingh
  • 1,730
  • 17
  • 32
15
votes
3 answers

Apple M1 - Maven Java dependency that is not yet available for macosx-arm64

I am trying to get a Java/Maven project working on an Apple M1 with a dependency that is not yet available for the M1 chip. In my case this is nd4j but it could be any other dependency. org.nd4j
Robin
  • 3,512
  • 10
  • 39
  • 73
13
votes
2 answers

Xcode 14.3 Rosetta build with command line

As Apple removed x86_64 support for Xcode and introduced sperate simulators for Rosetta, I wondered how I could run my app on a Rosetta simulator via cli. This is also needed for fastlane. (see Fastlane Issue) In the release notes of Xcode 14.3…
kaulex
  • 2,921
  • 3
  • 11
  • 38
13
votes
1 answer

Why can't QEMU get even close to Rosetta 2's performance when translating x86 to M1?

Apparently, QEMU is the only piece of open source code that can emulate an x86 operating system on the new Apple silicon (M1, M2, etc.). Apple built Rosetta 2, which, in theory, does the exact same thing that QEMU would be doing in these scenarios.…
Gabriel C
  • 1,012
  • 3
  • 12
  • 30
9
votes
1 answer

Jenkins does not work properly on Mac M1 agent

We want to use a Mac Mini with the M1 processor as an agent in our CI pipeline to make sure that developers with new Macs can compile the project. We duplicated the setup that we have for x86, but cmake cannot find libraries such as boost: CMake…
mrks
  • 8,033
  • 1
  • 33
  • 62
7
votes
5 answers

Flutter Doctor gives Bad Cpu Type in executable

I'm using Mac mini , MacOs monterey and m1 chip. When trying to setup flutter, it is giving error. command: flutter doctor o/p: /Users/admin/Desktop/flutter/bin/internal/shared.sh: line 229: /Users/admin/Desktop/flutter/bin/cache/dart-sdk/bin/dart:…
7
votes
2 answers

"pod install" command is not working in terminal in Android Studio Arctic Fox mac m1

I am using Arctic Fox 2020.3.1 (ARM version- designed for Apple silicon), on Macbook Air M1 2020 model, running flutter project. I am successfully able to run on Android emulator, but when i try to run on attached iOS device or iOS simulator "pod…
Lakhwinder Singh
  • 6,799
  • 4
  • 25
  • 42
6
votes
2 answers

pyenv unable to install 3.9.6 on Monterey 12.3

I see this is a recurring question and there are no new comments about this. I've been trying to install python 3.9.6 using pyenv on both archs arm64 and i386 - using Rosetta2, without success. As I am pretty new at this, I was not able to identify…
6
votes
3 answers

How do I install CLI tools "under Rosetta 2" on MacBook M1?

After getting a MacBook M1 2020 - I found most of my command line tools could no longer be installed. I presume this was because the tools were compiled to run on an Intel based chipset, and not the new Apple Chipset (citation needed). Here is an…
Nick Grealy
  • 24,216
  • 9
  • 104
  • 119
5
votes
2 answers

How to run Python as X86 with Rosetta2 on ARM MacOS machine

I have a python app with downstream dependencies on dynamic libraries that are available as X86 only. The app runs on a X86 MacOS machine, but on a ARM MacOS machine it fails with an ImportError. I've run lipo -archs on the libraries and they are…
chughts
  • 4,210
  • 2
  • 14
  • 27
4
votes
0 answers

Docker Desktop 4.17.0 on M1 Mac is unusably slow

I am using Docker Desktop on my MacBook Pro (with Apple M1 silicon) since October 2022 (with a Business subscription), and the performance both for Intel/AMD64 and ARM64 Linux images was really good. Last week I updated to Docker Desktop 4.17.0 -…
chris_f
  • 1,081
  • 8
  • 17
4
votes
1 answer

Python multithreading didn't work at MacOS Monterey/Apple Silicon

I have a python 3.8 script running multithreading with concurrent.futures module and works fine in MacOS Catalina (Intel). After migrated to MacOS Monterey (Apple Silicon). The python code runs for a long time due to using single thread. I'm using…
4
votes
0 answers

Crashes in runtime library under Rosetta

We are seeing mysterious crashes in our app when running on the Apple Silicon machines using Rosetta. The crash is coming from Apple's runtime and dyld libraries, and always has the same kind of stack, but without much useful information. All have…
LarryW
  • 89
  • 9
1
2 3 4