My app which works great under iOS8 no longer runs under iOS9. The problem is that despite having the following in my .plist file:
<key>NSAppTransportSecurity</key>
<dict>
<!--Include to allow all connections (DANGER)-->
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
The following code:
NSURL *targetURL = [NSURL URLWithString:_caseStudyListTitleURL];
NSURLRequest *request = [NSURLRequest requestWithURL:targetURL];
[_myWebView loadRequest:request];
results in the error:
NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)
This of course leads to an empty webView being displayed.
All other NSURLSession Code in the app is functioning correctly.
I am running XCode 7 Beta 3 and iOS 9 on my test iPad.
Any ideas on this would be greatly appreciated!