question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65.

See original GitHub issue

Description

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:closed
  • Created a year ago
  • Reactions:5
  • Comments:20 (1 by maintainers)

github_iconTop GitHub Comments

57reactions
imrickycommented, Jun 24, 2022

rm -rf ~/Library/Developer/Xcode/DerivedData react-native run-ios it works for me

7reactions
ywongwebcommented, May 2, 2022

Had the same error with a newly initialised 0.67.4 app, managed to get it running on a device using the following method

  • uninstall nvm
  • uninstall any other node installations on your system (for me it was brew uninstall node)
  • installed node 16.15.0 using asdf-vm
  • run app using npx react-native run-ios --device MyPhoneName
Read more comments on GitHub >

github_iconTop Results From Across the Web

error Failed to build iOS project. We ran "xcodebuild ...
A popular reason to builds failing and error code 65 is a missmatch between cached pod files and current packages used.
Read more >
error Failed to build iOS project. We ran “xcodebuild ... - Medium
We ran “xcodebuild” command but it exited with error code 65. Removing duplicate font files in Copy Bundle Resources worked for me. The...
Read more >
error failed to build ios project. we ran "xcodebuild" command ...
This error is because of flipper dependency. you can put comment on 'use flipper()' in pod file using below steps. ... if react-native...
Read more >
failed to build ios project. we ran "xcodebuild ... - Reddit
failed to build ios project. we ran "xcodebuild" command but it exited with error code 65. ... Followed just the vanilla guide from...
Read more >
React native build failure | Apple Developer Forums
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found