1

I've used CocoaPods to import GoogleMaps to my project:

pods 'GoogleMaps'

Then I tried to import <GoogleMaps/GoogleMaps.h> and use the GMSAutocompleteViewController but it does not exist in the project!

I'm trying to implement the delegate GMSAutocompleteViewControllerDelegate, but it is nowhere to be found.

Can someone explain why?

computingfreak
  • 4,939
  • 1
  • 34
  • 51
ytpm
  • 4,962
  • 6
  • 56
  • 113
  • does the include work at all? does your project have custom frameworks that don't come from Pods? – Daij-Djan Mar 01 '16 at 07:08
  • This is a good search path. Set in the Pod config generated: FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/GoogleMaps/Frameworks" – Daij-Djan Mar 01 '16 at 07:08

3 Answers3

1

Well this is somewhat old question but actually i have faced same problem. i have done some research and then i found that version of google SDK was 1.10.3, and in that SDK there was no any controller like GMSAutocompleteViewController

so only thing to do update the latest version of google map SDK.

i have tried this pods 'GoogleMaps' but it does not update latest version it always update 1.10.3.

then finally i have tried giving version in pod file like this pod ‘GoogleMaps’ ,‘ ~> 1.13.2’ now problem is solved.

Mad Burea
  • 531
  • 8
  • 22
0

Try to use @import GoogleMaps instead of <GoogleMaps/GoogleMaps.h>, see google's documentation for more instructions

Google ios map guide

hope this helps !

Starlord
  • 313
  • 1
  • 9
0

Google updated the maps api and has split into 2. Add pod 'GooglePlaces' to your pod file and then add

@import GooglePlaces;

tjay
  • 21
  • 2