With the version 2 release of the Maps SDK for iOS, the Places SDK for iOS has been split from the Maps SDK for iOS and is now distributed as a separate CocoaPod.
Take the following steps to update your existing apps:
- Update your Podfile to reference the
GooglePlacesCocoaPod in addition to theGoogleMapsCocoaPod. If you are not using the Maps SDK for iOS, you can removeGoogleMaps. - If you are using the place picker, update your Podfile to reference the
GooglePlacePickerCocoaPod in addition toGooglePlaces. - Rename
GoogleMapstoGooglePlacesin all imports where you are using the Places API. - Specify your API key using
GMSPlacesClient.provideAPIKey(_:)instead ofGMSServices.provideAPIKey(_:). - Get the required open source license text using
GMSPlacesClient.openSourceLicenseInfo()as well asGMSServices.openSourceLicenseInfo()if you are using the Maps SDK for iOS or the Place Picker.
Your API key will continue to work as usual.
For manual SDK installation instructions, see Get Started with the Places API for iOS.