error Failed to build iOS project. We ran “xcodebuild” command but it exited with error code 65. i can not Run my Project

强颜欢笑 提交于 2020-07-22 00:48:31

问题


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

  1. cd ios
  2. pod install
  3. cd ..
  4. delete build folder from ios
  5. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!