从零开始ReactNative,踩过的坑:CFBundleIdentifier", Does Not Exist
来源:互联网 发布:ubuntu 16.04 uuid 编辑:程序博客网 时间:2024/06/05 03:54
初始化项目后,执行react-native run-ios. 执行失败,报以下错误。
Analyze /Users/lcz/workspace/APP/temp/node_modules/react-native/ReactCommon/yoga/yoga/YGNodeList.c
Analyze /Users/lcz/workspace/APP/temp/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.c
(2 commands with analyzer issues)
The following build commands failed:
PhaseScriptExecution Install\ Third\ Party /Users/lcz/workspace/APP/temp/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/temp.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, “:CFBundleIdentifier”, Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/temp.app/Info.plist
Print: Entry, “:CFBundleIdentifier”, Does Not Exist
网上查阅很多方法例如reset模拟器, 执行reactnative upgrade等等都没解决。
估计是react 版本的问题。
解决方法:
“react”: “16.0.0-alpha.12”,
“react-native”: “0.45.0”
切换成下面的版本就可以了:
“react”: “16.0.0-alpha.6”,
“react-native”: “0.44.3”
具体操作:删除node-modules文件夹,修改pakage.json文件,然后执行npm install
注意:react版本要和react-native版本搭配,上面版本只换一个也会出错
- 从零开始ReactNative,踩过的坑:CFBundleIdentifier", Does Not Exist
- 解决CFBundleIdentifier", Does Not Exist
- Print: Entry, ":CFBundleIdentifier", Does Not Exist
- 解决 'boost/iterator/iterator_adaptor.hpp' file not found’ 及控制台":CFBundleIdentifier", Does Not Exist
- 解决 'boost/iterator/iterator_adaptor.hpp' file not found’ 及控制台":CFBundleIdentifier", Does Not Exist
- react-native启动报错-Print: Entry, ":CFBundleIdentifier", Does Not Exist
- react-native init DemoApp --version 0.44.3 解决 CFBundleIdentifier", Does Not Exist
- react-native开发:运行react-native run-ios报错--Print: Entry, ":CFBundleIdentifier", Does Not Exist
- 解决react-native run-ios报错问题--Print: Entry, ":CFBundleIdentifier", Does Not Exist
- RN编译错误之——Print: Entry, ":CFBundleIdentifier", Does Not Exist
- Resource /xxxx does not exist的问题
- MySQL ('root'@'%') does not exist的问题
- MySQL ('root'@'%') does not exist的问题
- MySQL ('root'@'%') does not exist 的问题
- MySQL ('root'@'%') does not exist的问题
- MySQL ('root'@'%') does not exist的问题
- DocumentRoot does not exist
- mapreduce_shuffle does not exist
- Let's Encrypt将在2018年初支持IETF标准化ACME v2协议
- Arraylist和Linkedlist区别:
- Android 开发过程中遇到的问题Error:Execution failed for task ':app:processDebugManifest'
- 前端跨域请求解决方案汇总
- 开发中代码块提高工作效率(偷懒)
- 从零开始ReactNative,踩过的坑:CFBundleIdentifier", Does Not Exist
- mysql的binary、char、varchar区别
- tensorflow几个函数讲解
- CommonJS,AMD模块化规范
- 怎样用云计算来进行软件恢复?
- XUtiles中BitmapUtils的使用方法
- 安卓OPPO手机有的时候无法弹出吐司(Toast)
- 第三章:操作符(这是我第三遍编辑了,因为bug)
- Oracle中全角和半角问题