解决react-native run-ios报错问题--Print: Entry, ":CFBundleIdentifier", Does Not Exist
2017-09-27 10:38
676 查看
Mac环境下,在命令行中run-ios构建时报错:CFBundleIdentifier",
Does Not Exist
打开XCode,进入.xcodeproj文件,运行,编译时报错:'boost/iterator/iterator_adaptor.hpp'
file not found’
这个问题只在react native 0.45.0及以后的版本中出现,stackoverflow 上的各种方法均无效。
先贴出解决方法 如下:
这个问题产生原因:
/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
5、react-native run-ios
_______________________________________________________________________________________________
若以上方法无效,可采用下面的方法:
创建项目暂时先使用react-native init MyApp –version 0.44.3,指定某个版本。
你可以使用–version参数(注意是两个杠)创建指定版本的项目。例如react-native init MyApp -version 0.44.3。注意版本号必须精确到两个小数点。
Does Not Exist
打开XCode,进入.xcodeproj文件,运行,编译时报错:'boost/iterator/iterator_adaptor.hpp'
file not found’
这个问题只在react native 0.45.0及以后的版本中出现,stackoverflow 上的各种方法均无效。
先贴出解决方法 如下:
这个问题产生原因:
/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
5、react-native run-ios
_______________________________________________________________________________________________
若以上方法无效,可采用下面的方法:
创建项目暂时先使用react-native init MyApp –version 0.44.3,指定某个版本。
你可以使用–version参数(注意是两个杠)创建指定版本的项目。例如react-native init MyApp -version 0.44.3。注意版本号必须精确到两个小数点。
相关文章推荐
- react-native开发:运行react-native run-ios报错--Print: Entry, ":CFBundleIdentifier", Does Not Exist
- React-Native(Print: Entry, ":CFBundleIdentifier", Does Not Exist)
- react-native启动报错-Print: Entry, ":CFBundleIdentifier", Does Not Exist
- Mac下正确解决 Print: Entry, ":CFBundleIdentifier", Does Not Exist
- react-native init DemoApp --version 0.44.3 解决 CFBundleIdentifier", Does Not Exist
- .app/Info.plist Print: Entry, ":CFBundleIdentifier", Does Not Exist
- RN编译错误之——Print: Entry, ":CFBundleIdentifier", Does Not Exist
- Print: Entry, ":CFBundleIdentifier", Does Not Exist
- 解决 'boost/iterator/iterator_adaptor.hpp' file not found’ 及控制台":CFBundleIdentifier", Does Not Exist
- 解决CFBundleIdentifier", Does Not Exist
- because the principal "dbo" does not exist 问题解决方法
- because the principal "dbo" does not exist 问题解决方法
- 解决问题python - "CSV file does not exist"
- 从零开始ReactNative,踩过的坑:CFBundleIdentifier", Does Not Exist
- 搭建ReactNative时的最普遍的错误—— ":CFBundleIdentifier", Does Not Exist
- Bootstrap: command Tomcat 5.5\conf\server.xml" does not exist. eclipe启动tomcat问题解决方法
- Eclipse error "build.properties does not exist" 问题解决
- android里出现"resource directory /xxx/res does not exist"问题的解决办法
- 'DirData' parameter (./data) does not exist问题的解决
- PostgreSql问题:ERROR: column "1" does not exist