尝试创建React Native应用程序时,我一直收到BUILD FAILED错误。

时间:2017-07-21 21:44:22

标签: react-native react-native-ios

我是React Native的新手。我按照React Native的“入门”页面中的说明进行操作。这些是我到目前为止运行的命令:

-brew安装节点 -brew安装守望者 -npm install -g react-native-cli

我使用此命令创建了我的项目: -react-native init AwesomeProject

我尝试使用以下命令运行我的应用: -react-native run-ios

然后我得到了构建错误。即使模拟器打开,应用程序也无法打开。请帮忙。

** BUILD FAILED **


The following commands produced analyzer issues:
    Analyze /Users/LuisRizo/Documents/Web\ Projects/React/newProject/node_modules/react-native/ReactCommon/yoga/yoga/YGNodeList.c
    Analyze /Users/LuisRizo/Documents/Web\ Projects/React/newProject/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.c
(2 commands with analyzer issues)

The following build commands failed:
    PhaseScriptExecution Install\ Third\ Party /Users/LuisRizo/Documents/Web\ Projects/React/newProject/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh
(1 failure)

Installing build/Build/Products/Debug-iphonesimulator/newProject.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/newProject.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

1 个答案:

答案 0 :(得分:1)

好的,这是一个更新。我完全卸载了所有东西(守望者,节点,自制程序,npm等)。

然后我使用React Native的快速入门指南从头开始。我通过从他们的网站下载zip来安装节点。然后是这些命令:

npm install -g create-react-native-app

create-react-native-app AwesomeProject

cd AwesomeProject

npm start

npm run ios

在第一次运行期间,我得到了和以前一样的错误。然后我读到了#34;重置内容和设置"在模拟器菜单中会有所帮助。我这样做了我的模拟器重新启动了。然后我跑了 - " npm run ios"再次,它启动没有任何错误。现在我开始运转了。不确定哪个部分纠正了我的错误,但这些是我采取的步骤。

相关问题