facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
117.75k stars 24.16k forks source link

M1 Mac iOS build failed error #40796

Closed egecanyldrm closed 10 months ago

egecanyldrm commented 10 months ago

Description

Hey everyone i just init a new project with npx react-native@latest init AwesomeProject and i've done the all the configs but when i run the yarn ios command i get a build error at iOS you can see the error HERE after then i ran the npx react-native doctor command here is the result

Common ✓ Node.js - Required to execute JavaScript code ✓ yarn - Required to install NPM dependencies ✓ Watchman - Used for watching changes in the filesystem when in development mode

Android ✖ Adb - No devices and/or emulators connected. Please create emulator with Android Studio or connect Android device. ✓ JDK - Required to compile Java code ✓ Android Studio - Required for building and installing your app on Android ✖ Android SDK - Required for building and installing your app on Android

iOS ✓ Xcode - Required for building and installing your app on iOS ✓ Ruby - Required for installing iOS dependencies ✓ CocoaPods - Required for installing iOS dependencies ✓ ios-deploy - Required for installing your app on a physical device with the CLI ✓ .xcode.env - File to customize Xcode environment

Errors: 2 Warnings: 0

Usage

React Native Version

0.72.5

Output of npx react-native info

OS: macOS 14.0 CPU: (8) arm64 Apple M1 Memory: 159.70 MB / 8.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 18.18.0 path: ~/.nvm/versions/node/v18.18.0/bin/node Yarn: version: 1.22.19 path: /opt/homebrew/bin/yarn npm: version: 9.8.1 path: ~/.nvm/versions/node/v18.18.0/bin/npm Watchman: version: 2023.10.02.00 path: /opt/homebrew/bin/watchman Managers: CocoaPods: version: 1.13.0 path: /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms:

Steps to reproduce

Snack, screenshot, or link to a repository

The build error : https://github.com/egecanyldrm/ios-build-error/blob/main/README.md

github-actions[bot] commented 10 months ago
:warning: Issue is a Question
:information_source: We are using GitHub issues exclusively to track bugs in the core React Native library. Please try asking over on Stack Overflow as it is better suited for this type of question.