iOS Google Places API 적용 시 invalid api key 오류
현상
API 키 발급 이후에 적용시켜서 실행시켰으나,
GMSAutocompleteViewController 실행 시에 검색도 안되고 아래의 오류 메시지만 발생했다.
Operation failed due to an invalid (malformed or missing) API key.
해결
가이드에 있는 1. 의 billing 을 설정하면 된다. (References 1)
역시 스택오버플로우는 최고다. (References 2)
References
developers.google.com/maps/documentation/places/ios-sdk/start
Get Started | Places SDK for iOS | Google Developers
Follow the steps in this guide to download the Places SDK for iOS, to add the library and its dependencies to your app, and to get a free API key. Release notes are available for each release. Step 1: Get the latest version of Xcode To build a project usin
developers.google.com
Operation failed due to an invalid (malformed or missing) API key
Using the Google code for IOS described at: autocomplete At the first character entered by the user in the search box, an error occurs: Error: The operation couldn’t be completed. Operation fail...
stackoverflow.com
또 다른 문제가 있는데 이것은 m1 때문에 그런 것 같다고 구글링이 알려줬고 로제타로 xcode 를 열어서 하면 해결된다고 하길래
일단 그렇게 하는 중인데 메시지가 사라지는 것 같지는 않다.
google places failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817