ios - Firebase POD 触发“/clang:-1: linker command failed with exit code 1 (use -v to see invocation)”错误
问题描述
我正在尝试将 cocoapods 和 firebase 添加到现有的 ios 应用程序中。(使用 xcode 10.1 和 swift 4)Cocoapods 似乎设置正确,(我可以使用一些随机的 pod)。
但是,当我尝试添加Firebase(或Crashlytics)时,构建失败。
错误是:
/clang:-1: linker command failed with exit code 1 (use -v to see invocation)
在日志中我可以看到:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_ALAssetsLibrary", referenced from:
objc-class-ref in opencv2(cap_ios_video_camera.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
有人经历过类似的事情吗?我已经在谷歌上搜索了一段时间,但运气不太好,除了发现ALAssetsLibrary(我认为错误来自)已被弃用
解决方案
推荐阅读
- tomcat - Tomcat通过log4j2访问日志?
- dataframe - pyspark 中的文本词形还原返回 TypeError: 'Column' object is not callable
- vba - 使用 MS Word 的用户表单输入表单字段中的值
- python - 使用 python PIL.ImageDraw 绘制椭圆时出错
- sql-server - EF Core 存储过程 FromSqlRaw 不提供更新的值
- java - 无法使用反射 API 访问方法
- javascript - 如何让按键对应于在javascript中首先调用的函数
- python - 创建数据框时在循环期间遇到错误
- flutter - 颤振对话框未完全关闭
- javascript - Chrome 在导航到新页面并使用 Ruby on Rails 作为后端点击返回按钮后显示缓存的 JSON