首页 > 更新到iOS9.1之后,地图定位开始报错

更新到iOS9.1之后,地图定位开始报错

如题,在- (void)locationManager:(CLLocationManager )manager didUpdateLocations:(NSArray )locations方法中用自带的获取城市名的方法
CLGeocoder *clGeoCoder = [[CLGeocoder alloc] init];

CLGeocodeCompletionHandler handle = ^(NSArray *placemarks,NSError *error)
{

NSLog(@"aa %@",placemarks);//placemarks直接为空
}

之前一直用得好好的,现在时不时placemarks为空,有时又不为空。还报了下面这个错
/BuildRoot/Library/Caches/com.apple.xbs/Sources/ProtocolBuffer_Sim/ProtocolBuffer-242/Runtime/PBRequester.m:807 server (https://gsp13-cn.ls.apple.com/localshift) returned error: 504
不知道是不是和iOS9仅支持https请求有关,我在info.plist文件里面配置的是暂时不支持https请求,任然用的http请求。
求大神解答。。。


你试着支持https请求没有呢?看出错信息是和https请求相关。


NSAppTransportSecurity
NSAllowsArbitraryLoads 是这样配置的吗

【热门文章】
【热门文章】