cordova-plugin-googlemaps: 'GoogleMaps/GoogleMaps.h' file not found
I’m submitting a … (check one with “x”)
- question
- any problem or bug report
OS: (check one with “x”)
- Android
- iOS
- Browser
cordova information: (run $> cordova plugin list)
com.unarin.cordova.beacon 3.7.0 "Proximity Beacon Plugin"
cordova-android-play-services-gradle-release 1.4.1 "cordova-android-play-services-gradle-release"
cordova-android-support-gradle-release 1.4.2 "cordova-android-support-gradle-release"
cordova-custom-config 4.0.2 "cordova-custom-config"
cordova-plugin-admobpro 2.31.6 "AdMob Plugin Pro"
cordova-plugin-app-event 1.2.1 "Application Events"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-camera 4.0.3 "Camera"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-crosswalk-webview 2.4.0 "Crosswalk WebView Engine"
cordova-plugin-customurlscheme 4.3.0 "Custom URL scheme"
cordova-plugin-datepicker 0.9.3 "DatePicker"
cordova-plugin-device 2.0.1 "Device"
cordova-plugin-dialogs 2.0.1 "Notification"
cordova-plugin-email-composer 0.8.3 "EmailComposer"
cordova-plugin-extension 1.5.4 "Cordova Plugin Extension"
cordova-plugin-flashlight 3.2.0 "Flashlight"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-globalization 1.11.0 "Globalization"
cordova-plugin-googlemaps 2.4.6 "cordova-plugin-googlemaps"
cordova-plugin-image-picker 1.1.1 "ImagePicker"
cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.1.2 "cordova-plugin-ionic-keyboard"
cordova-plugin-iroot 0.8.0 "iRoot"
cordova-plugin-mock-location-checker 1.0.1 "MockLocationChecker"
cordova-plugin-multi-window 0.0.3 "cordova-plugin-multi-window"
cordova-plugin-nativestorage 2.2.2 "NativeStorage"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-touchid 0.4.0 "Touch ID"
cordova-plugin-transport-security 0.1.2 "App Transport Security"
cordova-plugin-vibration 2.1.1 "Vibration"
cordova-plugin-whitelist 1.2.3-dev "Whitelist"
cordova-plugin-x-socialsharing 5.1.3 "SocialSharing"
cordova-sqlite-storage 0.7.14 "Cordova sqlite storage plugin"
de.appplant.cordova.plugin.local-notification 0.8.4 "LocalNotification"
org.devgeeks.Canvas2ImagePlugin 0.6.0 "Canvas 2 Image"
phonegap-plugin-barcodescanner 7.1.2 "BarcodeScanner"
phonegap-plugin-push 1.8.4 "PushPlugin"
If you use @ionic-native/google-maps, please tell the package.json (only @ionic-native/core and @ionic-native/google-maps are fine mostly)
@ionic-native/core :
@ionic-native/google-maps :
Current behavior:
Expected behavior:
Screen capture or video record:

About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 47 (17 by maintainers)
Congrats, guys.
Ok, let’s make a conclusion. Regarding of the reports, the following steps should solve this problem.
If the above steps does not work, try this:
I thank you for the plugin; we use this as one of the core plugins for our app. But you should not be introducing breaking changes on the minor version change… If you now require Cocoapods you should make the version 2.5.1 after 2.4.4. Not 2.4.5 after 2.4.4. These updates cause a world of pain for developers using it.
cocoapodis the official supported way ofcordova cli(sincecordova-cli 6.4.0andios 4.3.0) Everyone should have it, and should work it. Even on Windows, Visual Studio support it.So switching the
installing from git repotococoapodis not a breaking change. Main code is not changed at all.Here is how to install
cocoapodhttps://stackoverflow.com/a/25257238/697856And if you already
cocoapodis installed, yourcocoapodis older version. You need to upgrade it.Here is another document. https://developers.google.com/ios/guides/cocoapods
I don’t know why Google Maps not install when install your plugin. I try any way to install Google Maps. But not work.
Not work ‘GoogleMaps/GoogleMaps.h’ file not found
Only way to install Google Maps via Pod I need remove iOS Platform and add iOS Platform back
I see Google Maps is installing when Add Platform but if just remove plugin and reinstall plugin Google Maps not install
I don’t know why
cordova requirements
ionic info
Stack
Installation Source
Plugins
Remove Plugin (2.4.4)
Install Plugin (2.4.6)
This worked for me:
I think I found the culprit, I miss the part of running
pod updatewithin theplatform/iosdirectory. With that being done now the issue is resolved. Thanks again @wf9a5m75 .yes I know I open .xcworkspace file but all day it not work. I check a Podfile no GoogleMaps line
but now I have
pod 'GoogleMaps', '~> 2.7.0'in PodfileAfter I see
pod 'GoogleMaps', '~> 2.7.0'I know Goole Maps will install 😆 and yes it installed lolThank you for any support.
If you want to open your project with
xcode, you need to open(your project).xcworkspacefile, not(your project).xcodeprojfile.IT WORK
I don’t know why again lol but now just remove and install plugin version 2.4.6 Google Maps is installed via Pods
WHY? in a day not work -*-
I lost all day to fix this
and now I don’t know why it work lol
Although this problem is already solved, and it is not a bug of this plugin, I keep this thread is open for other people for a while.
Yes this step will solve this problem.
After addd platform iOS. In (your project)/platforms/ios/ Podfile must have
pod 'GoogleMaps', '~> 2.7.0'line. And GoogleMaps in Pods folderI try to update plugin in another project 2.4.4 -> 2.4.6 after first project work. it work fine
@iPMisterX Same here. I’ve been banging away at this all day and all of a sudden a removing of the iOS platform (for the 10th+ time today) and re-adding fixed the issue. Maybe an endpoint was down? Either way, resolved guys. TY for the support.
CocoaPods : 1.5.3
I guess I should just ask. Does anyone have this working on iOS 12 using Xcode 10 on Mojave? If it’s a yes then I can figure it out I’m sure.