Use of undeclared type 'GMSPlacesClient'

tornic picture tornic · Jul 28, 2016 · Viewed 8.2k times · Source

I'm trying to implement Google Auto complete service and, I get this message:

Use of undeclared type 'GMSPlacesClient'

I imported Google Maps module and it works with GMSMapView... I don't understand what is happening. Does anyone have the same error?
This is a picture of the error:

ErrorImage

ErrorImage

Thank you very much!

Answer

Crazy Developer picture Crazy Developer · Aug 10, 2016

I have also face the same issue. To resolve this I have add pod GooglePlaces in my pod file and update the pod.

Also you need to replace import import GoogleMaps To import GooglePlaces