xcode - 架构 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 版
解决方案
问题在于 pod 文件(ios> Pods > OpenSSL-Universal)。我试图从一个工作的 react-native 项目(不是太旧)中替换这个文件夹,它工作得很好。
推荐阅读
- mongodb - React Native、Express、Node、MongoDB 堆栈
- python - Django 分页不起作用。对象列表正在渲染项目但不分页
- react-native - 'event2/event-config.h' 文件未找到
- php - 完整性约束违规:1048 列 'ip' 不能为空(SQL:插入到 `users`(`name`、`steamid`、`avatar`、`token`、`ip`)
- sas - Sas 日期格式连接
- javascript - 刷新后保存暗模式
- amazon-web-services - dynamoDB 的 CloudFormation 模板不起作用:一个或多个参数无效
- flutter - Flutter - 多个小部件捕获的异常
- sql - 没有侧行的分层查询
- javascript - 基于路由变量隐藏对象数组