-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
NS devices bug | erratic device connection #5717
Comments
I believe this is related to timing - wifi devices are sometimes slow to show up as connected - and the CLI has a timeout after which it stops waiting and looking for devices. This is currently set to ~6 seconds after which if no device showed up we report "no devices". Setting the timeout higher would be an option - however the downside to that is it would slow down all build/run commands, as it would now be forced to wait longer initially. Perhaps we can add a config option (or a Alternatively with a much bigger refactor, we could daemonize the device lookup task, so we have a background process listening for device changes at all times and the CLI would ping that instead. |
I found by chance that my machine had two xcodeproj gems installed. removing one helped a lot with this issue. Still doesn't always find it, but is much better. |
Issue Description
After connecting iPhone wirelessly to Mac, ns devices results in
Cannot find connected devices. Reconnect any connected devices, verify that your system recognizes them, and run this command again.
It should consistently identify and run app on remote device.
May be related to #4252
Reproduction
ns devices
.Results are inconsistent. Works sometimes on first try. Sometimes works after terminal restart or reconnection. Sometimes just plain won't cooperate at all.
Relevant log output (if applicable)
Environment
OS: macOS 13.1
CPU: (8) arm64 Apple M1
Shell: /bin/zsh
node: 18.13.0
npm: 9.2.0
nativescript: 8.4.0
android
java: 15.0.2
ndk: Not Found
apis: 29, 30, 31, 33
build_tools: 30.0.3, 31.0.0, 32.0.0
system_images:
ios
xcode: 14.2/14C18
cocoapods: 1.11.3
python: 2.7.18
python3: 3.9.13
ruby: 2.7.6
platforms:
Please accept these terms
The text was updated successfully, but these errors were encountered: