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

cordova-plugin-googlemaps depends on GoogleMaps@> 2.7.0, which conflicts with another plugin. GoogleMaps@> 3.1.0 is already installed and was not overwritten. #2612

Closed
ghost opened this issue May 9, 2019 · 22 comments

Comments

@ghost
Copy link

ghost commented May 9, 2019

My ionic info
Ionic:

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

Cordova:

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, (and 10 other plugins)

System:

ios-deploy : 1.9.4
ios-sim : 8.0.1
NodeJS : v10.15.2 (/usr/local/bin/node)
npm : 6.4.1
OS : macOS Mojave
Xcode : Xcode 10.2.1 Build version 10E1001

I can see this error when I follow run command
"ionic cordova platform add ios"

cordova-plugin-googlemaps depends on GoogleMaps@> 2.7.0, which conflicts with another plugin. GoogleMaps@> 3.1.0 is already installed and was not overwritten.
Failed to install 'cordova-plugin-googlemaps': undefined

CordovaError: Promise rejected with non-error: 'Version should contain only numbers and dots'
at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:29:15)
at process._tickCallback (internal/process/next_tick.js:68:7)

Please help me

@ghost ghost changed the title I can`t build ios xcode project with new cordova-plugin-googlemaps 2.6.2 cordova-plugin-googlemaps depends on GoogleMaps@> 2.7.0, which conflicts with another plugin. GoogleMaps@> 3.1.0 is already installed and was not overwritten. May 9, 2019
@vosecek
Copy link

vosecek commented May 9, 2019

put in your package.json, mainly plugins

@wf9a5m75
Copy link
Member

wf9a5m75 commented May 9, 2019

GoogleMaps@> 3.1.0 is already installed.

No problem.

@ghost
Copy link
Author

ghost commented May 10, 2019

{
"name": "XXXXXXX",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"start": "ionic-app-scripts serve",
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint"
},
"dependencies": {
"@angular/animations": "5.2.11",
"@angular/common": "5.2.11",
"@angular/compiler": "5.2.11",
"@angular/compiler-cli": "5.2.11",
"@angular/core": "5.2.11",
"@angular/forms": "5.2.11",
"@angular/http": "5.2.11",
"@angular/platform-browser": "5.2.11",
"@angular/platform-browser-dynamic": "5.2.11",
"@ionic-native/badge": "^4.16.0",
"@ionic-native/core": "~4.15.0",
"@ionic-native/geolocation": "^4.16.0",
"@ionic-native/google-maps": "^4.15.1",
"@ionic-native/launch-navigator": "^4.17.0",
"@ionic-native/splash-screen": "~4.15.0",
"@ionic-native/status-bar": "~4.15.0",
"@ionic/storage": "^2.2.0",
"@types/googlemaps": "^3.30.16",
"cordova-android": "7.1.4",
"cordova-browser": "5.0.4",
"cordova-ios": "^5.0.1",
"cordova-plugin-actionsheet": "^2.3.3",
"cordova-plugin-badge": "^0.8.7",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-dialogs": "^2.0.1",
"cordova-plugin-geolocation": "^4.0.1",
"cordova-plugin-googlemaps": "^2.6.2",
"cordova-plugin-ionic-keyboard": "^2.1.3",
"cordova-plugin-ionic-webview": "^2.2.0",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-whitelist": "^1.3.3",
"cordova-sqlite-storage": "^2.5.0",
"ionic-angular": "3.9.2",
"ionic-pullup": "^3.0.1",
"ionicons": "3.0.0",
"jquery": "^3.3.1",
"moment": "^2.22.2",
"rxjs": "5.5.11",
"sw-toolbox": "3.6.0",
"uk.co.workingedge.phonegap.plugin.launchnavigator": "^4.2.2",
"zone.js": "0.8.26"
},
"devDependencies": {
"@ionic/app-scripts": "^3.2.1",
"@ionic/lab": "1.0.18",
"typescript": "~2.6.2"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-whitelist": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-keyboard": {},
"cordova-plugin-geolocation": {
"GEOLOCATION_USAGE_DESCRIPTION": "To locate you"
},
"uk.co.workingedge.phonegap.plugin.launchnavigator": {},
"cordova-plugin-badge": {},
"cordova-plugin-googlemaps": {
"API_KEY_FOR_ANDROID": "AIzaSyCsm9ekTa_Q6m1ERo9JV2cS7jJLASHVNO00si",
"API_KEY_FOR_IOS": "AIzaSyCsm9ekTa_Q6m1ERo9JV2cS7jJLASHVNO00si",
"PLAY_SERVICES_VERSION": "15.0.1",
"ANDROID_SUPPORT_V4_VERSION": "27.+",
"LOCATION_WHEN_IN_USE_DESCRIPTION": "This app wants to get your location while this app runs only.",
"LOCATION_ALWAYS_USAGE_DESCRIPTION": "This app wants to get your location always, even this app runs in background."
},
"cordova-sqlite-storage": {}
},
"platforms": [
"android",
"browser",
"ios"
]
}
}

@wf9a5m75
Copy link
Member

Remove @types/googlemaps. This is not related with this plugin.

And API keys have to put into config.xml file, not --variable parameters since v2.6.0.
https://github.com/mapsplugin/cordova-plugin-googlemaps#api-key-android-and-ios-platforms

@ghost
Copy link
Author

ghost commented May 11, 2019

Thanks I removed @types/googlemaps., and Added

Google Api Keys

But staill same issue

cordova-plugin-googlemaps depends on GoogleMaps@> 2.7.0, which conflicts with another plugin. GoogleMaps@> 3.1.0 is already installed and was not overwritten.
Failed to install 'cordova-plugin-googlemaps': undefined

CordovaError: Promise rejected with non-error: 'Version should contain only numbers and dots'
at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:29:15)
at process._tickCallback (internal/process/next_tick.js:68:7)

Please help me

@wf9a5m75
Copy link
Member

please share your project files on github repository.

@ghost
Copy link
Author

ghost commented May 11, 2019

Do you have bitbucket account?
Please send me your email address. I will send invitation.
Thanks very much

@wf9a5m75
Copy link
Member

Please check my profile page.

@ghost
Copy link
Author

ghost commented May 11, 2019

Thanks, I just sent invitation
Please check and help me
Thanks very much.

@wf9a5m75
Copy link
Member

$> ionic cordova platform rm ios
$> ionic cordova plugin rm cordova-plugin-googlemaps
$> ionic cordova plugin add cordova-plugin-googlemaps@2.6.2

// Add your api keys into config.xml
https://github.com/mapsplugin/cordova-plugin-googlemaps#api-key-android-and-ios-platforms

// might need this command
$>npm i --save cordova-common

$> ionic cordova platform add ios@5

$> ionic cordova build ios

Screen Shot 2019-05-20 at 4 18 23 PM

@wf9a5m75
Copy link
Member

And I think your API key does not allow to use Google Maps APIs.

You need to enable Google Maps SDK for Android and Google Maps SDK for iOS, then re-generate your api key.

@wf9a5m75
Copy link
Member

ping

@VectorBandit
Copy link

I have the same problem, and that solution didn't work for me.

@wf9a5m75
Copy link
Member

@vignitres If you want me to help, please share your project files on github.

@MSeneadza
Copy link

So I was having the same problem. Running cordova platform add ios --verbose gave the output of:

  In Podfile:
    GoogleMaps (~> 3.1.0)

None of your spec sources contain a spec satisfying the dependency: `GoogleMaps (~> 3.1.0)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

