首页 > 解决方案 > 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 中注释掉脚蹼时出现不同的错误。

任何帮助都感激不尽。

标签: react-native-ios

解决方案


推荐阅读