15

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

5
  • have you tried it building using Xcode? Commented Apr 6, 2019 at 10:25
  • no sanjaykmwt code react-native run-ios Commented Apr 6, 2019 at 11:12
  • try building using xcode Commented Apr 12, 2019 at 14:11
  • 1
    Same problem but no solution. Have you got the answer? Commented Apr 16, 2019 at 11:55
  • did you solve it? Commented May 1, 2019 at 1:20

5 Answers 5

4

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.

Sign up to request clarification or add additional context in comments.

2 Comments

'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
Me too, no build exist anymore
3

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

Comments

2

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

Comments

0

cd ios

rm -rf build/

cd ..

react-native run-ios

Comments

0

For me this error showed up after upgrading React Native from 0.69 to 0.72.

Suprisingly all that was needed was to:

Remove all the derived data and rebuild:

rm -rf ~/Library/Developer/Xcode/DerivedData && npx react-native run-ios

If still doesn't work then

1. Make sure metro server is stopped and run a full cache clean:

watchman watch-del-all && rm -rf ios/build && rm -rf ~/Library/Developer/Xcode/DerivedData && rm -rf node_modules && yarn install && cd ios && rm -rf Pods && pod install && cd .. && npx react-native run-ios

Note: if pod install fails take a deep looks at the pod errors

2. Attempt to build with Xcode and look deep into any errors triggered at Xcode build process

Additional notes: this question is possibly a duplicate of error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.