In my case, one of the keys was skipped when adding the ATS match flag
<key>NSAppTransportSecurity</key>
Instead of the correct one as shown below
<true/> <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoadsInWebContent</key> <true/> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSExceptionDomains</key> <dict> <key>some-service1.com</key> <dict> <key>NSExceptionAllowsInsecureHTTPLoads</key> <false/> </dict> <key>some-service2.com</key> <dict> <key>NSExceptionAllowsInsecureHTTPLoads</key> <false/> </dict> </dict> </dict>
I had this
<dict> <key>NSAllowsArbitraryLoadsInWebContent</key> <true/> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSExceptionDomains</key> <dict> <key>some-service1.com</key> <dict> <key>NSExceptionAllowsInsecureHTTPLoads</key> <false/> </dict> <key>some-service2.com</key> <dict> <key>NSExceptionAllowsInsecureHTTPLoads</key> <false/> </dict> </dict> </dict>
Although some of the online XML validators did say that the XML files were correct (which was not), I used
plutil filename.plist
go to the directory where the plist file is present (from the terminal) and find out the exact line number in which there were problems
Naishta May 31 '17 at 11:55 2017-05-31 11:55
source share