NSURLSession/NSURLConnection HTTP load failed on iOS 9

前端 未结 13 1409
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 05:20

Tried to run my existing app on iOS9 but getting failure while using AFURLSessionManager.

__block NSURLSessionDataTask *task = [self.sessionMana         


        
13条回答
  •  渐次进展
    2020-11-22 06:07

    If you're having this problem with Amazon S3 as me, try to paste this on your info.plist as a direct child of your top level tag

    NSAppTransportSecurity
    
        NSExceptionDomains
        
            amazonaws.com
            
                  NSThirdPartyExceptionMinimumTLSVersion
                  TLSv1.0
                  NSThirdPartyExceptionRequiresForwardSecrecy
                  
                  NSIncludesSubdomains
                  
            
            amazonaws.com.cn
            
                  NSThirdPartyExceptionMinimumTLSVersion
                  TLSv1.0
                  NSThirdPartyExceptionRequiresForwardSecrecy
                  
                  NSIncludesSubdomains
                  
            
        
    
    

    You can find more info at:

    http://docs.aws.amazon.com/mobile/sdkforios/developerguide/ats.html#resolving-the-issue

提交回复
热议问题