ionic-team / ionic-native-google-maps

Google maps plugin for Ionic Native
Other
221 stars 125 forks source link

Failed to install 'cordova-plugin-googlemaps': undefined CordovaError: Promise rejected with non-error ionic3? #185

Closed kapilSoni101 closed 5 years ago

kapilSoni101 commented 5 years ago

I'm submitting a ... (check one with "x")

If you choose 'problem or bug report', please select OS: (check one with "x")

cordova information: (run $> cordova plugin list)

insert the output from the command here

Current behavior: I have to add the platform as well as add google map in ionic3 but i got error after add platform ios.

Expected behavior: I have to add paltform as well as load google map.

Related code, data or error log (please format your code or data):

> cordova platform add ios --save
Using cordova-fetch for cordova-ios@~4.5.4
Adding ios project...
iOS project created with cordova-ios@4.5.5
Installing "cordova-plugin-actionsheet" for ios
Installing "cordova-plugin-advanced-http" for ios
Plugin dependency "cordova-plugin-file@6.0.1" already fetched, using that version.
Installing "cordova-plugin-file" for ios
Installing "cordova-plugin-camera" for ios
Installing "cordova-plugin-datepicker" for ios
Installing "cordova-plugin-document-viewer" for ios
Plugin "cordova-plugin-file" already installed on ios. Making it top-level.
Installing "cordova-plugin-file-transfer" for ios
Plugin dependency "cordova-plugin-file@6.0.1" already fetched, using that version.
Dependent plugin "cordova-plugin-file" already installed on ios.
Installing "cordova-plugin-filepath" for ios
Installing "cordova-plugin-firebase" for ios
Installing "cordova-plugin-geolocation" for ios
Installing "cordova-plugin-googlemaps" for ios
Failed to install 'cordova-plugin-googlemaps': undefined
CordovaError: Promise rejected with non-error: 
    at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:30:15)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)
[ERROR] An error occurred while running subprocess cordova.

Ionic:

   ionic (Ionic CLI)  : 4.6.0 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.1.0

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : android 7.1.4, ios 4.5.5
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 1.2.1, (and 19 other plugins)

System:

   NodeJS : v8.12.0 (/usr/local/bin/node)
   npm    : 6.4.1
   OS     : macOS Sierra
   Xcode  : Xcode 9.1 Build version 9B55
wf9a5m75 commented 5 years ago

It seems your xcode is too old

kapilSoni101 commented 5 years ago

@wf9a5m75 what i do sir for resolve above error?

wf9a5m75 commented 5 years ago

You should try to upgrade Xcode at least.

kapilSoni101 commented 5 years ago

Ok sir ..but any another solution for fix this error without upgrade Xcode ?

wf9a5m75 commented 5 years ago

Did you try to reinstall the cordova-plugin-googlemaps plugin by command line?

kapilSoni101 commented 5 years ago

Yes sir i have tried 3 times but during add platform same error multiple time?

wf9a5m75 commented 5 years ago
$> cordova platform rm ios
$> cordova plugin rm cordova-plugin-googlemaps
$> cordova platform add ios
$> cordova plugin add cordova-plugin-googlemaps ...
kapilSoni101 commented 5 years ago

Sir it is compulsory to use above commands with ionic.like Ionic cordova

wf9a5m75 commented 5 years ago

Please do your best. I'm not your free Q&A service.

kapilSoni101 commented 5 years ago

@w9a5m75..why ur close this issue.my issue is not resolved