I get the notorious bug NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)in iOS 9. I don't want to add a global exception, but for certain domains.
NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
How do I know which URL is causing this error?
When you call the NSURLConnection or NSURLSessionTask delegate processing method, get the URL from the request object and print it using NSLog (or just put the debug checkpoint in this method).
CFNETWORK_DIAGNOSTICS 1 ( 2 3), (, ).
CFNETWORK_DIAGNOSTICS @dgatwood setenv("CFNETWORK_DIAGNOSTICS", "3", 1);, , main.m. , - , :
setenv("CFNETWORK_DIAGNOSTICS", "3", 1);
2014-10-28 14: 23: 37.115 QTestbed [2626: 60b] CFNetwork, :/private/var/mobile/Applications/76531F40-3291-4565-8C75-0438052C83BC/Library/Logs/CrashReporter/CFNetwork_com.example.apple-samplecode.QTestbed_2626.nwlrb.log
.
Apple Q & A.
Source: https://habr.com/ru/post/1606360/More articles:How can I protect classes, features, and implementation-level objects from the public Scala APIs? - visibilitySwift: changing the background color in the selected segment UISegmentControl - swiftЗадача настройки кармы/жасмина с помощью Angular - angularjsС# Определить метод переопределения в разных сборках - c#How to do Regexp validation in jQuery for 4x35 multiline text - jquerydifferent versions of php - phphow to search for the second value in the same line - mysqlLock Node in Script - javascriptSending a lot of POST data, in xampp ok, in plesk is out of order - postThe Beacon background service is sometimes killed with Android - androidAll Articles