The Places API for iOS is not enabled in swift
Please check your GooglePlaces version in your Podfile.
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'
Installing GoogleMaps 3.0.3 (was 2.7.0)
Installing GooglePlaces 3.0.3 (was 2.7.0)
Just noticed there's a note in the documentation which states:
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.
The Places API for iOS is not enabled error
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'
Installing GoogleMaps 3.0.3 (was 2.7.0)
Installing GooglePlaces 3.0.3 (was 2.7.0)
Just noticed there's a note in the documentation which states:
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.
Apparently it's not working now although it mentioned that it will be turned off on July 29, 2019. Perhaps I need to revert the code to use the prior version.
Places API not enabled for iOS even if it's already enabled
Ok Asmin, so i run into the same issue this morning so i feel obligated to answer since i solved it after 5 hours! So the issue is with the pod version. GooglePlaces 2.7.0 is deprecated however when you run pod install
2.7.0 is what is installed not the present 3.0.2. Once i realized that, this is what i did. I opened the terminal, cd to my project folder and run pod update
, or better yet pod update --verbose
so i can see what's happening. Well, it worked!! The pods got updated to 3.0.2 and now everything works fine. Yaay! I love/hate programming!!
NB: anyway, if you try it and it doesn't work, then run update repo
, and repeat pod update
.
You have my word; it's going to work
Google Places for iOS version 3
Turns out Google changed things without being terribly obvious.
In my case, I used to have the "Places SDK for iOS" restriction added on the API key, but the new stuff requires the "Places API" restriction.
Related Topics
Including Zeros in Front of an Integer
"Unexpectedly Found Nil While Unwrapping an Optional Value" When Retriveing Pffile from Parse.Com
Disable Email Detection in Swiftui's Text
Store Data in Custom Class Array in Core Data
How to Move a Model and Generate Its Collision Shape at the Same Time
Alamofireimage How to Clean Memory and Cache
Xcode 7.1 Beta: Content of File Error
How to Make Text Typed in Textfield Undeletable
No Such Module Crashlytics - Pod Seems to Be Missing
Value' Is Inaccessible Due to 'Internal' Protection Level
Equivalent of Skaction Scaletox for a Given Duration in Unity
How to Filter Nsarray in Swift
Cannot Stop Background Music from Within Game Scenes, Swift 3/Spritekit
Nsurl Fail Able Initialiser Initwithstring: Does Not Return Nil on Empty String in Swift
Can the Byte Order of Double Be Safely Reversed
Unexpectedly Found Nil While Unwrapping an Optional Value While Reading from Ds with Fromcstring
How to Pass Closure as a Parameter in Perform(Selector, Withobject)