简体   繁体   English

react-native init后在xcode中构建失败

[英]build failed in xcode after react-native init

enter image description here 在此处输入图片说明

I did these steps successfully: 我成功完成了以下步骤:

  • install node.js and the version is 4.0 安装node.js,版本为4.0
  • brew install watchman 酿造安装看守
  • brew install flow 冲泡安装流程
  • the version of OS X Yosemite is 10.10.5 OS X Yosemite的版本是10.10.5
  • the version of Xcode is 6.4 Xcode的版本是6.4
  • npm install -g react-native-cli npm install -g react-native-cli
  • react-native init HelloWorld 反应本地初始化HelloWorld

In the end, I run the HelloWorld.xcodeproj,and it build failed like the picture above. 最后,我运行HelloWorld.xcodeproj,它的构建失败,如上图所示。 can you help me to solve this problem, thx 你能帮我解决这个问题吗

It looks like you're opening the HelloWorld project folder and not the Xcode project. 看起来您正在打开HelloWorld项目文件夹,而不是Xcode项目。 If you're using a terminal do this: 如果您使用的是终端,请执行以下操作:

cd HelloWorld/ios
open HelloWorld.xcodeproj

or navigate to the ios folder in your HelloWorld application in finder and double click on the xcode project to open it in the right directory. 或导航到Finder中HelloWorld应用程序中的ios文件夹,然后双击xcode项目以在正确的目录中将其打开。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM