Skip to content

Conversation

@Ayagikei
Copy link

@Ayagikei Ayagikei commented Jan 24, 2026

Problem

When using AutoGLM on iOS over WiFi, WebDriverAgent (WDA) can be reachable (for example, with --wda-url http://{device-ip}:8100) while idevice_id -ln returns no devices.
The CLI currently treats this as a hard failure and exits during the system requirements check.

What changed

  • If no USB devices are detected, fall back to checking WDA readiness at the provided --wda-url.
  • If WDA responds, the system check passes in WiFi mode; otherwise the original failure message is shown.

Why

This prevents false negatives for WiFi-only configurations and aligns the preflight checks with the actual runtime dependency (WDA accessibility).

Testing

  • python ios.py --wda-url http://{device-ip}:8100 --wda-status
  • python -m py_compile ios.py

In WiFi mode, idevice_id may return no devices even though WebDriverAgent is running and reachable.

This change falls back to checking WDA readiness when no USB devices are detected, preventing the CLI from exiting early in WiFi-only configurations.
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