RN 解决CFBundleIdentifier", Does Not Exist

mac环境下,在命令行中run-ios构建时报错:CFBundleIdentifier", Does Not Exist

打开XCode,进入.xcodeproj文件,运行,编译时报错:'boost/iterator/iterator_adaptor.hpp' file not found’

经过多次测试,这个问题只在react native 0.45.0及以后的版本中出现。

在网上找到解决方法如下:

这个问题产生原因:

/Users/你的用户名/.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、删除/user/你的用户名/.rncache目录下的boost_1_63_0。重新下载,下载网址http://www.boost.org/users/history/version_1_63_0.html

2、打开命令行工具,在项目目录下输入rm -rf node_modules && rm -rf ~/.rncache && yarn

3、npm install 

4、react-native upgrade 

原文地址:https://www.cnblogs.com/wcLT/p/8807983.html