未迅速启用iOS版Places API [英] The Places API for iOS is not enabled in swift

查看:81
本文介绍了未迅速启用iOS版Places API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为相同的ApiKey启用了PlacesApi仍然出错

I have enabled PlacesApi for same ApiKey still got error

UserInfo = {NSLocalizedFailureReason =未启用iOS的Places API.请参阅开发人员指南( https://developers.google.com/places/ios/start),了解如何启用iOS版Google Places API.

UserInfo={NSLocalizedFailureReason=The Places API for iOS is not enabled. See the developer's guide (https://developers.google.com/places/ios/start) for how to enable the Google Places API for iOS.

请帮助我解决此错误.

推荐答案

请在您的Podfile中检查您的GooglePlaces版本.

Please check your GooglePlaces version in your Podfile.

我遇到了同样的问题,并且在Podfile中的版本从2.7.0更新到3.0.3后可以正常工作

I was having the same issue and it works after updating the version in Podfile from 2.7.0 to 3.0.3

  pod 'GooglePlaces', '= 3.0.3'
  pod 'GooglePlacePicker', '= 3.0.3'
  pod 'GoogleMaps', '= 3.0.3'

安装GoogleMaps 3.0.3(原为2.7.0)

Installing GoogleMaps 3.0.3 (was 2.7.0)

安装GooglePlaces 3.0.3(原为2.7.0)

Installing GooglePlaces 3.0.3 (was 2.7.0)

刚注意到文档中有一个注释,其中指出:

Just noticed there's a note in the documentation which states:

重要提示:从2019年1月29日起,不推荐使用Place Picker. 该功能将于2019年7月29日关闭,并且不再 在该日期之后可用. 继续使用位置选择器 在整个弃用期内,请不要迁移到新的SDK, 且请勿在您的Google Cloud中禁用iOS的Places SDK for iOS服务 这样,平台项目也会禁用位置选择器".

IMPORTANT: The Place Picker is deprecated as of January 29, 2019. This feature will be turned off on July 29, 2019, and will no longer be available after that date. To continue using the Place Picker through the deprecation period, do NOT migrate to the new SDK yet, and do NOT disable the Places SDK for iOS service in your Google Cloud Platform project, as doing so will also disable the Place Picker.

这篇关于未迅速启用iOS版Places API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