如何使用pod获取最新的GoogleMaps SDK [英] How to get latest GoogleMaps SDK using pods
问题描述
- 我正在尝试Google地方的sdk示例。我使用
pod尝试GoogleMaps
- 我使用cocoapods安装GoogleMaps(1.10.5)
来源'
他们为什么不同?样本中的一个似乎是一个更好的版本,但由豆荚给出的不是最新版本?它甚至不在更新日志中
解决方案运行
pod更新GoogleMaps
。除非明确运行pod update
或更新podspec以要求更新版本,否则Cocoapods不会更新您已下载的pod版本。请参阅 https://guides.cocoapods.org/using/pod-install- vs-update.html 了解更多详情。
- I'm trying out the google places sdk sample. I installed it using
pod try GoogleMaps
- I installed GoogleMaps (1.10.5) using cocoapods
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.1'
pod 'GoogleMaps'
checking the GoogleMaps in both steps, the one in the sample (1) contains more headers like GMSAutocompleteTableDataSource.h
Why are they different? The one in the sample seems to be a better version but the one given by pods is not the latest? Its not even in the changelog
解决方案Run
pod update GoogleMaps
. Cocoapods won't update the version of a pod you've already downloaded unless you explicitly runpod update
or update the podspec to require a newer version. See https://guides.cocoapods.org/using/pod-install-vs-update.html for more details.这篇关于如何使用pod获取最新的GoogleMaps SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!