我已经合并了以下内容:
- 尝试通过桥接头 导入文件
GoogleMaps/GoogleMaps.h
和文件GoogleMapsM4B/GoogleMaps.h
Obj-C
AppDelegate.swift (didFinishLaunchingWithOptions)
在我的方法中手动输入 iOS API 密钥。- 清理项目(command+shift+k)
- 关闭/重新启动 Xcode
- 卸载/重新安装 Xcode
几乎所有其他人都建议过。我已经花了两天时间试图解决这个问题。有谁知道这个问题的解决方案?
控制台投诉是:
> "2015-08-17 18:02:19.899 Project[608:10014] ClientParametersRequest > failed, 3 attempts remaining (0 vs 6). Error > Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be > completed. (com.google.HTTPStatus error 400.)" UserInfo=0x790bc050 > {data=<CFData 0x7925cb40 [0x22da9a8]>{length = 145, capacity = 256, > bytes = 0x3c48544d4c3e0a3c484541443e0a3c54 ... 3c2f48544d4c3e0a}} > 2015-08-17 18:02:19.899 randoPracty[608:10014] Google Maps SDK for iOS > (M4B) version: 1.10.17867.0 2015-08-17 18:02:19.959 > randoPracty[608:10014] ClientParametersRequest failed, 2 attempts > remaining (0 vs 6). Error Domain=com.google.HTTPStatus Code=400 "The > operation couldn’t be completed. (com.google.HTTPStatus error 400.)" > UserInfo=0x7925cf40 {data=<CFData 0x79187b20 [0x22da9a8]>{length = > 145, capacity = 256, bytes = 0x3c48544d4c3e0a3c484541443e0a3c54 ... > 3c2f48544d4c3e0a}} 2015-08-17 18:02:24.406 randoPracty[608:10014] > ClientParametersRequest failed, 1 attempts remaining (0 vs 6). Error > Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be > completed. (com.google.HTTPStatus error 400.)" UserInfo=0x790f4c60 > {data=<CFData 0x786e5610 [0x22da9a8]>{length = 145, capacity = 256, > bytes = 0x3c48544d4c3e0a3c484541443e0a3c54 ... 3c2f48544d4c3e0a}} > 2015-08-17 18:02:32.797 randoPracty[608:10014] ClientParametersRequest > failed, 0 attempts remaining (0 vs 6). Error > Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be > completed. (com.google.HTTPStatus error 400.)" UserInfo=0x7925b390 > {data=<CFData 0x790f3760 [0x22da9a8]>{length = 145, capacity = 256, > bytes = 0x3c48544d4c3e0a3c484541443e0a3c54 ... 3c2f48544d4c3e0a}} > 2015-08-17 18:02:32.797 randoPracty[608:10014] Google Maps SDK for iOS > (M4B) cannot connect or validate APIKey: Error > Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be > completed. (com.google.HTTPStatus error 400.)" UserInfo=0x7925b390 > {data=<CFData 0x790f3760 [0x22da9a8]>{length = 145, capacity = 256, > bytes = 0x3c48544d4c3e0a3c484541443e0a3c54 ... 3c2f48544d4c3e0a}} > 2015-08-17 18:02:32.798 randoPracty[608:10014] Your key may be invalid > for your bundle ID: com.User.ProjectName"