React-native -run-ios error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65

17,590

Solution 1

I've got the same error when run

$ react-native run-ios

My workaround steps:

  1. open project by Xcode and choose the signature information as the attached image.
  2. clear build folder: 'Your Project'/ios/build
  3. re-run:

$ react-native run-ios

Hope this help.

Solution 2

That's because there is a new version of Flipper and React Native might not come with the right one so best is to go in your podfile and add this use_flipper!({ 'Flipper' => '0.74.0' }) then run pod install

Solution 3

If you don't have cocoa pods installed you need to by command sudo gem install cocoapods and run following commands from your project main directory

cd ios
pod install
cd ..

delete build folder from ios

react-native run-ios

if error persists, 1. delete build folder again 2. open the /ios folder in x-code 3. navigate File -> Project Settings -> Build System -> change (Shared workspace settings and Per-User workspace settings): Build System -> Legacy Build System

Share:
17,590
developerjavad
Author by

developerjavad

Updated on September 15, 2022

Comments

  • developerjavad
    developerjavad over 1 year

    good time. run ios error Failed

    run code react-native run-ios

    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 reactapp.xcodeproj

    ** BUILD FAILED **enter image description here

    • Vivek Yadav
      Vivek Yadav about 5 years
      Same problem but no solution. Have you got the answer?
  • Zoe L
    Zoe L over 3 years
    'Your Project'/ios/build doesn't exist? Here is everything inside ios: Podfile, helloWorld, helloWorld.xcodeproj, Podfile.lock, helloWorld-tvOS, helloWorld.xcworkspace, Pods, helloWorld-tvOSTests, helloWorldTests
  • xpcrts AKA Rithisak
    xpcrts AKA Rithisak over 3 years
    Me too, no build exist anymore