自 2 天前以来,一个或一些 SKMaps/Skobbler 地图服务器似乎已关闭。这只是我还是更多的人正在经历这种情况?如果只是我,我将不胜感激如何解决这个问题。
我正在将我的 iOS 应用程序从 SKMaps Framework 版本 2.5.1 更新到 3.0。其中还包括更新的地图。我的应用程序使用 3.0. 然后我也开始将我的应用程序更新到 Swift 3.0 并更新到 Xcode 8.0。从那以后一直无法让它工作。它运行,但地图服务器似乎无法访问。我不确定对 Swift3/Xcode8 的更新是否是原因。
** 更新:我现在尝试不更新地图版本(所以继续使用 201504 地图)并且一切正常。所以它似乎与更新到 Swift3/Xcode8 无关。似乎 201604 地图的地图服务器正在运行。**
上周确认了一些地图服务器问题,但已解决。不确定该问题是否再次发生?
基本上我的应用程序此时无用。无法下载元数据,无法检索/显示在线地图图块,无法下载离线地图包,搜索不起作用,在线路线计算不起作用等。
这是最能说明问题的控制台日志。我在尝试使用离线地图区域下载 JSON 时得到这个:
[AnyHashable("Content-Type"): application/xml, AnyHashable("Connection"): keep-alive, AnyHashable("Date"): Wed, 21 Sep 2016 17:51:58 GMT, AnyHashable("X-Amz-Cf-Id"): zBW5kFdCN-9fhZnpj8WyeL7CCx2eEEixO9BPIDGbyJHxqAuFa8gf9Q==, AnyHashable("Transfer-Encoding"): Identity, AnyHashable("Server"): AmazonS3, AnyHashable("Via"): 1.1 01448657fc099ab201797422a6a02be2.cloudfront.net (CloudFront), AnyHashable("X-Cache"): Error from cloudfront]
当尝试在框架初始化时下载元文件时,我得到了这个:
the resource not found: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/roads
offline mode, the resource cannot be downloaded: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/roads
the resource not found: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/attributes
offline mode, the resource cannot be downloaded: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/attributes
the resource not found: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/elevations
offline mode, the resource cannot be downloaded: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/elevations
the resource not found: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/version.txt
offline mode, the resource cannot be downloaded: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/version.txt
the resource not found: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/bikeAttributes
offline mode, the resource cannot be downloaded: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/bikeAttributes
the resource not found: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/shapes
offline mode, the resource cannot be downloaded: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/shapes
the resource not found: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/pois
offline mode, the resource cannot be downloaded: /Users/guido/Library/Developer/CoreSimulator/Devices/1CF279C5-7F13-4379-A1C2-268C290D0B56/data/Containers/Data/Application/44D9119E-6DF3-4133-92F0-DF738199826B/Library/Caches/maps/v1/20160426/meta/pois
我确定我有连接并且我确定我处于在线模式,因为这是我的框架初始化代码:
let initSettings: SKMapsInitSettings = SKMapsInitSettings()
initSettings.mapDetailLevel = SKMapDetailLevel.Light // Same thing if I change this to .Full
initSettings.connectivityMode = SKConnectivityMode.Online
initSettings.showConsoleLogs = true
SKMapsService.sharedInstance().initializeSKMapsWithAPIKey(SKMapsAPIKey, settings: initSettings)