I am using cocoapods to import libraries.
I just updated my pods and since then some of the GoogleMaps SDK classes are not available anymore. For example GMSAutocompletePrediction or GMSPlacesClient labeled as "use of undeclared type" and "use of unresolved identifier". I have tried to remove the GoogleMaps pods and then to reinstall it but it didnt work. Even though, some classes are still usable, like GMSAddress for example.
I noticed that GoogleMaps was not one of the target in the Pods project of my workspace, could it be related to my problem ?
I finally found the solution. In fact since the new update of GoogleMaps I also have to import GooglePlaces to use the classes "GMSAutocompleterPrediction", "GMSPlaces"...
I don't understand why I didnt have to do that before.
Edit : So to solve this problem you only have to add "GooglePlaces" to your project, and then import it everywhere you need to use these classes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With