在本地运行测试
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本指南介绍如何在本地运行 iOS 测试,便于您先对测试的行为进行质量检查,然后再在 Firebase Test Lab 中运行测试。
在本地运行 XCTest 测试
您可以先使用 USB 连接的设备在本地运行,验证 Test Lab 能否安装您的应用和测试,如下所示:
xcodebuild test-without-building \
-xctestrun "Derived Data/Build/Products/YourApp.xctestrun" \
-destination id=your-phone-id
在本地运行游戏循环测试
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-16。
[null,null,["最后更新时间 (UTC):2025-08-16。"],[],[],null,["\u003cbr /\u003e\n\nThis guide describes how to run an iOS test locally so you can quality check\nthe test's behavior before running it in Firebase Test Lab.\n\nRun an XCTest locally\n\nYou can verify that Test Lab will be able to install your app and tests by\nrunning locally with a USB-connected device as follows: \n\n```\nxcodebuild test-without-building \\\n -xctestrun \"Derived Data/Build/Products/YourApp.xctestrun\" \\\n -destination id=your-phone-id\n```\n\nRun a Game Loop test locally"]]