1

我们刚刚开发了一个 iPhone 应用程序,该应用程序具有依赖于 Google 地图的自动完成 API 的功能。该功能适用​​于我们所有的设备,除了一个是带有 5.0.1 操作系统的 iPhone 4。

这是来自 XCode 日志的错误消息:

Aug 20 11:46:47 unknown HenryContainer[158] <Warning>: autocomplete: https://maps.googleapis.com/maps/api/place/autocomplete/json?input=Nor&types=(cities)&components=country:au&sensor=true&key=KEYGOESHERE
Aug 20 11:46:48 unknown timed[313] <Notice>: (Note ) CoreTime: Want active time in 39.25hrs. Need active time in 122.58hrs.

Aug 20 11:46:48 unknown HenryContainer[158] <Warning>: ASIHTTPRequest request_didFail:
Aug 20 11:46:48 unknown HenryContainer[158] <Warning>: ASIHTTPRequest request.url: https://maps.googleapis.com/maps/api/place/autocomplete/json?input=Nor&types=(cities)&components=country:au&sensor=true&key=KEYGOESHERE
Aug 20 11:46:48 unknown HenryContainer[158] <Warning>: ASIHTTPRequest request.delegate: <GooglePlacesService: 0x7c6fbd0>
Aug 20 11:46:48 unknown HenryContainer[158] <Warning>: ASIHTTPRequest request.error: Error Domain=ASIHTTPRequestErrorDomain Code=1 "A connection failure occurred: SSL problem (Possible causes may include a bad/expired/self-signed certificate, clock set to wrong date)" UserInfo=0x3207a0 {NSUnderlyingError=0x7c7d6f0 "The operation couldn’t be completed. (OSStatus error -9800.)", NSLocalizedDescription=A connection failure occurred: SSL problem (Possible causes may include a bad/expired/self-signed certificate, clock set to wrong date)}
Aug 20 11:46:48 unknown HenryContainer[158] <Warning>: ASIHTTPRequest request.postBody: (null)

Aug 20 11:46:58 unknown timed[313] <Notice>: (Note ) CoreTime: Not setting system time to 08/20/2012 01:46:58 from NTP because time is unchanged
Aug 20 11:46:58 unknown timed[313] <Notice>: (Note ) CoreTime: Not setting time zone to Australia/Sydney from NITZ

我检查了手机上的时钟时间,一切都应该是这样。谷歌地图应用程序在这款手机上运行良好,并且没有越狱。该应用程序将有一个相当大的分布,所以我也想知道这也发生在另一部手机上的可能性。我们还多次重新安装了该应用程序。

非常感激任何的帮助。

更新:这似乎影响了 3GS 上的 iOS 5.0。

4

1 回答 1

0

我们已经解决了这个问题,这与 iOS 处理 SSL 的方式有关。

于 2012-09-03T00:04:39.377 回答