Questions tagged [apple-silicon]

Use this tag for questions related to Apple's ARM-based CPU found in macOS systems from 2020 onwards, known by the marketing term "Apple Silicon"

On June 22, 2020, at WWDC 2020, Apple announced plans to switch its Macintosh computers from Intel processors to ARM-based, Apple-designed processors. See: Apple-designed processors.

502 questions
14
votes
2 answers

How to build openssl for M1 and for Intel?

I have a project which needs to use Libcrypto - and I have two versions of Libcrypto (libcrypto.a (from OpenSSL 1.1.1) built for ARM64) and (lcrypto.a (from OpenSSL 1.0.2) for Intel). Leaving aside the issues of whether it's good practice or not to…
headbanger
  • 1,038
  • 1
  • 11
  • 32
14
votes
2 answers

How to determine when Docker containers (on an M1 MacBook) are running via qemu?

It has been mentioned that when employing x86_64 Docker images on an M1 Mac, when no ARM64 image is available, that container will start under qemu emulation for compatibility. (At the cost of performance.) Often times when I'm running a collection…
Craig Otis
  • 31,257
  • 32
  • 136
  • 234
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
13
votes
5 answers

How to run Elasticsearch 6 on an Apple Silicon Mac?

For developing an application, I need to run Elasticsearch 6 on an Apple Silicon Mac. I've tried to run it with Docker. Reading Docker Desktop for Apple silicon, I've installed Rosetta2 with: softwareupdate --install-rosetta And added the…
Ortomala Lokni
  • 56,620
  • 24
  • 188
  • 240
13
votes
2 answers

Error running rails s on M1 chip (Apple Silicon)

I'm trying to learn Rails and experiencing an issue when I try to run my server. I've read posts from reddit, Youtube tutorials, Stackover flow posts and blog, concluded that there's really known issues when you're using M1 chip for development…
Lea Tinoso
  • 1,663
  • 2
  • 6
  • 14
13
votes
5 answers

Docker Image built on Mac OSX won't run on AWS EC2 instance

Image built on Mac OSX with M1 processor, deployed to an EC2 instance. But when scripts are run it yields the error: standard_init_linux.go:219: exec user process caused: exec format error Elsewhere on Stackoverflow, this is explained as a mismatch…
petercoles
  • 1,732
  • 13
  • 20
13
votes
12 answers

React Native pod install failed on Apple Silicon (M1)

I got my new Macbook Pro which has M1 chip. I tried to run my react native project but stucked on pod install. After that, I created an empty project and tried on that still getting the same error. ###…
Alexander Chef
  • 378
  • 1
  • 2
  • 13
12
votes
6 answers

Error while installing pod in Apple Silicon (M1)

Command i am running is brew install cocoapods Warning: cocoapods 1.11.2_2 is already installed and up-to-date. To reinstall 1.11.2_2, run: brew reinstall cocoapods ~ % alias pod='arch -x86_64 pod' Below is error…
IOSDev
  • 205
  • 2
  • 10
12
votes
7 answers

Apple silicon(M1) 11.4 get a java error (jdk16)

A fatal error has been detected by the Java Runtime Environment: Internal Error (sharedRuntime.cpp:531), pid=2424, tid=7427 Error: ShouldNotReachHere() JRE version: OpenJDK Runtime Environment (16.0+14) (build 16+14) Java VM: OpenJDK 64-Bit Server…
Stimw
  • 129
  • 1
  • 1
  • 4
12
votes
4 answers

Rails & MySQL on Apple Silicon

has anyone been able to get Rails running with the MySQL via the mysql2 gem on Apple Silicon? I'm working with Ruby 2.5.3 and Rails 5.2.3 but would love to hear of any successes with any versions. Currently I am stuck with the mysql2 gem install…
Eskim0
  • 775
  • 7
  • 17
12
votes
2 answers

Is there an option to toggle "Open using Rosetta" value for a specific app using Terminal?

I'm really tired of checking this option manually for Xcode, which I cannot duplicate due to its size... maybe there is a way to create some kind of shortcut to launch an app (Xcode in my case) with the specific value of "Open using Rosetta"? Note:…
goldwalk
  • 341
  • 1
  • 2
  • 11
12
votes
4 answers

Pip install pandas results in error (Python3.8, Pycharm, Apple Silicon)

Installing pandas via pip install pandas results in the following error. I'm really clueless what to do or how to fix it. I hope I gave enough informations for you. I would appreciate your help a lot! Setup: macOS BigSur 11.1 Apple Silicon, MacBook…
BongoKing
  • 121
  • 1
  • 1
  • 3
12
votes
7 answers

Compile boost as universal library (Intel and Apple Silicon architectures)

I am trying to build boost library as dylib on MacOS. I need to build it for both the Intel architecture and the upcoming Apple Silicon (arm64) architecture. I downloaded boost and ran the following commands: ./bootstrap.sh ./b2 -address-model=64…
Anil8753
  • 2,663
  • 4
  • 29
  • 40
11
votes
5 answers

(mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))

I have a problem when I run a .py file on a Macbook Air M1: [Running] python3 -u "/Users/kaiyuwei/Documents/graduation project/metaheuristics/run_CRO.py" Traceback (most recent call last): File…
kaiyu wei
  • 431
  • 2
  • 5
  • 14
11
votes
2 answers

Apple Silicon Android Studio emulator: ERROR: can't find the emulator executable

I just installed Android Studio 4.2.2 and Android Studio Preview (Arctic Fox Beta 5) to my Apple M1 Macbook. When creating an emulator (arm64) I immediately receive the error: AVD Manager: The emulator process for AVD Pixel_4a_API_30 has…
Scaraux
  • 3,841
  • 4
  • 40
  • 80