问题描述
我按照官方 react-native 网站安装了所有东西.但是从终端创建项目后,当我尝试运行我的项目时出现错误.
i installed all the things as per official react-native website.but after creating project from terminal when i try to run my project i get an error.
我使用了 Xcode 10
并在最新的模拟器上运行并且已经使用 homebrew
成功安装了 node
和 watchman
然后安装 npm install -g react-native-cli
i used Xcode 10
and run on latest simulaterand also already successfuly installed node
and watchman
with homebrew
then installed npm install -g react-native-cli
brew install node
brew install watchman
npm install -g react-native-cli
react-native init AwesomeProject
cd AwesomeProject
react-native run-ios
我希望运行一个项目,但它向我显示了一个错误
i expected to Run a Project but its shows me an error that
"error Failed to build iOS project.我们运行了"xcodebuild"命令,但它以错误代码65退出.要进一步调试构建日志,请考虑使用Xcode.app构建您的应用程序,打开AwesomeProject.xcodeproj"代码>
推荐答案
这个错误是因为脚蹼依赖.
This error is because of flipper dependency.
您可以使用以下步骤在 pod 文件中对 'useflipper()' 发表评论.
you can put comment on 'use flipper()' in pod file using below steps.
转到 iOS 文件夹 ->pod 文件 ->打开 pod 文件 ->评论'use_flipper!()'->保存 ->打开终端并输入pod install" ->运行 react-native run-ios
Go to iOS folder -> pod file -> open pod file -> comment 'use_flipper!()'-> Save -> open terminal and write 'pod install' -> run react-native run-ios
如果 react-native run-ios 不起作用,则在 xCode 上打开工作区并从 xCode 运行项目.它会起作用.
if react-native run-ios not works then open workspace on xCode and run the project from xCode. it will work.
确保您的 xCode 工作区设置构建系统选择为新构建系统.
Make sure your xCode workspace settings build system selected as New Build System.
这篇关于错误 无法构建 iOS 项目.我们运行了“xcodebuild"命令,但它以错误代码 65 退出.我无法运行我的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!