使用适用于 IOS 的 Google 代码,描述如下:自动完成
\n\n用户在搜索框中输入第一个字符时,会发生错误:
\n\nError: The operation couldn\xe2\x80\x99t be completed. Operation failed due to an invalid (malformed or missing) API key. See the developer\'s guide (https://developers.google.com/places/ios-sdk/start) for information on creating and using an API key.\ndespite that calls to the API were successful:\nGMS Services Key Valid: true\nGMS Services SDK version: 3.3.0\nGMS Places Key Valid: true\nGMS Places SDK version: 3.3.0\nRun Code Online (Sandbox Code Playgroud)\n\n这是应用程序的跟踪:
\n\n2019-08-17 16:46:52.056351-0400 GPDemo[345:15310] [DYMTLInitPlatform] platform initialization successful\nEntering AppDelegate.swift now...\nSending API key to Google Services …Run Code Online (Sandbox Code Playgroud)