React-NAtive 搭建环境碰到问题

React-NAtive 搭建完成之后使用 react-native init 工程名 创建一个react-Native项目,项目启动之后报错.

** BUILD Failed **



The following commands produced analyzer issues:


Analyze /Users/xiaoma/Desktop/MyApp/node_modules/react-native/ReactCommon/yoga/yoga/YGNodeList.c

Analyze /Users/xiaoma/Desktop/MyApp/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.c

(2 commands with analyzer issues)


The following build commands Failed:

PhaseScriptExecution Install\ Third\ Party /Users/xiaoma/Desktop/MyApp/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh

(1 failure)


Installing build/Build/Products/Debug-iphonesimulator/MyApp.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/MyApp.app/Info.plist

Print: Entry,Does Not Exist


报错内容如上,这个报错是当前react-NAtive版本的问题,当前版本 "react-native@0.45.1“ 包括"react-native@0.45.0“版本也是不行的,当版本降到"react-native@0.44.0“的时候,项目是能够正常启动的。创建指定版本的项目命令react-native init MyApp --version 0.44.0 当创建完毕。到工程目录下react-native run-ios或者从xcode 正常启动项目即可。

相关文章

一、前言 在组件方面react和Vue一样的,核心思想玩的就是组件...
前言: 前段时间学习完react后,刚好就接到公司一个react项目...
前言: 最近收到组长通知我们项目组后面新开的项目准备统一技...
react 中的高阶组件主要是对于 hooks 之前的类组件来说的,如...
我们上一节了解了组件的更新机制,但是只是停留在表层上,例...
我们上一节了解了 react 的虚拟 dom 的格式,如何把虚拟 dom...