Skip to content

fix: tns debug ios fails to show chrome url #3648

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

Merged
merged 1 commit into from
May 30, 2018

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.

2 participants