I have Application Transport Security set up and working correctly for my iOS app. I make a request to a third party web service that support TLSv1.1 and not v1.2. Everything works great in my iOS app. When I run my unit tests (with XCTestCase) that test the web service they fail with "Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." I tried adding my ATS exceptions to my Test Target and I still get the SSL error. Does anyone know how to configure Xcode Unit Tests to work with ATS security exceptions?
Also, I am running this in the simulator.
Aucun commentaire:
Enregistrer un commentaire