问题
i installed all the things as per official react-native website. but after creating project from terminal when i try to run my project i get an error.
i used Xcode 10
and run on latest simulater
and also already successfuly installed node
and watchman
with homebrew
then installed npm install -g react-native-cli
brew install node
brew install watchman
npm install -g react-native-cli
react-native init AwesomeProject
cd AwesomeProject
react-native run-ios
i expected to Run a Project but its shows me an error that
"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 AwesomeProject.xcodeproj"
回答1:
click AwesomeProject.xcodeproj
file inside the ios folder. it will open the app to Xcode. try clean and build , then run it to the particular simualtor. post the issues , if anyone occur during run from xcode, will try to help you
Update
Please Try this solution : https://stackoverflow.com/a/55235914/2849146
and this answers : Error: xcodebuild process exited with code 65 - August 2016
回答2:
if you don't have cocoa pods installed you need to sudo gem install cocoapods
cd /ios
run pod install
cd ..
delete build folder
run react-native run-ios
if error persists,
delete build folder again open the /ios folder in x-code navigate File -> Project Settings -> Build System -> change (Shared workspace settings and Per-User workspace settings): Build System -> Legacy Build System
回答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
来源:https://stackoverflow.com/questions/55725042/error-failed-to-build-ios-project-we-ran-xcodebuild-command-but-it-exited-wit