expo: Expo Go client keep crashing on start in iOS Simulator? (M1)
Summary
Hi, I recently got new M1 Macbook Pro, but I was unable to run my freshly created expo app inside the Expo Go client in iOS Simulator. This keeps happening no matter what I try.
I have tried reinstalling Xcode, Expo CLI, and Node. Updating Xcode, and Expo to the latest version. This happens in a brand new, just bootstrapped expo-typescript project. I have also tried resetting the simulator(s) and reinstalling the Expo Go client inside it.
What should I do at the moment? I don’t want to install Rosetta for this.
Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!
managed
What platform(s) does this occur on?
iOS
SDK Version (managed workflow only)
No response
Environment
System info: OS: macOS 12.4 Monterey Rosetta: No Rosetta Node: 16.16.0 Expo-cli: 5.5.1 Xcode: 13.4.1
Reproducible demo
Here is the screen record when I press i to open it in the iOS Simulator from the command line. The Expo Go app keeps crashing on its own.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 22
For updating rosetta with terminal use this command: softwareupdate --install-rosetta
I also had the same issue. What I did was install any app that was only compatible with Rosetta 2 and not Apple Silicon so that MacOS would ask me to install Rosetta. This website helped me find one: https://isapplesiliconready.com/es After this, the Expo Go app worked for me in the emulator.
@realSid99 after deeper research I found that MacOS Monterey does not have installed Rosetta, and Expo go will not run untill user install it as it is designed for Intel based chips, not Apple M1. So installing Rosetta should fix your issue
I purposely do not install Rosetta as I want to be sure I’m using only ARM native apps(best performance). Can we please get an ARM build so M1 & M2 users don’t have to fallback to Rosetta?
Following the thread I shared, you can create a development build and install it into the simulator
https://docs.expo.dev/development/create-development-builds/
Basically you need this
"developmentClient": trueto your development profile (or other profiles). As forRosetta, I can’t tell you because I have an old Mac but it seems it’s the solution for new notebooks (M1, M2)My guess is that you run this command using the terminal
softwareupdate --install-rosettafresh m2 pro and the “softwareupdate --install-rosetta” fixed the insta crash in the simulator
I’ve been finding a solution for this issue since 3 days and installing rosetta fixed the issue. I’m using Apple M2. Thanks!