NSURLSession/NSURLConnection HTTP load failed(kCFsteamErrror DomainSSL,-9824)エラー解決方法を報告します.

672 ワード

ヒントを見つけた時:
  NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9824)
  Error : Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and 
  a secure connection to the server cannot be made."
info.plistに追加:
NSAppTransportSecurity
   
       NSAllowsArbitraryLoads
       
   
図のように: