自从升级到Xcode 9(因此Swift 4),我的Mapbox框架在控制台中出现了新的错误,尽管在模拟器和设备上完美运行。我不知道这些错误是由于升级后才显示在控制台上,还是与升级有冲突。这些错误是什么意思,如何解决?
2017-09-19 17:08:30.581029-0700 Sconewolf[424:41561] Task <A0F6DE13-B42F-4EF9-88F7-3152B15872CD>.<3> finished with error - code: -999
2017-09-19 17:08:30.581804-0700 Sconewolf[424:41305] Task <2F8EA368-3840-4882-AF01-9790EE5ACF14>.<1> HTTP load failed (error code: -999 [1:89])
2017-09-19 17:08:30.583470-0700 Sconewolf[424:41310] Task <2F8EA368-3840-4882-AF01-9790EE5ACF14>.<1> finished with error - code: -999
2017-09-19 17:08:30.584892-0700 Sconewolf[424:41305] Task <FCA978A6-9C44-4BF6-A817-7CD8565A9416>.<4> finished with error - code: -999
2017-09-19 17:08:30.585156-0700 Sconewolf[424:41305] Task <DCF01078-A70B-44B7-8D70-EF3603EB643A>.<5> finished with error - code: -999
2017-09-19 17:08:30.585398-0700 Sconewolf[424:41305] Task <37C791ED-8F97-4493-A34F-42621D33EE1F>.<2> finished with error - code: -999
2017-09-19 17:08:30.585440-0700 Sconewolf[424:41310] Task <37C791ED-8F97-4493-A34F-42621D33EE1F>.<2> HTTP load failed (error code: -999 [1:89])
2017-09-19 17:08:30.587078-0700 Sconewolf[424:41305] Task <0679FDC8-90C2-4B91-A623-7FBF1C859BEF>.<6> finished with error - code: -999
2017-09-19 17:08:30.587105-0700 Sconewolf[424:41561] Task <0679FDC8-90C2-4B91-A623-7FBF1C859BEF>.<6> HTTP load failed (error code: -999 [1:89])
cancel
方法取消URLSessionTask
时,我看到相同的日志,我猜测是Mapbox在取消任务/请求。我不确定如何禁用这些日志。 - oliveroneill