NativeScript / NativeScript/nativescript-cli

DeviceType from was NULL

未关闭
#5,229 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

needs more info
主要语言
JavaScript
星标
1.1k
派生
204
平均合并
1 天 9 小时
30 天内合并 PR
8

描述

Environment

  • CLI: 6.3.3
  • Cross-platform modules: 6.3.2
  • Android Runtime: 6.3.1
  • iOS Runtime: 6.3.0
  • Plugin(s):
│ @angular/animations                     │ ~8.2.0   │
│ @angular/common                         │ ~8.2.0   │
│ @angular/compiler                       │ ~8.2.0   │
│ @angular/core                           │ ~8.2.0   │
│ @angular/forms                          │ ~8.2.0   │
│ @angular/platform-browser               │ ~8.2.0   │
│ @angular/platform-browser-dynamic       │ ~8.2.0   │
│ @angular/router                         │ ~8.2.0   │
│ @nativescript/theme                     │ ^2.2.1   │
│ @ngx-translate/core                     │ ^11.0.1  │
│ @ngx-translate/http-loader              │ ^4.0.0   │
│ @nstudio/nativescript-loading-indicator │ ^3.0.1   │
│ lodash                                  │ ^4.17.15 │
│ moment                                  │ ^2.24.0  │
│ nativescript-angular                    │ ^8.20.4  │
│ nativescript-camera                     │ ^4.5.0   │
│ nativescript-carousel                   │ ^6.1.1   │
│ nativescript-plugin-firebase            │ ^10.3.3  │
│ nativescript-theme-core                 │ ^2.0.24  │
│ nativescript-ui-autocomplete            │ ^6.0.0   │
│ nativescript-ui-listview                │ ^8.0.1   │
│ reflect-metadata                        │ ~0.1.12  │
│ rxjs                                    │ ^6.4.0   │
│ tns-core-modules                        │ ^6.3.2   │
│ zone.js                                 │ ^0.9.1 

Describe the bug

When trying tns run ios --device="device_Id_here" --hmr I get the following error:

Building project...
Xcode build...
2020-01-26 21:47:40.730 xcodebuild[16347:64933]  DTDeviceKit: deviceType from {{uuid}} was NULL
2020-01-26 21:47:41.956 xcodebuild[16347:64853] [MT] DTDeviceKit: deviceType from {{uuid}} was NULL

To Reproduce

tns run ios --device="device_Id_here" --hmr
or
tns build ios --for-device

Expected behavior
App successfully build and deployed to my device

Sample project
Sadly I can't provide you with a sample project but happy to provide any logs necessary.

Additional context
Hello everyone, before anything thanks for taking the time to try to help me with my issue. This error starting to happen a few nights ago. I have seen it before but usually unplugging and plugin my phone back fixed it. Now I can't get past it and I am stuck!

Note: When I build the app with XCode it successfully builds but not when using the commands mentioned above.

Please help 🙏🏽
Thanks!

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,在列出的 NativeScript 和 iOS 环境中重现 tns run ios --device="device_Id_here" --hmrtns build ios --for-device,然后将 CLI 结果与成功的 Xcode 构建进行比较。CLI 构建完成并且应用能够部署到设备上,且不出现 DTDeviceKit 的 deviceType ... was NULL 错误,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
ios, javascript
领域
cli, mobile
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。