看完https://reactnative.dev/docs/environment-setup ,我使用 npx react-native init ***
创建了一个 react-native 项目.
成功了,所以我尝试使用 npx react-native run-ios
运行项目,并得到以下错误:
** 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)
最佳答案
这是因为use_flipper
在 iOS 项目的 Podfile 中。
use_flipper!
所以,我需要指出 Flipper-Folly
使用 use_flipper 作为的版本use_flipper!({ 'Flipper-Folly' => '2.3.0' })
更改后它工作得很好。
关于ios - React Native - npx react-native run-ios 在初始化项目后不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66062663/