ionic cordova run: show nice error message if no provisioning profile was found

Đang mở
#67 3 bình luận 3 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
ios, typescript
Lĩnh vực
devtools, mobile

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện ionic cordova run ios với một thiết bị thật và so sánh đầu ra của nó với cordova run ios. Truy vết lỗi cài đặt native-run được hiển thị trong stack trace và xác định nơi có thể hiển thị lỗi provisioning-profile; hoàn tất có nghĩa là hiển thị thông báo thân thiện do Cordova báo cáo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement ios

Version: 0.2.7

Description:

  • ionic cordova run ios (with real device connected) gives strange error message.
  • cordova run ios gives nice error message A valid provisioning profile for this executable was not found.

Command Output:

[native-run] Error: There was an error installing app
[native-run]     at protocolClient.sendMessage (/usr/local/lib/node_modules/native-run/node_modules/node-ioslib/dist/client/installation_proxy.js:59:24)
[native-run]     at LockdownProtocolReader.reader.readerFactory.create [as callback] (/usr/local/lib/node_modules/native-run/node_modules/node-ioslib/dist/protocol/protocol.js:91:21)
[native-run]     at LockdownProtocolReader.onData (/usr/local/lib/node_modules/native-run/node_modules/node-ioslib/dist/protocol/protocol.js:52:26)
[native-run]     at Socket.emit (events.js:189:13)
[native-run]     at addChunk (_stream_readable.js:284:12)
[native-run]     at readableAddChunk (_stream_readable.js:265:11)
[native-run]     at Socket.Readable.push (_stream_readable.js:220:10)
[native-run]     at Pipe.onStreamRead (internal/stream_base_commons.js:94:17)

Environment Info:

Ionic:

   Ionic CLI                     : 5.2.2 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.5.0
   @angular-devkit/build-angular : 0.13.9
   @angular-devkit/schematics    : 7.3.9
   @angular/cli                  : 7.3.9
   @ionic/angular-toolkit        : 1.5.1

Cordova:

   Cordova CLI       : 9.0.0 ([email protected])
   Cordova Platforms : ios 5.0.1
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.1, (and 11 other plugins)

Utility:

   cordova-res : 0.6.0 
   native-run  : 0.2.7 

System:

   ios-deploy : 1.9.4
   ios-sim    : 8.0.1
   NodeJS     : v10.15.3 (/usr/local/bin/node)
   npm        : 6.10.0
   OS         : macOS Mojave
   Xcode      : Xcode 10.2.1 Build version 10E1001

macOS version: 10.14.5

Ngôn ngữ chính
TypeScript
Star
141
Fork
35
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ionic-team/native-run

Tất cả issue của ionic-team/native-run

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.