So I ran pod repo update which succeeded but then told me:

CocoaPods 1.7.0 is available.
To update use: `sudo gem install cocoapods`

I was on version 1.5.3 of cocoapods, so I updated to 1.7.0 and then adding the iOS platform worked. It still gave this message: cordova-plugin-googlemaps depends on GoogleMaps@~> 2.7.0, which conflicts with another plugin. GoogleMaps@~> 3.1.0 is already installed and was not overwritten. but in this case it wasn't fatal. The platform finished installing and my app builds and runs just fine.

@IvanMakarenko
Copy link

I have the same problem, project build but I got empty element on the page instead GoogleMap.

@diegofcornejo
Copy link

$> ionic cordova platform rm ios
$> ionic cordova plugin rm cordova-plugin-googlemaps
$> ionic cordova plugin add cordova-plugin-googlemaps@2.6.2

// Add your api keys into config.xml
https://github.com/mapsplugin/cordova-plugin-googlemaps#api-key-android-and-ios-platforms

// might need this command
$>npm i --save cordova-common

$> ionic cordova platform add ios@5

$> ionic cordova build ios

Screen Shot 2019-05-20 at 4 18 23 PM

Thanks, this works for me, but first I updated cocoapods recommended by @MSeneadza

@leabdalla
Copy link

