weixin_39665507
weixin_39665507
2020-11-24 11:59

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

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 /core has 7.0.3 version and is up to date. ✔ Component /ios has 7.0.0 version and is up to date. ✖ Component /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</redacted>

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.

该提问来源于开源项目:NativeScript/nativescript-cli

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

5条回答

  • weixin_39665507 weixin_39665507 5月前

    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).

    点赞 评论 复制链接分享
  • weixin_39623271 weixin_39623271 5月前

    Really appreciate this! And all the excellent reporting/investigations you've been helping with ❤️

    Agreed I think that's a great idea. We should definitely look at using that package as is.

    点赞 评论 复制链接分享
  • weixin_39759155 weixin_39759155 5月前
    • Yep, I was aware of that already and was looking at the changes -- but thank you as if I wasn't aware of it you would have saved me a lot of time... :grinning:

    As for using that code base; I do think we should for sure evaluate using it or libidevicemobile both of them are very well maintained from what I can see and I've used libidevicemobile personally for years. However to get the issue fixed and the TNS cli working again quickly; applying the changes to ios-device-lib is probably the fastest method -- but I'm all for moving to something used by everyone else rather than maintaining it ourselves! :grinning:

    点赞 评论 复制链接分享
  • weixin_39665507 weixin_39665507 5月前

    This is resolved with the resolution of https://github.com/NativeScript/NativeScript/issues/8867.

    点赞 评论 复制链接分享
  • weixin_39623271 weixin_39623271 5月前

    See closing details here: https://github.com/NativeScript/NativeScript/issues/8867#issuecomment-703171842

    点赞 评论 复制链接分享

相关推荐