我正在尝试使用本指南在 iOS 上使用 firebase TestLab:
https://firebase.google.com/docs/test-lab/ios/firebase-console#build_xctests_for_your_app
但在我上传包含 xctestrun 文件的 zip 文件后,出现以下错误:
Upload invalid: the .xctestrun file didn't specify any test targets.
我的应用程序中有两个目标,一个是测试目标,一个是 UI 测试目标, 在两个测试目标上,我将要测试的目标设置为主机应用程序。
有什么想法吗?
最佳答案
就我而言,以下操作顺序有所帮助:
- 打开您应用的
.xcworkspace
文件 - 转到
文件 -> 新建 -> 目标
- 选择
iOS Unit Testing Bundle
并按下 Next 按钮 - 检查产品名称、团队、 bundle 标识符等凭据,然后按“完成”按钮
现在您需要重新尝试构建以测试(Product -> Build For -> Testing)
并遵循有关创建存档的 Firebase 说明
关于ios - IOS 上的 Firebase TestLab - .xctestrun 文件未指定任何测试目标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53263865/