I want to use google map to existing(not a new one) iPhone project.Now i am using Google map ios sdk and i successfully added google map framework to my project.But i got er
I've been struggling with this issue for hours; I'm using CocoaPods, Swift and Xcode 6.1.1. I followed all the steps for including GoogleMaps in my project carefully, tried many different things like removing symbolic links in the downloaded package or manually linking the binaries in build phases or trying #include "GoogleMaps.h"
, #include "GoogleMaps/GoogleMaps.h"
and "#include <GoogleMaps/GoogleMaps.h>
in my bridge file, none of that worked... Finally used CocoaPods instead of including the framework myself and it worked! Hope it helps someone out there:
In the Podfile:
pod 'Google-Maps-iOS-SDK', '~> 1.9.2'
And in your Bridge file:
#import "GoogleMaps.h"
I solved my issue
You need to do this
Following information for getting framework search paths
Good luck
You can also : - remove GoogleMaps from Podfile - pod install - add GoogleMaps to your Podfile again - pod install
This solution works for me, you can also check the search paths a well.
I encountered a scenario in which I had to import a project that was using Google Maps and noticed the same problem - module: "Google Maps" not found. To solve this problem it was necessary to delete Podfile.lock and Podfile folder and re-install the pods again. Good luck !
my problem was fixed by adding in:
build settings
Framework Search Paths
clickable and add the following lines:
"${PODS_ROOT}/GoogleMaps/Base/Frameworks"
"${PODS_ROOT}/GoogleMaps/Maps/Frameworks"
Maybe it'll be useful for anybody, next steps helped me: 1. Delete "Headers" and "GoogleMaps" folders manually (from the Finder). 2. Run 'pod install' 3. Re-build the project in Xcode.