Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GoogleMaps SDK classes undeclared type or unresolved identifier

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 ?

enter image description here

like image 285
meteorSD Avatar asked Feb 07 '23 10:02

meteorSD


1 Answers

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.

like image 50
meteorSD Avatar answered Feb 11 '23 00:02

meteorSD