react-native-ios - mac 更新后 React 本机构建失败 (macOS Big Sur 11.6)
问题描述
自上周最近的更新以来,我的 react native 应用程序构建失败了。我已经尝试了各种博客中的所有建议,例如在 podfile 中注释掉鳍状肢,创建 swift 桥接头文件,不包括 arm64 架构,因为我的是 M1 芯片 mac,但无济于事。有人可以帮助我解决这个问题或引导我朝着正确的方向前进,已经浪费了很多时间而不是我的错。
主要错误
Undefined symbols for architecture x86_64:
"_swift_FORCE_LOAD$_swiftDataDetection", referenced from:
_swift_FORCE_LOAD$swiftDataDetection$_YogaKit in
libYogaKit.a(YGLayoutExtensions.o) (maybe you meant: _
`swift_FORCE_LOAD$swiftDataDetection$_YogaKit)
"_swift_FORCE_LOAD$_swiftFileProvider", referenced from:
_swift_FORCE_LOAD$swiftFileProvider$_YogaKit in libYogaKit.a(YGLayoutExtensions.o) (maybe you meant: _swift_FORCE_LOAD$swiftFileProvider$_YogaKit) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)`
在 podfile 中注释掉脚蹼时出现不同的错误。
任何帮助都感激不尽。
解决方案
推荐阅读
- javascript - 对每个类 jQuery 进行验证
- python - 熊猫:for循环之前的while循环,直到满足某个条件
- django-rest-framework - 如何检查当前用户是否登录 django rest 框架?如何通知其他 django 应用程序当前用户已登录?
- jupyter-notebook - Jupyter Hub the littlest : 服务器经常关闭
- android - XAMARIN / Android App安装问题
- php - 销毁其他用户的会话
- xml - 使用 Bash 检索元素标记值 XML
- swift - 使用 MVVM 使用 RxSwift 查看初始数据源和过滤
- python - 如何使用 CPLEX Python API 中的 LazyConstraintCallback 通过 Benders 分解解决 MILP 问题
- activemq-artemis - ActiveMQ Artemis 的 REST API 在哪里?