zoukankan      html  css  js  c++  java
  • 虚拟器运行iOS8地图提示错误

    /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,
  • 相关阅读:
    IIS服务器SSL证书安装 (pfx文件不能直接运行时)
    .NET Core创建Worker Services
    1.初步了解IOC容器
    1.Configuration
    2.第一个Codefirst实例
    安装Mysql
    2.我的第一个小程序(获取用户信息--包括敏感信息)
    1.什么是微信小程序
    Repeater的使用
    1.MVC的初步了解
  • 原文地址:https://www.cnblogs.com/Rinpe/p/4910906.html
Copyright © 2011-2022 走看看