question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot run on iOS device from command line or from VSCode plugin

See original GitHub issue

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): ✔ Getting NativeScript components versions information… ✔ Component nativescript has 7.0.8 version and is up to date. ✔ Component @nativescript/core has 7.0.3 version and is up to date. ✔ Component @nativescript/ios has 7.0.0 version and is up to date. ✖ Component @nativescript/android is not installed.

XCode 12, iOS 14, iPhone XS.

Describe the bug ns create --ng example project installs correctly on iOS device but doesn’t run, faced with error: Error while trying to start application org.nativescript.example on device <redacted>. Error is: Could not start service com.apple.debugserver

To Reproduce

ns create --ng example
cd example/
ns run ios

Expected behavior It runs.

Additional context The Xcode project runs without issue, but obviously doesn’t offer the best workflow.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
facetiouscommented, Sep 18, 2020

@NathanaelA This issue was already resolved in ios-deploy: https://github.com/ios-control/ios-deploy/pull/471

A similar fix could be applied to the ios-device-lib owned by telerik, or (since that may not be possible, and why bother duplicating effort …) the ios-deploy package could be used in the NativeScript CLI (preferable).

Read more comments on GitHub >

github_iconTop Results From Across the Web

VSCode does't recognize iOS Simulator
Open your XCode Navigate to Preferences -> Locations -> Command Line Tools and Chose XCode in the dropdown. This worked for me!
Read more >
iOS Web Debugging on Windows and Mac - Visual Studio Code
To get started, open the Extensions view (Ctrl+Shift+X). When the extension list appears, type "ios" to filter the list and install the Debugger ......
Read more >
Development Workflow | NativeScript
Open your terminal and run the following command to create a new NativeScript ... in Visual Studio Code, you need the NativeScript extension...
Read more >
Running On Device
If you used Expo CLI or Create React Native App to set up your project, you can preview your app on a device...
Read more >
Issue with opening IOS Simulator
However when i start my Expo Developer Tool Metro Bundler There when I click Run IOS Simulator. Always From the VS Code Terminal...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found