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

The request was denied by service delegate (SBMainWorkspace) for reason: Unspecified. #79

Open hijoncon opened 5 years ago

hijoncon commented 5 years ago

Native-Run 0.2.8

Running live reload in iOS not working. It will open the simulator and it will show the splash screen and it exited. Any help?
> native-run ios --app platforms/ios/build/device/MyApp.ipa --target F2E77350-7564-4B14-8568-C6C12AD616A0 --forward 8101:8101
[native-run] ERR_UNKNOWN: There was an error launching app on simulator: An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1):
[native-run] The request to open "com.y****o.k******n" failed.
[native-run] The request was denied by service delegate (SBMainWorkspace) for reason: Unspecified.
[native-run] Underlying error (domain=FBSOpenApplicationErrorDomain, code=1):
[native-run]    The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 1.)
[native-run]
[ERROR] An error occurred while running subprocess native-run.

        native-run ios --app platforms/ios/build/device/MyApp.ipa --target F2E77350-7564... exited with exit code 1.
Ionic:

   Ionic CLI                     : 5.4.1 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.10.0
   @angular-devkit/build-angular : 0.801.3
   @angular-devkit/schematics    : 8.1.3
   @angular/cli                  : 8.1.3
   @ionic/angular-toolkit        : 2.0.0

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : ios 5.0.1
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.1, (and 6 other plugins)

Utility:

   cordova-res : 0.6.0
   native-run  : 0.2.8

System:

   ios-deploy : 1.9.4
   ios-sim    : 8.0.2
   NodeJS     : v11.13.0 (/usr/local/Cellar/node/11.13.0/bin/node)
   npm        : 6.11.3
   OS         : macOS Mojave
   Xcode      : Xcode 11.0 Build version 11A420a
macOS version: macOS Mojave
Xcode version: Xcode 11.0 Build version 11A420a
geoFlux commented 5 years ago

I have the same problem. It started yesterday. I reinstalled Xcode, and that fixed it for a little while. But today it started happening again. I have worked around the issue for now by adding the --no-native-run flag to the ionic command. But I also had to update cordova-ios to the latest nightly release.

hijoncon commented 5 years ago

@dwieeb is there a solid solution for this issue?

tlancina commented 5 years ago

hey @hijoncon just a few questions for you:

I have run in to this once or twice during testing, but it is very rare and re-running always seems to work. I did some digging and found some mention that it might be a timing issue between simulator tools, but it's tough to fix without knowing more. Any info you can give us will help, thanks!