解决 'boost/iterator/iterator_adaptor.hpp' file not found’ 及控制台":CFBundleIdentifier", Does Not Exist


"react-native": "0.46.1"

这个问题产生原因:

* /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 文件不完整(好像是0.45以上的版本出现的))

解决方案:

删除 .rncache 后重新下载

rm -rf node_modules && rm -rf ~/.rncache && yarn install

之后直接npm install 

居然还不行!!

换种这个方法,我重新

react-native upgrade 

然后一路确认replace ,运行OK!




参考:

https://github.com/facebook/react-native/issues/7308#issuecomment-219597774

https://github.com/facebook/react-native/issues/14423

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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM