Skip to content

Conversation

@rosen-vladimirov
Copy link
Contributor

PR Checklist

What is the current behavior?

tns debug ios fails when you have only iOS device attached.
Also tns devices command takes 18 seconds when there's no iOS Simulator running.

What is the new behavior?

tns debug ios allows you to debug application on iOS Device.
Also tns devices command takes around 4 seconds when there's no iOS Simulator running.

In case when you do not have iOS Simulators running, the detection that checks if there are any simulators, takes 15 seconds. CLI executes this detection on various places.
This leads to several issues, but the main one is the `tns debug ios` command when there's no running Simulators. In this case CLI often fails to display the URL for debugging as the timeout while waiting to get the port from iOS Device's logs passes while we are trying to find running simulators.
Fix this by updating ios-sim-portable, where the detection does no longer wait 15 seconds - we just try twice for 500 ms to detect simulators and that's it.
@rosen-vladimirov rosen-vladimirov merged commit 038df83 into release May 30, 2018
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-debug-ios branch May 30, 2018 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants