Post

Replies

Boosts

Views

Activity

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.2k
Oct ’21
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
2.0k
Oct ’21
Deploy UITests Runner directly to the Apple Watch
I am struggling with the new issue (again) related to the UITesting on Apple Watch. Currently, I'm looking into the opportunity to deploy .app/.ipa file of UITests-Runner directly on Watch. So, I'm not taking about running tests (for which I can easily use XCODEBUILD) or deploying .app/.ipa file of my application itself on Apple Watch (which could be achieved via iOS-deploy), my current problem is to deploy tests runner into real Apple Watch. Any suggestions, thoughts here? Will appreciate any help.
0
0
960
Aug ’22
xcodebuild issues on Apple Watch - watchOS 9.1
Hi Since update to watchOS 9.1 I am having issues using xcodebuild commands on my real Apple Watch, It is just not visible, however, it is always visible from Xcode UI. Sometimes, when I restart my iPhone it picks up the Apple Watch destination - it happens in rare cases, mostly I see this result. xcodebuild -workspace MyApp.xcworkspace -scheme 'MyApp WatchKit App' -destination 'platform=watchOS,id=Watch's ID' (null) needs to connect to determine its availability. Check the connection between the device and its companion iPhone, and the connection between the iPhone and Xcode. Both devices may also need to be restarted and unlocked.```
1
1
1.4k
Nov ’22
UI Tests Runner application does not launch manually.
I need to run my tests bundle independently from Xcode. Previously, I used to deploy it and run as regular iOS application, it would execute test cases and display 'Automation running' label. I needed to execute tests some time after deploy and in different time of the day, so it is a problem for my team right now. So, UI Tests Runner app file does not launch and 'Automation Running' label is not displayed, is there any possible ways to run tests as it was or other ways to run tests not from Xcode.
0
0
573
Jun ’24
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 }
Replies
0
Boosts
0
Views
1.2k
Activity
Oct ’21
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?
Replies
0
Boosts
1
Views
2.0k
Activity
Oct ’21
Apple Watch Home Screen Bundle id
Hi, guys I am writing UI tests for Apple Watch using XCTest and I need to interact with Apple Watch Home Screen and with elements on it. I know that "com.apple.springboard" could be used to interact with iPhone's Home Screen, what about Apple Watch? Thank you!
Replies
1
Boosts
0
Views
994
Activity
Mar ’22
Native applications bundle ids in watchOS
I am just looking for the native watchOS applications bundle ids. For example: for iPhone: "com.apple.news" and what is for Watch: ??? I tried "com.apple.news.watchkitapp" which doesn't work. Maybe someone know how to help me?
Replies
6
Boosts
2
Views
2.6k
Activity
Nov ’22
Home Screen bundle id
Hi, Currently I'm working on Apple Watch ui testing using XCTest and I need to interact with Apple Watch's Home screen in order to perform different actions with complications. As I know from my iOS experience, Home Screen can be by using bundle id "com.apple.springboard". I need something similar but for watchOS.
Replies
1
Boosts
0
Views
1.3k
Activity
Apr ’22
No paired Apple Watch
Hi I am working on the iPhone + Apple Watch development and I am facing this issue a few days in a row. I know how to fix it - unpair and then pair Apple Watch again, but it is not a solution at all. (Yes, I'm certain that my watch is paired) Maybe someone knows how to fix it?
Replies
0
Boosts
1
Views
983
Activity
Apr ’22
Enabling pod for exact build config
Hi guys, I just want to make my pod available only for one build configuration in my project. I assume I need to do this in the Podfile. Is there a way to do so? Thanks
Replies
0
Boosts
0
Views
620
Activity
Jul ’22
Deploy UITests Runner directly to the Apple Watch
I am struggling with the new issue (again) related to the UITesting on Apple Watch. Currently, I'm looking into the opportunity to deploy .app/.ipa file of UITests-Runner directly on Watch. So, I'm not taking about running tests (for which I can easily use XCODEBUILD) or deploying .app/.ipa file of my application itself on Apple Watch (which could be achieved via iOS-deploy), my current problem is to deploy tests runner into real Apple Watch. Any suggestions, thoughts here? Will appreciate any help.
Replies
0
Boosts
0
Views
960
Activity
Aug ’22
Apple Watch XCUITest press on Side Button
Hi everyone, I have questions about UITesting in Apple Watch once again. Just discovered that apparently there is no API to press Side Button in XCUITest framework, is this correct? If yes, if there is another way to show "dock" menu or "application stack" on the Apple Watch? Thank for your help and cheers
Replies
1
Boosts
0
Views
1k
Activity
Nov ’22
Complication interaction in XCUITest
Hi guys, Basically, my question - Is there a way to tap on Apple Watch's complication in XCUITest?
Replies
1
Boosts
0
Views
1.3k
Activity
Nov ’22
Get bundle id of 'Clock' application on Apple Watch
Hey everyone, I need a bundle id of 'Clock' app on Apple Watch to use during test writing using XCUITest. Would appreciate any direct answers or suggestions how to get bundle id from Apple Watch. Cheers :)
Replies
1
Boosts
0
Views
1.1k
Activity
Nov ’22
xcodebuild Apple Watch - iOS 16.1/wachOS 9.1 - fails
Hi guys, Recently I updated my devices to the newest version and with this update I am having troubles to run xcodebuild commands when destination is my Apple Watch. Have anyone experienced such problems? let me know
Replies
1
Boosts
0
Views
1.1k
Activity
Nov ’22
xcodebuild issues on Apple Watch - watchOS 9.1
Hi Since update to watchOS 9.1 I am having issues using xcodebuild commands on my real Apple Watch, It is just not visible, however, it is always visible from Xcode UI. Sometimes, when I restart my iPhone it picks up the Apple Watch destination - it happens in rare cases, mostly I see this result. xcodebuild -workspace MyApp.xcworkspace -scheme 'MyApp WatchKit App' -destination 'platform=watchOS,id=Watch's ID' (null) needs to connect to determine its availability. Check the connection between the device and its companion iPhone, and the connection between the iPhone and Xcode. Both devices may also need to be restarted and unlocked.```
Replies
1
Boosts
1
Views
1.4k
Activity
Nov ’22
UI Tests Runner application does not launch manually.
I need to run my tests bundle independently from Xcode. Previously, I used to deploy it and run as regular iOS application, it would execute test cases and display 'Automation running' label. I needed to execute tests some time after deploy and in different time of the day, so it is a problem for my team right now. So, UI Tests Runner app file does not launch and 'Automation Running' label is not displayed, is there any possible ways to run tests as it was or other ways to run tests not from Xcode.
Replies
0
Boosts
0
Views
573
Activity
Jun ’24
devicectl device process to run tests
Is it planned to add ability to run Xcode test bundles using devicectl tool? If it is possible now how to achieve it? Is there any other ways to run tests bundle .app file using command line?
Replies
0
Boosts
1
Views
631
Activity
Jun ’24