看见helloWorld(ios)

2017-08-24  本文已影响4人  咸湿仔灬

1、安装Homebrew

/usr/bin/ruby-e"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2、安装node.js

官网下载最好,https://nodejs.org/en/

3、安装 watchman 和 flow

brew install watchman

brew install flow

4、可以react-native init xxx了

5、如果遇到报什么xocde 1的错 ,在build phases那里的最后一个钩上run script only when installing

6、第5部做完后还会遇到一个错,报什么.hpp文件不存在。那就在package.json文件把12的改成6,把react-native 版本改成0.44.3,然后在删除node_modules文件夹再重新npm install。run'xing'run

7、ok

1.1运行时发现ignore的错误,http://www.jianshu.com/p/a74aec74fd4e

8、ios打离线包

http://www.jianshu.com/p/ce71b4a8a246

9、ios发布

http://blog.csdn.net/yjxommm2005/article/details/72842249

上一篇 下一篇

猜你喜欢

热点阅读