【发布时间】:2021-12-10 23:48:14
【问题描述】:
目前,我正在努力解决以下问题,这对我们的项目来说是一个很大的障碍。 我们需要使用终端在 iOS 应用中使用 Watch App 对 Apple Watch 测试目标运行 ui 测试,我们收到这样的错误,这非常令人沮丧
我使用的命令:
xcodebuild test -workspace WatchTesterApp.xcworkspace -scheme 'Watch' -destination 'id=F35DCC98-0F7D-460E-A49F-A446FD5FB4BE'
xcodebuild:错误:无法找到与提供的目标说明符匹配的目标: { id:F35DCC98-0F7D-460E-A49F-A446FD5FB4BE }
The requested device could not be found because no available devices matched the request.
Available destinations for the "Watch" scheme:
{ platform:iOS Simulator, id:F35DCC98-0F7D-460E-A49F-A446FD5FB4BE, OS:14.5, name:iPhone 12 Pro }
Ineligible destinations for the "Watch" scheme:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:watchOS, id:dvtdevice-DVTiOSDevicePlaceholder-watchos:placeholder, name:Any watchOS Device }
Destination 是与 Apple Watch 配对的 iPhone 模拟器 ID
有人遇到过这样的问题吗?
【问题讨论】:
标签: ios terminal xcode-ui-testing watchos uitest