2020-02-04 14:45:41.594363+0530 IceCreamShop[40823:2181633] Task <18F11594-D7BD-48ED-8A85-FD6FCCC49031>.<1> finished with error [-1200] Error Domain=NSURLErrorDomain Code=-1200 “An SSL error has occurred and a secure connection to the server cannot be made.” UserInfo={NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorDomainKey=3, NSErrorPeerCertificateChainKey=(
.
.
. _kCFStreamErrorCodeKey=-9802, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <18F11594-D7BD-48ED-8A85-FD6FCCC49031>.<1>, NSURLErrorFailingURLPeerTrustErrorKey=<SecTrustRef: 0x6000031b01b0>, NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made.}
Tried adding these to the info.plist. Still not resolved. Can you help me with this?
Sorry for the delayed response. Were you able to resolve this?
Seems like you have an issue with your certificate. Check out this StackOverflow question that may be helpful for you:
I was able to get the app to run as expected using the Flavors.plist file located at “https://www.raywenderlich.com/downloads/Flavors.plist”. As a test, I copied that file to my SQL Server and am not able to download. I am new to iOS development, but it appears to be connection issue, so my question is, how do I grant access to server via code? Here’s the stack: 2020-07-29 11:59:33.177899-0500 IceCreamShop[2041:69486] [] nw_socket_handle_socket_event [C1.1:3] Socket SO_ERROR [61: Connection refused]
2020-07-29 11:59:33.178409-0500 IceCreamShop[2041:69486] [BoringSSL] nw_protocol_boringssl_handshake_negotiate_proceed(726) [0x7fc3894230c0] handshake failed at state 0
2020-07-29 11:59:33.180541-0500 IceCreamShop[2041:69486] Connection 1: received failure notification