首页 > 解决方案 > 架构 x86_64 的未定义符号:clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

问题描述

新创建的(10 月 20 日)React 本机项目 iOS 构建失败并在 Xcode 中出错

Undefined symbols for architecture x86_64:
  "___darwin_check_fd_set_overflow", referenced from:
      _RAND_poll in libcrypto.a(rand_unix.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我有另一个在 2 个月前(8 月 20 日)创建的 react native 项目,它在 Xcode 中成功构建。我尝试了大多数方法,但仍然无法解决

我正在使用 Xcode 11.1 版和 MacOS Mojave 10.14.6 版

标签: xcodereact-native

解决方案


问题在于 pod 文件(ios> Pods > OpenSSL-Universal)。我试图从一个工作的 react-native 项目(不是太旧)中替换这个文件夹,它工作得很好。


推荐阅读