Cannot run on iOS device from command line or from VSCode plugin
See original GitHub issueEnvironment
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:
- Created 3 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
@NathanaelA This issue was already resolved in
ios-deploy
: https://github.com/ios-control/ios-deploy/pull/471A 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 …) theios-deploy
package could be used in the NativeScript CLI (preferable).See closing details here: https://github.com/NativeScript/NativeScript/issues/8867#issuecomment-703171842