React Native-初始化项目后npx react-native run-ios不起作用 [英] React Native - npx react-native run-ios doesn't work after initializing the project
本文介绍了React Native-初始化项目后npx react-native run-ios不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
阅读 https://reactnative.dev/docs/environment-setup 之后,我创建了使用 npx react-native init ***
的react-native项目.
After reading https://reactnative.dev/docs/environment-setup, I created a react-native project using npx react-native init ***
.
成功,因此,我尝试使用 npx react-native run-ios
运行项目,并得到以下错误:
It was successful, so, I tried to run the project using npx react-native run-ios
, and got the below error:
** BUILD FAILED **
The following build commands failed:
CompileC /Users/loser/Library/Developer/Xcode/DerivedData/test0205-dasunahpjpavelgmslwgmvjhesxy/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper.build/Objects-normal/x86_64/FlipperRSocketResponder.o /Users/loser/Documents/projects/test0205/ios/Pods/Flipper/xplat/Flipper/FlipperRSocketResponder.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
推荐答案
这是因为iOS项目Podfile中的 use_flipper
.
It's because of use_flipper
in Podfile for iOS project.
use_flipper!
因此,我需要将use_flipper的 Flipper-Folly
版本指示为
So, I was needed to indicate Flipper-Folly
version with use_flipper as
use_flipper!({ 'Flipper-Folly' => '2.3.0' })
更改后效果很好.
这篇关于React Native-初始化项目后npx react-native run-ios不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文