react-native开发:运行react-native run-ios报错--Print: Entry, ":CFBundleIdentifier", Does Not Exist
来源:互联网 发布:java测试脚本怎么写 编辑:程序博客网 时间:2024/06/05 07:07
情景
在新创建的ReactNative项目,运行命令:react-native init Hello
在项目文件夹下执行react-native run-ios,但是出现以下报错:
Command /bin/sh failed with exit code 1** BUILD FAILED **The following build commands failed: PhaseScriptExecution Install\ Third\ Party /Users/shixinshan/Development/ReactNativeProjects/Mybaby/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh(1 failure)Installing build/Build/Products/Debug-iphonesimulator/Mybaby.appAn error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):Failed to install the requested applicationAn application bundle was not found at the provided path.Provide a valid path to the desired application bundle.Print: Entry, ":CFBundleIdentifier", Does Not ExistCommand failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/Mybaby.app/Info.plistPrint: Entry, ":CFBundleIdentifier", Does Not Exist
原因分析
init命令默认会创建最新的版本,而目前最新的0.45版本需要下载boost库编译。此库体积庞大,在国内即便翻墙也很难下载成功,导致很多人无法正常运行iOS项目,推荐暂时使用0.44.3的版本。
解决方法
创建项目暂时先使用react-native init MyApp –version 0.44.3,指定某个版本。
你可以使用–version参数(注意是两个杠)创建指定版本的项目。例如react-native init MyApp –version 0.44.3。注意版本号必须精确到两个小数点。
参考资料:
React Native开发中遇到的各种问题汇总
阅读全文
0 0
- react-native开发:运行react-native run-ios报错--Print: Entry, ":CFBundleIdentifier", Does Not Exist
- 解决react-native run-ios报错问题--Print: Entry, ":CFBundleIdentifier", Does Not Exist
- react-native启动报错-Print: Entry, ":CFBundleIdentifier", Does Not Exist
- Print: Entry, ":CFBundleIdentifier", Does Not Exist
- react-native init DemoApp --version 0.44.3 解决 CFBundleIdentifier", Does Not Exist
- react-native run-ios报错
- react-native运行ios报错总结
- react-native run-android Starting: Intent Error type 3 Error: Activity class does not exist
- react-native run-ios 报错 No bundle url present
- react-native run-android报错了
- react-native run-android 报错
- react-native run-adnroid报错
- RN编译错误之——Print: Entry, ":CFBundleIdentifier", Does Not Exist
- 运行React Native项目报:error calling appregistry.run application
- React-Native Strict mode does not allow ...
- react-native run-android报错A problem occurred configuring project ':app'. > SDK location not found
- 关于初次搭建环境第一次运行react-native run-android命令报错问题
- react-native 警告之module does not exist in the module map or in these directories
- JS和JQ得到标签的属性和标签内的值
- zephyr 系统--- 内存池使用方法
- 【C++】智能指针
- 高并发系统保护~ing
- 操作系统之面试常考
- react-native开发:运行react-native run-ios报错--Print: Entry, ":CFBundleIdentifier", Does Not Exist
- 14:计算邮资
- Material Design 风格引导页
- 数据库SQL优化大总结之 百万级数据库优化方案
- 06 sample02
- 15:最大数输出
- 火图快递2
- zephyr 系统--内存片Memory Slab使用方法
- 联合体