Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使用 XCTest 框架为 CarPlay 添加 UI 测试?
func testExample() throws { let app = XCUIApplication() app.launch() }
这是我拥有的基本 UI 测试,但它不会启动 CarPlay 的扩展显示。
目前尚无法自动化 CarPlay 相关测试。虽然您仍然可以打开 CarPlay 界面(通过更改模拟器设置),然后获取元素树。