Skip to content

fix: Run and debug fail for iOS in Sidekick #3643

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 2 commits into from
May 30, 2018

Conversation

rosen-vladimirov
Copy link
Contributor

When CLI is used as a library (in NativeScript Sidekick for example), calling methods for run and debug currently fails. The problem is with the parsing of the iOS logs, which was introduced several days ago.
The logic uses $projectData from the $injector. However, when CLI is used as a library, the $projectData is never initialized. Instead of using $projectData pass the project directory and construct new project data (from $projectDataService) where required.

PR Checklist

What is the current behavior?

Trying to run application on iOS device/simulator fails in Sidekick.

What is the new behavior?

You can successfully run application on iOS device/simulator with Sidekick.

When CLI is used as a library (in NativeScript Sidekick for example), calling methods for run and debug currently fails. The problem is with the parsing of the iOS logs, which was introduced several days ago.
The logic uses `$projectData` from the `$injector`. However, when CLI is used as a library, the `$projectData` is never initialized. Instead of using `$projectData` pass the project directory and construct new project data (from `$projectDataService`) where required.
@dtopuzov
Copy link
Contributor

run ci

@Fatme
Copy link
Contributor

Fatme commented May 29, 2018

run ci

@rosen-vladimirov rosen-vladimirov merged commit b953fa1 into release May 30, 2018
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-run-debug-sidekick branch May 30, 2018 07:22
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