Builds failing on 2021 Apple MacBook Pro with Apple Silicon M1 Pro - ReactNative 0.62.2 & XCode 13.1
See original GitHub issueDescription
Hi Team,
Tried various options to get the project running, but all builds are failing.
Tried installing pods with arch -x86_64 pod install --repo-update
still no luck.
Version
0.62.2
Output of react-native info
System: OS: macOS 12.0.1 CPU: (10) arm64 Apple M1 Pro Memory: 500.58 MB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 17.0.1 - /opt/homebrew/bin/node Yarn: 1.22.17 - /usr/local/bin/yarn npm: 8.1.0 - /opt/homebrew/bin/npm Watchman: 2021.11.15.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.2 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.0.1, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0 Android SDK: API Levels: 23, 28, 29, 30, 31 Build Tools: 29.0.2, 29.0.3, 30.0.2, 31.0.0 System Images: android-29 | Google Play ARM 64 v8a, android-30 | Google Play ARM 64 v8a Android NDK: Not Found IDEs: Android Studio: 2020.3 AI-203.7717.56.2031.7784292 Xcode: 13.1/13A1030d - /usr/bin/xcodebuild Languages: Java: 17.0.1 - /usr/bin/javac Python: 2.7.18 - /usr/bin/python npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.62.2 => 0.62.2 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found
Steps to reproduce
The project is not compiling / building.
Snack, code example, screenshot, or link to a repository
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top GitHub Comments
I have the same issue running existing project. Here are the details below.
Configuration
Apple M1 “react-native”: “0.63.4” Xcode 13.1
Error details
Error is below. My finding is no libraries are existing under DerivedData folder so i have a lot of warnings about this and the error at the end.
My other findings:
I have tried so many solutions editing Library, Framework search paths, deleting pods, node-modules, clearing caches, openng project via workspace file and trying to run from Xcode. Nothing works.
Anyone faced & solved similar issue before? Is there any modification required to run older React Native projects with M1 / Xcode 13.1?
Running the app with below command solved my issue.
arch -x86_64 react-native run-ios
Otherwise you have to enable Rosetta for XCode and build the app only with Xcode not from the CLI.