app when launched opens and closes instantly

オープン
#109 コメント 3 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
ios, typescript

調査の方向性

レポートに示されている native-run ios --app ... --device の呼び出しと debugserver の起動シーケンスから始めます。リンクされている Ionic チケット 20580 と動作を比較し、即時終了の原因が native-run にあるかどうかを判断します。原因が切り分けられ、動作が修正されるか、検証結果とともに明確に文書化されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

ios

Version:

0.3.0

Description:

after the command ionic cordova run ios it compiles but then when it gets to the final stage
native-run ios --app "platforms/ios/build/device/<app name>.ipa" --device it tries to launch, it opens and then closes immediately,

Command Output:

too much to put here but I'll put the last bit, if there is a section you're interested in let me know and I'll post it.

  protocol:lockdown socket write: {"Command":"Lookup","ClientOptions":{"BundleIDs":["es.test.app"],"ReturnAttributes":["Path","Container","CFBundleExecutable","CFBundleIdentifier"],"ApplicationsType":"Any"}} +1ms
  protocol:lockdown Response: [{"Status":"Complete","LookupResult":{"es.test.app":{"Container":"/private/var/mobile/Containers/Data/Application/2B3CF21D-87CE-4D9E-A3F6-46FF8CE75B49","CFBundleExecutable":"<app>","Path":"/private/var/containers/Bundle/Application/A0214BDA-AA2A-44B4-BE3E-579DFFDA9502/<app>.app","CFBundleIdentifier":"es.test.app"}}}] +74ms
  client:lockdownd startService: com.apple.debugserver +1s
  protocol:lockdown socket write: {"Request":"StartService","Service":"com.apple.debugserver"} +203ms
  protocol:lockdown Response: {"EnableServiceSSL":true,"Port":62076,"Request":"StartService","Service":"com.apple.debugserver"} +117ms
  client:usbmuxd connectUsbmuxdSocket +1s
  client:usbmuxd connect: 2 on port 62076 +0ms
  protocol:usbmux socket write: {"messageType":"Connect","extraFields":{"DeviceID":2,"PortNumber":31986}} +1s
  protocol:usbmux Response: {"MessageType":"Result","Number":0} +3ms
  client:debugserver Sending command: QSetMaxPacketSize:, args: 1024 +0ms
  protocol:gdb Socket write: QSetMaxPacketSize:, args: 1024 +0ms
  protocol:gdb Response body: $OK#9a +1ms
  protocol:gdb Checksum: 9a, computed checksum: 9a +1ms
  client:debugserver Sending command: QSetWorkingDir:, args: /private/var/mobile/Containers/Data/Application/2B3CF21D-87CE-4D9E-A3F6-46FF8CE75B49 +2ms
  protocol:gdb Socket write: QSetWorkingDir:, args: /private/var/mobile/Containers/Data/Application/2B3CF21D-87CE-4D9E-A3F6-46FF8CE75B49 +0ms
  protocol:gdb Response body: $OK#9a +0ms
  protocol:gdb Checksum: 9a, computed checksum: 9a +0ms
  client:debugserver Sending command: A262,0,2f707269766174652f7661722f636f6e7461696e6572732f42756e646c652f4170706c69636174696f6e2f41303231344244412d414132412d343442342d424533452d3537394446464441393530322f444943555320526564206465204d656469636f7320534c2e6170702f444943555320526564206465204d656469636f7320534c, args:  +1ms
  protocol:gdb Socket write: A262,0,2f707269766174652f7661722f636f6e7461696e6572732f42756e646c652f4170706c69636174696f6e2f41303231344244412d414132412d343442342d424533452d3537394446464441393530322f444943555320526564206465204d656469636f7320534c2e6170702f444943555320526564206465204d656469636f7320534c, args:  +1ms
  protocol:gdb Response body: $OK#9a +0ms
  protocol:gdb Checksum: 9a, computed checksum: 9a +0ms
  client:debugserver Sending command: qLaunchSuccess, args:  +0ms
  protocol:gdb Socket write: qLaunchSuccess, args:  +0ms
  protocol:gdb Response body: $OK#9a +66ms
  protocol:gdb Checksum: 9a, computed checksum: 9a +1ms

Environment Info:

macOS version:

Ionic:

   Ionic CLI                     : 6.1.0 (/Users/me/.config/yarn/global/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 5.0.1
   @angular-devkit/build-angular : 0.801.2
   @angular-devkit/schematics    : 8.3.25
   @angular/cli                  : 8.3.17
   @ionic/angular-toolkit        : 2.1.2

Cordova:

   Cordova CLI       : 9.0.0 ([email protected])
   Cordova Platforms : not available
   Cordova Plugins   : not available

Utility:

   cordova-res (update available: 0.9.0) : 0.8.1
   native-run                            : 0.3.0

System:

   Android SDK Tools : 26.1.1 (/Users/meLibrary/Android/sdk)
   ios-deploy        : 1.10.0
   ios-sim           : 8.0.2
   NodeJS            : v13.7.0 (/usr/local/Cellar/node/13.7.0/bin/node)
   npm               : 6.13.6
   OS                : macOS Mojave
   Xcode             : Xcode 11.3.1 Build version 11C504

Xcode version:

also opened up this ticket

主要言語
TypeScript
スター
139
フォーク
35
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ionic-team/native-run のほかの issue

ionic-team/native-run の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。