anyone facing this problem with pod --version 1.8.0.beta.1 ?

@gbrits
Copy link

gbrits commented Aug 28, 2019

I have tried everything suggested, in countless threads and I am running into this issue still, myself.

Installing "cordova-plugin-googlemaps" for ios
"framework" tag with type "podspec" is deprecated and will be removed. Please use the
 "podspec" tag.
cordova-plugin-googlemaps depends on GoogleMaps@~> 2.7.0, which conflicts with anothe
r plugin. GoogleMaps@~> 3.1.0 is already installed and was not overwritten.
Failed to install 'cordova-plugin-googlemaps': undefined
CordovaError: Promise rejected with non-error: 'Version should contain only numbers a
nd dots'
    at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:29:15)
    at process._tickCallback (internal/process/next_tick.js:68:7)

@gbrits
Copy link

gbrits commented Aug 28, 2019

anyone facing this problem with pod --version 1.8.0.beta.1 ?

I was facing this problem on cocoapods-1.8.0.beta.2 - reverting to 1.7.5 seemed to fix the issues. I also utilized my own fork removing the framework tag but that probably just got rid of the warning notice and nothing more. Thanks @wf9a5m75 for your patience and work on this project.

sudo gem uninstall cocoapods
sudo gem install cocoapods -n /usr/local/bin

@mmestica
Copy link

The solution above works but i found a weird issue that misled me to install and uninstall plugins and others... Here is a fresh app following the right versions of plugin and cordova-ios:

$ ionic cordova platform add ios@5
> cordova platform add ios@5
Using cordova-fetch for cordova-ios@5
Adding ios project...
Creating Cordova project for the iOS platform:
        Path: platforms/ios
        Package: io.ionic.starter
        Name: MyApp
iOS project created with cordova-ios@5.0.1
Installing "cordova-plugin-googlemaps" for ios
"framework" tag with type "podspec" is deprecated and will be removed. Please use the "podspec" tag.
cordova-plugin-googlemaps depends on GoogleMaps@~> 2.7.0, which conflicts with another plugin. GoogleMaps@~> 3.1.0 is already installed and was not overwritten.
Running command: pod install --verbose

      Official document https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.3.0/README.md Please consider to buy a beer for us 🍺 https://github.com/mapsplugin/cordova-plugin-googlemaps#buy-us-a-beer
    
Plugin 'cordova-plugin-whitelist' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-statusbar' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-device' found in config.xml... Migrating it to package.json

...

Now, when the app name has an apostrophe, like for example: Marlon's App, it still shows the warning and followed by an error.

"framework" tag with type "podspec" is deprecated and will be removed. Please use the "podspec" tag.
cordova-plugin-googlemaps depends on GoogleMaps@~> 2.7.0, which conflicts with another plugin. GoogleMaps@~> 3.1.0 is already installed and was not overwritten.
Running command: pod install --verbose
Failed to install 'cordova-plugin-googlemaps': Error: pod: Command failed with exit code 1
    at ChildProcess.whenDone (..map-app/node_modules/cordova-common/src/superspawn.js:135:23)
    at ChildProcess.emit (events.js:197:13)
    at maybeClose (internal/child_process.js:984:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
pod: Command failed with exit code 1
[ERROR] An error occurred while running subprocess cordova.
        
        cordova platform add ios@5 exited with exit code 1.
        
        Re-running this command with the --verbose flag may provide more information.

The error reporting sequence is misleading and i think its important that others are aware of this. There could be other error similar to that apostrophe.

@GitToTheHub
Copy link

I followed the hints to manually install cocoapods via sudo gem install cocoapods but got the following error, when trying to re-add the ios-platform

The CocoaPods repo has not been synced yet, this will take a long time (approximately 500MB as of Sept 2016). Please run pod setup first to sync the repo.

I found an issue about this in the CocoaPods-Project and the solution is to really manually install it with git clone: CocoaPods/CocoaPods#6223 (comment)_

@wf9a5m75 wf9a5m75 mentioned this issue Oct 7, 2019
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants