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

时间:2022-01-25 18:39:05
"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