react-native - ARM Mac - 无法运行 react-native run-ios
问题描述
我运行以下命令来创建一个项目
react-native init test
cd iOS
pod install
稍后从项目主目录
react-native run-ios
我收到以下错误
** BUILD FAILED **
The following build commands failed:
CompileC /Users/sp/Library/Developer/Xcode/DerivedData/test-ausxdgmizfvufjajqpwlgewxxhww/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-Folly.build/Objects-normal/x86_64/DistributedMutex.o /Users/sp/Documents/GitHub/Self/test/ios/Pods/Flipper-Folly/folly/synchronization/DistributedMutex.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
需要帮助解决这个问题。
解决方案
xCode 12.5 是这里的问题。它似乎破坏了 react-native 构建。这里提到了解决方案 - https://github.com/facebook/react-native/issues/31179#issuecomment-830184757
看起来你在 react-native 0.64
- 更新
podfile
使用
use_flipper!('Flipper' => '0.75.1', 'Flipper-Folly' => '2.5.3')
- 更新
package.json
使用
"react-native": "facebook/react-native#cf8a364767df830d7255339741350bb53ab1a68a"
如果这不起作用,
use_flipper!
从您的podfile
(禁用脚蹼)中删除- 跑
pod install
- 清理并重建
推荐阅读
- html - 使用自定义组件在 Vue 中渲染 TR
- c# - 从 C# 中的 Combobox 中选择特定项目时,将 Label 值增加 1
- vba - 将单元格([范围])从一张表插入或更新到另一张表
- java - java.lang.IllegalStateException:未设置位置
- android - 从服务启动活动后,应用程序再次从后台打开
- npm - Webpack 生产构建不生成构建输出并且几乎没有终端日志消息
- node.js - 在 Azure 中配置节点应用程序
- c++ - What are the functions that look like table in Lua?
- html - 我的导航栏“位置粘滞”已停止工作,我不知道为什么
- verilog - always_comb 中的临时变量会创建锁存器吗