Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get latest GoogleMaps SDK using pods

  1. I'm trying out the google places sdk sample. I installed it using

pod try GoogleMaps

  1. 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

enter image description here

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

like image 655
Ted Avatar asked Jan 06 '16 10:01

Ted


2 Answers

Run pod update GoogleMaps. Cocoapods won't update the version of a pod you've already downloaded unless you explicitly run pod update or update the podspec to require a newer version. See https://guides.cocoapods.org/using/pod-install-vs-update.html for more details.

like image 148
spiv Avatar answered Oct 21 '22 13:10

spiv


I checked the latest podspec

I just need to set the version to the latest

e.g

pod 'GoogleMaps', '~> 2.5.0'

like image 23
Ted Avatar answered Oct 21 '22 14:10

Ted