我正在尝试将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(我认为错误源于此)已被弃用