GoogleMaps SDK classes undeclared type or unresolved identifier

安稳与你 提交于 2019-12-05 18:01:47

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.

Chirag Patel

1.One of the classes has a Testing target and other one doesn't. You have to even include all of your classes in the testing target or none of them. 2.If it's Objective C class, check that the class is in ObjectiveC bridging header file. 3.If it's NSManagedObject subclass. Add @objc(className) before the class declaration. 4.If it's part of a different framework, make sure that the class or function is public

Also see this link: 'Use of Unresolved Identifier' in Swift

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!