I'm getting NSURLConnection finished with error - code -1022 error after cleaning the project and building it for the first time, and also when uploaded to the TestFlight.
In NSAppTransportSecurity properties NSAllowsArbitraryLoads is set to true. I also tried adding exceptional domains, but none fixes the issue.
Also, it is weird that everything works fine after running the app for the second time from XCode after cleaning the project.
What can be the reason for this issue?