简体   繁体   中英

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
  • brew install watchman
  • brew install flow
  • the version of OS X Yosemite is 10.10.5
  • the version of Xcode is 6.4
  • npm install -g react-native-cli
  • react-native init HelloWorld

In the end, I run the HelloWorld.xcodeproj,and it build failed like the picture above. can you help me to solve this problem, thx

It looks like you're opening the HelloWorld project folder and not the Xcode project. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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