解決 '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