首页 > 解决方案 > 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(我认为错误来自)已被弃用

标签: iosfirebasecocoapods

解决方案


推荐阅读