ionic-team / ionic-team/native-run

app when launched opens and closes instantly

Open
#109 3 comments 1 reaction 0 assignees View on GitHub
ios
Dominant language
TypeScript
Stars
137
Forks
28
PR merge metrics
No merged PRs in 30d

Description

**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/.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":"","Path":"/private/var/containers/Bundle/Application/A0214BDA-AA2A-44B4-BE3E-579DFFDA9502/.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](https://github.com/ionic-team/ionic/issues/20580)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.