ionic-team / native-run

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

ionic cordova run ios: show nice error message if you have to trust the certificate in the phone settings #68

Open pablomaurer opened 5 years ago

pablomaurer commented 5 years ago

Version: 0.2.7

Description:

Command Output:

** EXPORT SUCCEEDED **

> native-run ios --app "platforms/ios/build/device/MIA Playground.ipa" --device
[native-run] ERR_UNKNOWN: There was an error launching app: ESecurity

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 (cordova-lib@9.0.1)
   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 10.14.5
   Xcode      : Xcode 10.2.1 Build version 10E1001
pungggi commented 5 years ago

Yes @pablomaurer that was exactly it! ;)

gregoiremotot commented 5 years ago

Solution from Xcode

Verify the Developer App certificate for your account is trusted on your device. Open Settings on iPhone and navigate to General -> Device Management, then select your Developer App certificate to trust it.

Internal launch error: process launch failed: Security