【发布时间】:2021-10-20 15:10:09
【问题描述】:
使用 Xcode 13beta 为 React Native 0.64.2 项目构建失败。它在 macOS Big Sur 上。错误的详细信息是:
Undefined symbols for architecture x86_64:
"__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)
需要进行哪些配置更改才能消除错误?
【问题讨论】:
-
快速谷歌有答案(阅读并关注)github.com/facebook/react-native/issues/31733
标签: xcode macos react-native