react native 0.64 xcode 12.2奇葩错误

新建demo

react native :0.64

xcode 12.2

运行pod install 报错


The following build commands failed:

CompileC /Users/fnzdev/Library/Developer/Xcode/DerivedData/soulwitness-ebfsmdwgkfggkhccemphiiazlurs/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FlipperKit.build/Objects-normal/x86_64/FlipperClient.o /Users/fnzdev/Documents/Workspace/MyWorkSpace/soulwitness/ios/Pods/FlipperKit/iOS/FlipperKit/FlipperClient.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler

(1 failure)

修改podfile 里面:

第25行左右的 use_flipper

改成如下的

use_flipper!({'Flipper' => '0.75.1', 'Flipper-Folly' => '2.5.3', 'Flipper-RSocket' => '1.3.1'})

删除/ios/Pod目录

删除/ios/Podfile.lock

执行 pod install --verbose

运行成功

https://blog.csdn.net/lxyoucan/article/details/116402949

https://blog.csdn.net/qq_42208442/article/details/116723947


方法二:这个方法没有试:

有关旧项目可以试试这个链接 Xcode 12 运行 React-Native 0.63.3 旧项目出错

https://www.jianshu.com/p/d9d5016cb655

你可能感兴趣的:(react native 0.64 xcode 12.2奇葩错误)