Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app when launched opens and closes instantly #109

Open
ctfrancia opened this issue Feb 21, 2020 · 3 comments
Open

app when launched opens and closes instantly #109

ctfrancia opened this issue Feb 21, 2020 · 3 comments
Labels

Comments

@ctfrancia
Copy link

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

@sebastian-zarzycki-apzumi

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

@flozero
Copy link

flozero commented Nov 26, 2022

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:

  • m1
  • node v16.13.1
  • ionic 6.20.3
  • native-run 1.7.1

@mw-breathesuite
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants