Questions tagged [apple-m1]

NOTICE: Questions using this tag must be related to programming, your question will risk being closed otherwise. Do not use if you are discussing software or operating system subjects. If you need support you can try https://apple.stackexchange.com.

Apple M1 is an ARM based system on a chip designed by Apple Inc.

2791 questions
199
votes
14 answers

zsh problem: compinit:503: no such file or directory: /usr/local/share/zsh/site-functions/_brew

I am using apple M1 MacBook pro. When I installed oh my zsh. When I addedexport PATH="/opt/homebrew/bin:$PATH" to my ~/.zshrc file. This error was shown in my terminal: joe :: share/zsh/site-functions » source ~/.zshrc compinit:503: no such file or…
Rachel_Miller
  • 2,093
  • 2
  • 6
  • 9
191
votes
14 answers

M1 docker preview and keycloak 'image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8)' Issue

I just downloaded Docker Preview v3.1 https://docs.docker.com/docker-for-mac/apple-m1/ and tried running keycloak. Anyone else running into this issue? docker run -p 8080:8080 -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin…
Etep
  • 2,721
  • 4
  • 17
  • 28
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
88
votes
13 answers

Node Sass with apple m1, Big Sur and arm64

Error: Node Sass does not yet support your current environment: OS X Unsupported architecture (arm64) with Unsupported runtime (93) For more information on which environments are supported please see: …
user1272597
  • 1,215
  • 3
  • 12
  • 15
87
votes
7 answers

qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory

I have a Rancher Deskop(dockerd) on M1 MacOS and when I am trying to build below dockerfile I am getting an error such as below. Here is the command how I am trying to build the image docker build -t te-grafana-dashboards-toolchain --no-cache . I…
semural
  • 3,583
  • 8
  • 37
  • 67
83
votes
16 answers

Unable to find bundled Java version with flutter doctor, after updating Android studio Arctic Fox(2020.3.1) on M1 Apple Silicon

I'm facing a weird issue. Before I updated my Android Studio, everything went fine in flutter doctor. Once I've updated Android Studio, when I run the doctor, it's showing "Unable to find bundled Java version". I've already downloaded Java installer…
Mohamad Faris
  • 933
  • 1
  • 6
  • 5
82
votes
18 answers

TypeError: cli.init is not a function for react native

While running npx react-native init appName in MacBook air M1 chip TypeError: cli.init is not a function at run (/opt/homebrew/lib/node_modules/react-native-cli/index.js:302:7) at createProject…
Bandish Kumar
  • 1,557
  • 1
  • 9
  • 13
81
votes
12 answers

CocoaPods on M1 (Apple Silicon) fails with ffi wrong architecture

Running 'pod install' on a M1 MacBook failed for me due to an ffi issue, as described here. I followed some of the workarounds (I guess I tried all of them in various order), but now I get a slightly different error: LoadError -…
Nusatad
  • 3,231
  • 3
  • 11
  • 17
78
votes
8 answers

Docker on Mac M1 gives: "The requested image's platform (linux/amd64) does not match the detected host platform"

I want to run a docker container for Ganache on my MacBook M1, but get the following error: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested After this…
MrsBookik
  • 825
  • 1
  • 7
  • 6
77
votes
13 answers

How to install SciPy on Apple Silicon (ARM / M1)

I have successfully installed python 3.9.1 with Numpy and Matplotlib on a new Mac mini with Apple Silicon. However, I cannot install SciPy : I get compilation errors when using python3 -m pip install scipy I also tried installing everything from…
David Sénéchal
  • 937
  • 1
  • 7
  • 4
74
votes
2 answers

Apple Push Service certificate is not trusted

I have recently created an Apple Push Service certificate on my M1 mac mini. In the Keychain, it says the certificate is not trusted. I have installed the Developer Relations Intermediate Certificate as mentioned in here Also installed the…
Guru
  • 4,693
  • 3
  • 25
  • 45
73
votes
6 answers

How can I distinguish between high- and low-performance cores/threads in C++?

When talking about multi-threading, it often seems like threads are treated as equal - just the same as the main thread, but running next to it. On some new processors, however, such as the Apple "M" series and the upcoming Intel Alder Lake series…
janekb04
  • 4,304
  • 2
  • 20
  • 51
73
votes
5 answers

React Native on Apple Silicon M1 - The linked library 'libPods-ProjectName.a' is missing one or more architectures required by this target: x86_64

I'm trying to build a React Native project on a MacBook Pro with a M1 architecture, for iOS simulator. The project built nicely on Intel architecture. It also build on device and archive well on M1. But not on simulator. I had this classical error…
Xiiryo
  • 3,021
  • 5
  • 31
  • 48
65
votes
4 answers

Detect Apple Silicon from command line

How can I detect from a shell script that it is running on M1 Apple hardware? I want to be able to run a command-line command so that I can write an if-statement whose body will only be executed when run on a mac with an M1 processor (and at least…
Klas Mellbourn
  • 42,571
  • 24
  • 140
  • 158
63
votes
8 answers

Fixing zsh command not found: brew? (installing Homebrew)

I am trying to install Homebrew onto my M1 Mac. My default shell is zsh and I want to keep it that way. I ran: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" and it said the installation was successful…
atdinh
  • 665
  • 1
  • 5
  • 5
1
2 3
99 100