-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Emulated x86_64" warning doesn't go away (M1 mac) #33017
Comments
I am having a similar problem, have there been any fixes yet? |
did you try to disable hermes_enabled in pod ? |
I managed to get it working by opening xcode in Rosetta and building there.
From: Dhairya ***@***.***>
Date: Wednesday, 2 February 2022 at 04:35
To: facebook/react-native ***@***.***>
Cc: James Parsons ***@***.***>, Comment ***@***.***>
Subject: Re: [facebook/react-native] "Emulated x86_64" warning doesn't go away (M1 mac) (Issue #33017)
did you try to disable hermes_enabled in pod ?
—
Reply to this email directly, view it on GitHub<#33017 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEEFT4Y33JPEIHKNIKDP6KTUZCYAXANCNFSM5NIFTTRQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
same here I am using react-native 0.67.2 on mac m1 with xcode13.2.1. |
I'm having the same problem here with 0.67.2 of react-native. |
hermes is already disabled by default |
I started my project with a MBP early 2015. Then I changed my laptop to MB Air M1 last summer. A lot of struggling but I figured out to rebuild everything with Android & iOS. I ran the command mention by @richardgirges: |
same issue here also, can anyone help to fix that warning? |
same issue any solution |
+1 |
2 similar comments
+1 |
+1 |
+1 need help on that , thanks... for urgent project~ |
Same, M1 seems to be the issue.
|
Same here, RN 0.67.1 on M1 Mac with Xcode 13.2.1. |
What worked for me was installing cocoapods through brew, rather than gem. sudo gem uninstall cocoapods
arch -arm64 brew install cocoapods After that, you can navigate over to the pod install That should get you up and running on your M1 device of choice! Enjoy! |
This cleared these error messages - thanks @ridafkih - top tip. |
I got a "pod command not found" error after installing cocoapods via brew. I ran |
Summary: This Diff updates the RNTester README to support Mac M1 laptops. ## Changelog [General][Changed] - Updated `rn-tester/README.md` to include instructions for Mac M1 users Reviewed By: cortinico Differential Revision: D34376951 fbshipit-source-id: 7195bddefb6e202261fef9b5f5225484c506fd9b
Same issue. |
This worked for me! Thanks Buddy! ✌️ |
I would also suggest removing all the cocoapod components. You can get that list with: |
I did not have to do 99% of this.
|
So I recently solved this. Ended up brew was running under Rosetta from an old installation causing a bunch of packages to also run under Rosetta it seems. Anyway I ran I blew away the old brew (had to download the uninstall.sh package to run it with a path flag to point to the old brew install), reinstalled my packages, including nvm, chruby, pyenv etc. ( I wish I had saved a list of my current brew packages on the old install before I did this) and then installed cocoapods with brew. Now the error is gone. This may have been my issue but if |
For iterm2 users, ensure your arch is refer to https://vineethbharadwaj.medium.com/m1-mac-switching-terminal-between-x86-64-and-arm64-e45f324184d9 |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
Description
Bootstrapped a new react-native project and got the following warning on
pod install
:I'm running on zsh (M1 macOS 12.1), so I ran the following but the warning remained:
env /usr/bin/arch -arm64 /bin/zsh --login cd ios pod install
Previously (on RN 0.66) I had run the following commands to install x86_64 ffi, which allowed me to successfully run
pod install
on M1. Other than that, I'm working on a fresh workstation.Version
0.67.1
Output of
npx react-native info
System:
OS: macOS 12.1
CPU: (10) arm64 Apple M1 Pro
Memory: 103.91 MB / 32.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.13.2 - ~/.nvm/versions/node/v16.13.2/bin/node
Yarn: 1.22.17 - ~/.nvm/versions/node/v16.13.2/bin/yarn
npm: 8.1.2 - ~/.nvm/versions/node/v16.13.2/bin/npm
Watchman: 2022.01.17.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.2 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.67.1 => 0.67.1
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
npx react-native init foo --template react-native-template-typescript cd foo/ios pod install
Snack, code example, screenshot, or link to a repository
No response
The text was updated successfully, but these errors were encountered: