error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65.
See original GitHub issueDescription
I created a new react native project and i can’t start the simulator with “react native run-ios”. The build always fails and I don’t know what else I can do. I updated everything my mac os, Xcode, node.js. I also tried to open the app with a different IOS (IOS 14). I also did pod install in the iOS folder
This is the error i get
error Failed to build iOS project. We ran “xcodebuild” command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening app.xcworkspace. Command line invocation: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace app.xcworkspace -configuration Debug -scheme app -destination id=161BB65E-0149-47CF-918D-27BDB9A25299
Version
0.67.4
Output of npx react-native info
System: OS: macOS 12.3 CPU: (8) x64 Intel® Core™ i5-1038NG7 CPU @ 2.00GHz Memory: 47.58 MB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 16.13.1 - /usr/local/bin/node Yarn: 1.22.17 - /usr/local/bin/yarn npm: 8.5.2 - /usr/local/bin/npm Watchman: 2022.03.14.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.3 - /Users/matthiaspetry/.rvm/rubies/ruby-2.7.4/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: Not Found IDEs: Android Studio: Not Found Xcode: 13.3/13E113 - /usr/bin/xcodebuild Languages: Java: 13.0.2 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.67.4 => 0.67.4 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found
Steps to reproduce
I just created a new react native project and I had to install the cocoapods with brew and I also had to run bundle install before i was able to run pod install
Snack, code example, screenshot, or link to a repository
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:5
- Comments:20 (1 by maintainers)
Top GitHub Comments
rm -rf ~/Library/Developer/Xcode/DerivedData
react-native run-ios
it works for meHad the same error with a newly initialised 0.67.4 app, managed to get it running on a device using the following method
npx react-native run-ios --device MyPhoneName