码迷,mamicode.com
首页 > 移动开发 > 详细

虚拟器运行iOS8地图提示错误

时间:2015-10-26 13:46:54      阅读:343      评论:0      收藏:0      [点我收藏+]

标签:

/SourceCache/ProtocolBuffer_Sim/ProtocolBuffer-225/Runtime/PBRequester.m:799 server (https://gsp13-cn.ls.apple.com/localshift) returned error: 504

 Failed to get location shift function: Error Domain=NSURLErrorDomain Code=-1011 "The operation couldn’t be completed. (NSURLErrorDomain error -1011.)" UserInfo=0x7d2d6be0 {PBHTTPStatusCode=504}

PBRequester failed with Error Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo=0x811e4390 {NSErrorFailingURLStringKey=https://gsp13-cn.ls.apple.com/localshift, NSErrorFailingURLKey=https://gsp13-cn.ls.apple.com/localshift, NSLocalizedDescription=The request timed out., NSUnderlyingError=0x7f27d470 "The request timed out."}

Failed to get location shift function: Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo=0x811e4390 {NSErrorFailingURLStringKey=https://gsp13-cn.ls.apple.com/localshift, NSErrorFailingURLKey=https://gsp13-cn.ls.apple.com/localshift, NSLocalizedDescription=The request timed out., NSUnderlyingError=0x7f27d470 "The request timed out."}

 

有可能是因为虚拟器连接不到网络, 而不是代码的问题, 过一会再试就正常了

技术分享

 

所有的错误代码是在对“CFNetwork的错误代码参考” 小提取CFURL和CFURLConnection错误:

 kCFURLErrorUnknown = -998,
 kCFURLErrorCancelled = -999,
 kCFURLErrorBadURL = -1000,
 kCFURLErrorTimedOut = -1001,
 kCFURLErrorUnsupportedURL = -1002,
 kCFURLErrorCannotFindHost = -1003,
 kCFURLErrorCannotConnectToHost = -1004,
 kCFURLErrorNetworkConnectionLost = -1005,
 kCFURLErrorDNSLookupFailed  = -1006,
 kCFURLErrorHTTPTooManyRedirects = -1007,
 kCFURLErrorResourceUnavailable = -1008,
 kCFURLErrorNotConnectedToInternet = -1009,
 kCFURLErrorRedirectToNonExistentLocation = -1010,
 kCFURLErrorBadServerResponse    = -1011,
 kCFURLErrorUserCancelledAuthentication = -1012,
 kCFURLErrorUserAuthenticationRequired = -1013,
 kCFURLErrorZeroByteResource  = -1014,
 kCFURLErrorCannotDecodeRawData  = -1015,
 kCFURLErrorCannotDecodeContentData = -1016,
 kCFURLErrorCannotParseResponse  = -1017,
 kCFURLErrorInternationalRoamingOff = -1018,
 kCFURLErrorCallIsActive    = -1019,
 kCFURLErrorDataNotAllowed    = -1020,
 kCFURLErrorRequestBodyStreamExhausted = -1021,
 kCFURLErrorFileDoesNotExist   = -1100,
 kCFURLErrorFileIsDirectory   = -1101,
 kCFURLErrorNoPermissionsToReadFile = -1102,
 kCFURLErrorDataLengthExceedsMaximum = -1103,

虚拟器运行iOS8地图提示错误

标签:

原文地址:http://www.cnblogs.com/Rinpe/p/4910906.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!