Skip to content

fix: iOS debug issues #3616

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 6 commits into from
May 25, 2018
Merged

Conversation

rosen-vladimirov
Copy link
Contributor

fix: Unable to debug on iOS Simulator when multiple sims are running

In case multiple iOS Simulators are running and tns debug ios is called, CLI prompts you to select you on which device/simulator to debug.
Selecting the device and trying to debug your application leads to error as CLI does not pass correctly the device identifier.
Fix this by passing the correct device identifier.
Also update ios-sim-portable to latest version, where several fixes for this case are applied

fix: tns debug ios --start fails

The tns debug ios --start command fails as we do not get the port from iOS Application on device in this case. In order to fix this, start the log parsing in case --start option is passed.
Also fix the attaching to ATTACH_REQUEST_EVENT_NAME - we've incorrectly attached to device's application manager, which does not emit such event. Fix it by attaching to iOSNotification, which is the correct one.
Also remove incorrect cache decorator and ensure we do not start logging for iOS devices more than once.

@rosen-vladimirov rosen-vladimirov added this to the 4.1.0 milestone May 25, 2018
@rosen-vladimirov rosen-vladimirov self-assigned this May 25, 2018
rosen-vladimirov and others added 6 commits May 25, 2018 15:38
In case multiple iOS Simulators are running and `tns debug ios` is called, CLI prompts you to select you on which device/simulator to debug.
Selecting the device and trying to debug your application leads to error as CLI does not pass correctly the device identifier.
Fix this by passing the correct device identifier.
Also update ios-sim-portable to latest version, where several fixes for this case are applied
The `tns debug ios --start` command fails as we do not get the port from iOS Application on device in this case. In order to fix this, start the log parsing in case --start option is passed.
Also fix the attaching to ATTACH_REQUEST_EVENT_NAME - we've incorrectly attached to device's application manager, which does not emit such event. Fix it by attaching to `iOSNotification`, which is the correct one.
Also remove incorrect cache decorator and ensure we do not start logging for iOS devices more than once.
Fix unit tests and use sinon to mock the timers. This way the execution of the tests for getting port is now around 50ms instead of 15 seconds
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/fix-ios-debug-issues branch from 8a6abaf to 75fb867 Compare May 25, 2018 12:38
@rosen-vladimirov rosen-vladimirov merged commit fff9bbe into master May 25, 2018
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-ios-debug-issues branch May 25, 2018 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants