findAutocompletePredictionsFromQuery 在 Google Places 的 pod 版本 3.5 中似乎不起作用
findAutocompletePredictionsFromQuery doesn't seem to work in the pod version 3.5 of Google Places
尝试在最新版本上使用 Google Places iOS SDK 时出现此问题。
将 pod 'GooglePlaces', '3.5.0'
添加到您的 pod 文件。
安装 pod 并尝试编译具有 google 个自动完成优先位置的项目。
它将删除以前的 GMSPlacesClient
autocompleteQuery
功能的可用性,但是当搜索找到 here 的替换时,findAutocompletePredictionsFromQuery
也无法使用。
我在 Catalina 上使用 Cocoapods 1.8.4 版。我不认为这是一个环境问题。如果有人知道如何更新到 GooglePlaces 3.5,请告诉我。
他们似乎还没有更新文档。该函数已再次重命名。
你需要做两件事:
1) 导入 GoogleMapsBase
2) 改为使用 findAutocompletePredictions(fromQuery: ...)
尝试在最新版本上使用 Google Places iOS SDK 时出现此问题。
将 pod 'GooglePlaces', '3.5.0'
添加到您的 pod 文件。
安装 pod 并尝试编译具有 google 个自动完成优先位置的项目。
它将删除以前的 GMSPlacesClient
autocompleteQuery
功能的可用性,但是当搜索找到 here 的替换时,findAutocompletePredictionsFromQuery
也无法使用。
我在 Catalina 上使用 Cocoapods 1.8.4 版。我不认为这是一个环境问题。如果有人知道如何更新到 GooglePlaces 3.5,请告诉我。
他们似乎还没有更新文档。该函数已再次重命名。
你需要做两件事:
1) 导入 GoogleMapsBase
2) 改为使用 findAutocompletePredictions(fromQuery: ...)