Skip to content

Route real Apple TV through mobilecli#2

Closed
setoelkahfi wants to merge 1 commit into
feature/tvos-supportfrom
feature/tvos-real-device
Closed

Route real Apple TV through mobilecli#2
setoelkahfi wants to merge 1 commit into
feature/tvos-supportfrom
feature/tvos-real-device

Conversation

@setoelkahfi

@setoelkahfi setoelkahfi commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Builds on top of mobile-next#363 (tvOS platform support) to recognize and route a real Apple TV, mirroring the iOS real-device handling.

What this adds

  • src/ios.ts exports an IosPlatform type and a platformFromProductType helper, and listDevicesWithDetails() now includes a platform field.
  • mobile_list_available_devices reports the real platform for physical devices instead of hardcoding ios.
  • getRobotFromDevice routes a real Apple TV through mobilecli (agentStatus/agentInstall plus MobileDevice), which is the tvOS-capable driver. iPhones and iPads keep the existing IosRobot/WebDriverAgent path.
  • A device-free unit test for platform detection.

Known limitation

The agentInstall wrapper here doesn't pass a provisioning profile, so a fully automated real-tvOS install through MCP will error unless the agent is already installed (mobilecli requires --provisioning-profile for real devices). Wiring the profile through the wrapper is a reasonable follow-up; I left it out of this PR since I can't test the end-to-end flow without hardware.

Verification

tsc build, eslint, and the new test all pass.

Related PRs:

Detect physical Apple TV units by product type and report platform tvos in
mobile_list_available_devices instead of hardcoding ios. Route real tvOS
devices through mobilecli (which installs and drives the tvOS runner) while
iPhones and iPads keep using the WebDriverAgent-based IosRobot. Add a unit
test for platform detection.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant