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 ([email protected])
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
put in your package.json, mainly plugins
GoogleMaps@> 3.1.0 is already installed.
No problem.
{
"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"
]
}
}
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
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
please share your project files on github repository.
Do you have bitbucket account?
Please send me your email address. I will send invitation.
Thanks very much
Please check my profile page.
Thanks, I just sent invitation
Please check and help me
Thanks very much.
$> ionic cordova platform rm ios
$> ionic cordova plugin rm cordova-plugin-googlemaps
$> ionic cordova plugin add [email protected]
// 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

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.
ping
I have the same problem, and that solution didn't work for me.
@vignitres If you want me to help, please share your project files on github.
So I was having the same problem. Running cordova platform add ios --verbose gave the output of:
```[!] CocoaPods could not find compatible versions for pod "GoogleMaps":
In Podfile:
GoogleMaps (~> 3.1.0)
None of your spec sources contain a spec satisfying the dependency: GoogleMaps (~> 3.1.0).
You have either:
pod repo update or with pod install --repo-update.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.
I have the same problem, project build but I got empty element on the page instead GoogleMap.
$> ionic cordova platform rm ios $> ionic cordova plugin rm cordova-plugin-googlemaps $> ionic cordova plugin add [email protected] // 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
Thanks, this works for me, but first I updated cocoapods recommended by @MSeneadza
anyone facing this problem with pod --version 1.8.0.beta.1 ?
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)
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
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 [email protected]
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.
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: https://github.com/CocoaPods/CocoaPods/issues/6223#issuecomment-262277995_