NativeScript / NativeScript/nativescript-cli
DeviceType from was NULL
還沒有人認領這個 Issue。
- 主要語言
- 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!
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先,在列出的 NativeScript 和 iOS 環境中重現 tns run ios --device="device_Id_here" --hmr 或 tns build ios --for-device,然後將 CLI 結果與成功的 Xcode 建置進行比較。CLI 建置完成,且應用程式能夠部署到裝置上而不出現 DTDeviceKit 的 deviceType ... was NULL 錯誤,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- ios, javascript
- 領域
- cli, mobile
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 30/100