NativeScript / NativeScript/nativescript-cli

couldn't open an app if you make a change in debug command with bundle

Open
#4,448 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 5.2.4

Describe the bug
When you run debug with bundle and make a change, you will see exception:

Unable to start application org.nativescript.appNG on device f42eb590ec7ad920c8c0545a308e1a1d2551218b. Try starting it manually.
Cannot connect to device socket. The error message is 'The application org.nativescript.appNG does not appear to be running on f42eb590ec7ad920c8c0545a308e1a1d2551218b or is not built with debugging enabled. Try starting the application manually.'.
NativeScript debugger was not able to get inspector socket port on device f42eb590ec7ad920c8c0545a308e1a1d2551218b for application org.nativescript.appNG

To Reproduce

  1. tns create app --ng
  2. tns debug ios --bundle
  3. make a change
  4. when app restarts it couldn't open

Expected behavior
to open an app

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with tns create app --ng and tns debug ios --bundle, then inspect the CLI's iOS debug restart path after a source change. Done means the app restarts and opens normally without the debugger socket errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.