Repository navigation
chore(scripts): detect wired iOS device via tunnelState, not transportType - #547
Conversation
…tType ios-device.sh (used to pull the on-device offgrid-debug.log) selected the target by connectionProperties.transportType != "None". On modern setups the phone is reached over the CoreDevice network tunnel, so transportType reads "None" even for a fully-connected wired device, and the old filter matched nothing. Select on connectionProperties.tunnelState == "connected" instead — the field devicectl itself uses to decide reachability (its own list-devices prints State=connected for exactly these). Still never exits non-zero when no device is found, so the friendly guard reports it rather than set -e aborting mid-detection.
|
ⓘ Qodo reviews are paused because your trial has ended. Ask your workspace admin to add credits to resume reviews. Manage billing |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
ChangesiOS device detection
Estimated code review effort: 2 (Simple) | ~5 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Code Review ✅ ApprovedUpdates iOS device detection in OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
|



What
scripts/ios-device.sh(used to pull the on-deviceoffgrid-debug.logover the cable) picked the target device byconnectionProperties.transportType != "None".Why
On modern setups the phone is reached over the CoreDevice network tunnel, so
transportTypereads"None"even for a fully-connected wired device — the old filter matched nothing and device detection failed.Change
Select on
connectionProperties.tunnelState == "connected"— the fielddevicectlitself uses to decide reachability (itslist devicesprintsState=connectedfor exactly these devices). Behavior is otherwise unchanged: the detector still never exits non-zero when no device is found, so the friendly guard reports it instead ofset -eaborting mid-detection.Scope
One file, dev-tooling only. No app/runtime code touched.
Summary by CodeRabbit