哎。。。最近添加了一个第三方插件一直出现CFBundleIdentifier Does Not Exist 问题 Xcode报react-native ->third-part 错误!找了许多文档 (我自己没有效果)
- 删除了.rncache文件
- 下载boost_1_63_0文件
- 然后删除third-part 文件 甚至删掉整个node_modules文件重新yarn结果还是不行
真正原因
后来我点开了我的third_part 文件发现只有boost_1_63_0文件,但是正确的应该是4个文件。所以我新建项目,只是0.45以上版本不能运行,而且都是报CFBundleIdentifier Does Not Exist 然后发现是node环境出错了,(可以用node-v命令查看) 然后就按照react-native安装环境,
- 先卸载node (brew uninstall node)
- 安装node brew install node
- 安装brew install watchman
- 安装npm install -g yarn react-native-cli
这时问题又来了
说是node 指令没有找到
后来我就去node官网下载一个稳定版的安装
然后新建项目,react-native run-ios
这一天天的
问题又是 CFBundleIdentifier Does Not Exist
当我绝望时,发现error: Build input file cannot be found: 'node_modules/react-native/third-party/double-conversion-1.1.6/src/strtod.cc’错误改变了,有没有?
发现这是因为我装了Xcode10.0的问题,然后
- cd node_modules/react-native/scripts && ./ios-install-third-party.sh && cd …/…/…/
- cd node_modules/react-native/third-party/glog-0.3.5/ && …/…/scripts/ios-configure-glog.sh
我再运行react-native run-ios, 哎,Hello Word 真亲切!