1、提示react native "config.h" file not found
修改pakage.json 测试版本:
"react": "16.0.0-alpha.12",
"react-native": "0.45.0"
切换成下面的版本就可以了:
"react": "16.0.0-alpha.6",
"react-native": "0.44.3"
然后保存重新运行npm install
2、 ### 'React/RCTBundleURLProvider.h' file not found
左侧点击跟项目目录 -> 选择右侧 Build Settings -> 选择 All & Combined -> 搜索框输入 Always Search User Paths -> 将 Always Search User Paths 设置为 Yes -> Clean -> Build
![5951e4a8885d4c37a63a0a275f893c99-image.png](https://img.hacpai.com/file/2017/6/5951e4a8885d4c37a63a0a275f893c99-image.png)
3、### 'boost/iterator/iterator_adaptor.hpp' file not found
产生原因:
* /Users/Vanessa/.rncache 中 boost_1_63_0.tar.gz, double-conversion-1.1.5.tar.gz, folly-2016.09.26.00.tar.gz, glog-0.3.4.tar.gz 文件下载不完整
* node_modules/react-native/third-party 文件不完整
解决方案:
1. 删除 .rncache 后重新下载,或[手动下载](https://pan.baidu.com/s/1geLl5tT)后放入 .rncache 中
2. 把以上文件解压后放入 node_modules/react-native/third-party 下
3. Clean & Build
4、卸载React native
brew uninstall -f node
rm-rf/usr/local/include/node
网友评论