iOS 9 Parse update questions

102 Views Asked by At

I have an app that uses parse and ever since updating to iOS 9 it doesn't pull any data but rather gives me this error message over and over again...

[Error]: The resource could not be loaded because the App Transport Security policy requires the use of a secure connection. (Code: 100, Version: 1.8.2)

I've noticed that libz.dylib and libsqlite3.dylib are in red, I'm not sure if that has anything to do with it.

Side note: in a different project I tried to add those frameworks but they no longer exist so I went to add other, then did CMD shift G, then put in '/usr/lib', and grabbed them from there, the libsqlite3 worked fine but the libz.dylib automatically changed to libz.1.dylib when I added it.

Any ideas? Thank you!

3

There are 3 best solutions below

3
picciano On

You may need to add a security exception in your info.plist file. Some combination of the keys below should solve it.

enter image description here

2
PabloLerma On

You have to follow the App Transport Security requirements specified in https://developer.apple.com/library/prerelease/ios/technotes/App-Transport-Security-Technote/

As a quick fix, you can add the following in your Info.plist:

<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>

This code will disable App Transport Security.

0
picciano On

Your red dylib entries are another issue, most likely unrelated to the Transport Security policy error.

Try removing the libraries and relinking to the equivalent .tbd files instead.

enter image description here