React-NAtive 搭建环境碰到问题

前端之家收集整理的这篇文章主要介绍了React-NAtive 搭建环境碰到问题前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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

** BUILD Failed **@H_404_4@

@H_404_4@

@H_404_4@

The following commands produced analyzer issues:@H_404_4@

@H_404_4@

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

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

(2 commands with analyzer issues)@H_404_4@

@H_404_4@

The following build commands Failed:@H_404_4@

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

(1 failure)@H_404_4@

@H_404_4@

Installing build/Build/Products/Debug-iphonesimulator/MyApp.app@H_404_4@

An error was encountered processing the command (domain=NSPOSIXErrorDomain,code=2):@H_404_4@

Failed to install the requested application@H_404_4@

An application bundle was not found at the provided path.@H_404_4@

Provide a valid path to the desired application bundle.@H_404_4@

Print: Entry,":CFBundleIdentifier",Does Not Exist@H_404_4@

@H_404_4@

Command Failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/MyApp.app/Info.plist@H_404_4@

Print: Entry,Does Not Exist@H_404_4@

@H_404_4@

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

原文链接:https://www.f2er.com/react/303793.html

猜你在找的React相关文章