使用未声明类型'GMSPlacesClient'

tor*_*nic 8 google-maps ios google-places swift

我正在尝试实施Google Auto完整服务,我收到此消息:

使用未声明类型'GMSPlacesClient'

我导入了Google Maps模块,它可以与GMSMapView一起工作......我不明白发生了什么.有没有人有同样的错误?
这是错误的图片:

ErrorImage

ErrorImage

非常感谢你!

Cra*_*per 18

我也面临同样的问题.为了解决这个问题,我GooglePlaces在pod文件中添加了pod 并更新了pod.

您还需要替换导入import GoogleMapsimport GooglePlaces


tor*_*nic 8

我发现了这个问题.谷歌将他的API分为两部分.上一版本将Maps API与Maps SDK分开(自2.0.0版 - 2016年7月26日起).您可以在发行说明中找到它:https://developers.google.com/places/ios-api/releases?hl = es