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:
2020-02-12T08:00:00Z
I am having a different issue with the CocoaPods tutorial. I started this yesterday and got as far as the āpod installā command.
After adding:
pod āAlamofireā, ā4.9.1ā
to the Podfile, saving, and closing, and then running
pod install
I got the following output:
th-Kirk-143232073115:begin rjacoby$ pod install (>>My terminal line)
Analyzing dependencies
Adding spec repo trunk with CDN https://cdn.cocoapods.org/
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
2020-07-29 11:59:33.197970-0500 IceCreamShop[2041:69485] Task .<1> finished with error [-1004] Error Domain=NSURLErrorDomain Code=-1004 āCould not connect to the server.ā UserInfo={_kCFStreamErrorCodeKey=61, NSUnderlyingError=0x600000db8900 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 ā(null)ā UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask .<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask .<1>"
), NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=https://eskimo2/Flavors.xml, NSErrorFailingURLKey=https://eskimo2/Flavors.xml, _kCFStreamErrorDomainKey=1}