【发布时间】:2017-02-04 05:09:39
【问题描述】:
我为我的应用编写了一些单元测试(API 测试用例),它们运行良好。之后,我为 Google 身份验证集成了 Firebase SDK。
现在,当我尝试运行单元测试时,Xcode 会编译应用程序并显示错误:
"ld: framework not found FirebaseInstanceID for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)"
但应用程序在设备和模拟器中都能正常运行,但我无法运行单元测试。
【问题讨论】:
-
我得到了完全相同的错误。也许是 Firebase 问题?
-
您能否添加更多关于您的设置的信息(例如,您要添加到测试目标的 Firebase 依赖项,如果有,是否使用 cocoapods 等)。
-
我已经集成了 firebase 手动添加分析和身份验证框架。我没有为测试目标添加任何 firebase 框架。
标签: ios xcode unit-testing firebase swift3