React-native -run-ios error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65
I've got the same error when run
$ react-native run-ios
My workaround steps:
- open project by Xcode and choose the signature information as the attached image.
- clear build folder: 'Your Project'/ios/build
- re-run:
$ react-native run-ios
Hope this help.
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
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