Bartłomiej Semańczyk Bartłomiej Semańczyk - 4 years ago 90
iOS Question

AFNetworking works for iOS8, but doesn't work for iOS9

What might be wrong if my class responsible for connection works when I run on simulator with

, but it is not going to work with simulator on
. What is the reason?

Answer Source

If you are loading a non-https URL using AFNetworking, you need to add an App Transport Security override in your info.plist file like this:


You can also add overrides for specific domains, which is a better approach. More info here:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download