Post

Replies

Boosts

Views

Activity

Unable to find a destination matching the provided destination specifier
Currently, I am struggling with the following issue and it's kind of big blocker for our project. We need to run ui tests for apple watch test target in the iOS App with Watch App using terminal and we receive such error, which is quite frustrating Command I use: xcodebuild test -workspace WatchTesterApp.xcworkspace -scheme 'Watch' -destination 'id=F35DCC98-0F7D-460E-A49F-A446FD5FB4BE' xcodebuild: error: Unable to find a destination matching the provided destination specifier: { 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 is iPhone's simulator id which is paired with apple watch Has anyone faced such issue?
0
1
1.7k
Oct ’21
Run UITests from command line Apple Watch
I'm having troubles while running XCUITests on iPhone and paired apple watch (simulators) simultaneously using terminal. I can do it by hitting "test button" for each of my uitests targets separately, it works just fine, but I need to do it 1 - from command line 2 - simultaneously However, I am able to run uitests from command line for the same iPhone simulator (that is paired with apple watch simulator) using xcodebuild -workspace MyApp.xcworkspace -scheme 'MyApp' -destination 'name=iPhone 11' test  It works as expected- launches simulator and run tests The problem is: When I do the same for paired apple watch (it doesn't matter separately or simultaneously with this iPhone) tests for apple watch doesn't launch at all xcodebuild -workspace MyApp.xcworkspace -scheme 'MyApp WatchKit App' -destination 'name=iPhone 11' test  Terminal says that: The requested device could not be found because no available devices matched the request. Available destinations for the "WatchTesterApp WatchKit App" scheme: { platform:iOS Simulator, id:2B6CA009-BF6B-4437-9E80-18D53EB003BA, OS:14.5, name:iPhone 11 }
0
0
1.1k
Oct ’21