I\'m trying to connect my iOS app to an HTTPS Rails app which is currently run on a local host in my network. I can access the site from my browser with https://myIP:3
If I understood well, Apple now wants the developers to use HTTPS and TLS 1.2 for network calls.
Temporary, you can add this in your "Info.plist" file :
NSAppTransportSecurity
NSAllowsArbitraryLoads
Just have a look to this link, it may also help you : http://ste.vn/2015/06/10/configuring-app-transport-security-ios-9-osx-10-11/
--
Update : Following some comments the above solution is not anymore working. Here is an updated solution.
Info.plist
file.Dictionary
and of Key App Transport Security Settings
.Boolean
, of Key Allow Arbitrary Loads
and of Value YES
-
Otherwise you can set Domain Exceptions
. This is how to do :
Info.plist
file.Dictionary
and of Key App Transport Security Settings
.Dictionary
and of Key Exception Domains
.Dictionary
and of Key The domain
.Boolean
and of Key NSExceptionAllowsInsecureHTTPLoads
& NSIncludesSubdomains
with Value to YES
.Links
https://forums.developer.apple.com/message/5857#5857
2015 WWDC Session 711
iOS 9 HTTP Connection Error - StackOverflow