-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apple TV 4K tvOS 17 & XCode 15.0.1 - Appium unable to find the device though connected #19343
Comments
Also in v17 Apple did many breaking internal changes. Perhaps the support of AppleTV is affected as well |
Looks like now usbmux list defines devices by their network addresses rather than uuids. cc @KazuCocoa |
interesting... Perhaps it is tvOS 17 related since my local network connected iOS 17 and Xcode 15 had no such behavior |
What's happen when you use |
I did try.. and it says: Appium Terminal Logs: CC: @KazuCocoa |
I cannot verify because I don't have apple tv real device, but perhaps something has changed in https://github.com/appium/appium-ios-device/blob/e1e18141ee0c1d1a51a1d2b1c7c6d473bb28a469/lib/usbmux/index.js#L151 at least, or tvOS requires to manage both addir and udid. Hm, we need debug by someone who has the physical device |
Facing same issue with xcode 15.0 and tvOS 17. please let me know how can i help with debugging, i have apple tv available with me. |
What's about replacing npm built https://github.com/appium/appium-ios-device/tree/add-log with your local appium-ios-device in xcuitest-driver/node_modules? It prints usbmux communication in your appium log. It may show something new in Apple TV iOS 17 |
This comment was marked as outdated.
This comment was marked as outdated.
@tomriddly I believe something has changed in usbmuxd properties retrieved by appium-ios-device lib, so we get device ip address instead of the uuid. Do you have a chance to check the above scenario on Apple TV device running iOS 17? |
Yea, that pairing at least changed |
it seems like the workaround is not necessary. The ip address was to help Xcode find the device to pair, but after fully paired over usbmuxd, existing |
@KazuCocoa does this mean this is not a bug, but rather a device pairing issue? Perhaps, we could then improve the error message in the driver to make it more helpful (like device is not connected or not paired)? |
Basically yes as a technical perspective for tvOS 17. I need to dig into further the paring config itself on the TV side. I bought a device in person, so let me check further later after getting the device tvOS 17 has two layers about the pair. The IP v6 is the first one to pair with usbmuxd. I need to check further with the device config as welll, but maybe xcodebuild can detect the device with udid also. |
It seems like So, as current Appium's libs, the workaround appium/appium-xcuitest-driver#2178 might be needed with a capability. But the WDA process should be launched via Xcode or 3rd party tools. Perhaps it needs to pair the device via remoted |
closed as third party issue |
Is there any fix for tvOS 17, i am still stuck . Idevice_id shows ipv6 address for appletv, if i use it to start a session i get error as "Could not find a pair record for device 'some ipv6...addr.'. Please first pair with the device". I tried using tvosworkaround branch, i was able to create session using (skipdevice check and webdriveragenturl capability) but after that it says unable to find device with udid. none of the interactions are working |
@monankpastakia any news on this? I am currently blocked with my test automation |
@KazuCocoa it is not xcode or tvos issue rather appium2 issue. Before upgrading to appium2 I was able to inspect my appleTV 4K. os versions: So i upgraded the xcode version to 15.0.1 and tvos version to 17.3 now when i try to inspect WDA does not crash it is working properly but now I started getting the mentioned error: "Failed to create session. An unknown server-side error occurred while processing the command. Original error: Unknown device or simulator UDID:". I am using latest WDA: v5.15.8. I am blocked with automation due to this. |
I guess the error |
@KazuCocoa I assume it is only applicable to devices connected wirelessly. I was not able to repro any problem with a device connected via USB |
Yes, this issue is only for network connected devices, which we do not support officially in the fact, such as tvOS v17. Possibly the same with wireless connected iOS 17 (haven't checked though) |
@KazuCocoa So as of now we cannot automate tvos 17 using appium? Also if you can help me to know where to track when it gets unblocked? |
For the xcodebuild by Apple, we don't know. #19381 (comment) is one issue that posted to Apple but I don't know if they updated the behavior, or will update. So far, you can automate tvOS 17 network connected devices by starting WDA via Xcode, appium/appium-xcuitest-driver#2194 branch and |
Hi @KazuCocoa, For the workaround I uninstalled the existing xcuitest driver using command: appium driver uninstall xcuitest and then downloaded the driver from https://github.com/appium/appium-xcuitest-driver/tree/tvos-ios17-workaround2, placed it at location /Users/vedashreep/.appium/node_modules, however now when I start Appium it does not detect the xcuitest driver. Am I doing anything wrong here? please help. |
https://appium.io/docs/en/latest/cli/extensions/ should help. e.g. |
tried the command: appium driver install source=local /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver-tvos-ios17-workaround2 but getting error: |
Please try with |
|
Did you add |
Yes after using --source, getting error STDERR: npm WARN config global-style This option has been deprecated in favor of Full error: Error: ✖ Encountered an error when installing package: npm command 'link --save-dev --no-progress --no-audit --omit=peer --save-exact --global-style --no-package-lock /Users/vedashreep/.appium/node_modules/appium-xcuitest-driver-tvos-ios17-workaround2 --json' failed with code 1. STDOUT: STDERR: |
Then, perhaps you need to run |
It's been 2 months still i didn't get any reply from official Apple Dev forum. We have almost stopped running our TvOS automated test cases because of this unsupported version of tvOS with Appium. Presently our tvOS is updated with "17.3". Example : xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner_tvOS -destination 'id=4d61282d6871dd9006c73a8e7e8f2029XXXXXXXXX' test But when we try to start the webdriver session from our test scripts it say device(tvOS) is not connected Also one more observation is i have connected 2 devices with my macmini. i.e iphone and AppleTV but when i run the idevice_id --list i get only iphone id, so here also AppleTV is not recognisable. Its better they should stop the latest version tvOS and first fix these issue. Please somebody confirm that tvOS 17.X is not supported for automation :) Ref to issue raised with AppleTV: https://developer.apple.com/forums/thread/741110 Note: we will not be able to connect the Apple TV with usb connection. our model only supports connection via WIFI |
For this line, appium/appium-xcuitest-driver#2194 could help to skip some device checking that causes the error. |
A new finding with |
Hello, do we have the same issues with tvos 18 ? |
Do I have the most recent component updates?
Is the component officially supported by the Appium team?
Is there an existing issue for this?
Current Behavior
Apple TV 4K with tvOS 17, and XCode v15.0.1 - Able to install the WDA file on the device using xcode. However, when we try to connect device/launch the app using the Appium.
Getting Error: Failed to create session. An unknown server-side error occurred while processing the command. Original error: Unknown device or simulator UDID: ''
Expected Behavior
Appium should find the real device connected as it is on the same network.
NOTE: Same device with tvOS 16.4 - Appium was working fine without any issue.
Minimal Reproducible Example
"appium:udid": "5303ccb3e6d75f625e2bdba375ab03064fad5e66",
"appium:app": "com.apple.TVSettings",
"platformName": "tvOS",
"appium:noReset": true,
"appium:fullReset": false,
"appium:showXcodeLog": true,
"appium:useNewWDA": false,
"appium:automationName": "XCUITest",
"appium:deviceName": "TSQAAPPLETV4K"
}
Environment
appium --version
): 2.2.1node --version
): 20.7.0npm
version (output ofnpm --version
): 10.1.0Link to Appium Logs
https://gist.github.com/monankpastakia/29a5881d70fb2a78a3e3c6cda56d8a14
Further Information
No response
The text was updated successfully, but these errors were encountered: