ionic-team / native-run

Utility for running native binaries on iOS and Android devices and simulators/emulators
MIT License
127 stars 21 forks source link

app when launched opens and closes instantly #109

Open ctfrancia opened 4 years ago

ctfrancia commented 4 years ago

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 (cordova-lib@9.0.1)
   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

sebastian-zarzycki-apzumi commented 4 years ago

It still happens for 1.2.1. Opens, then instantly closes. Works fine when opened manually afterwards. Works fine when launched from XCode.

flozero commented 1 year ago

I have the same error. It worked and livereload after I run it again directly from xcode but it should jsut work. What are the differences here ?

I am on:

mw-breathesuite commented 1 year ago

Has there been any update to this issue? It seems to be intermittent in my case. I usually have to try livereload 3 or 4 times before one finally works. Also on native-run 1.7.1.