This is the error that occurs. when I run the application on iPhone simulator. I ran that on iPhone simulator, when app is open I try to login at they time this error show default TLS Trust evaluation failed(-9813) TLS Trust encountered error 3:-9813 encountered error(3:-9813) Task .<1> HTTP load failed, 0/0 bytes (error code: -1202 [3:-9813]) Task .<1> finished with error [-1202] Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “localhost” which could put your confidential information at risk." UserInfo={NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorDomainKey=3, NSErrorPeerCertificateChainKey=( "<cert(0x7ff6f28cce00) s: localhost i: localhost>" ), NSErrorClientCertificateStateKey=0, NSErrorFailingURLKey=https://localhost:5001/token/RegisterDevice, NSErrorFailingURLStringKey=https://localhost:5001/token/RegisterDevice, NSUnderlyingError=0x600000cc4ae0 {Error Domain=kCFErrorDomainCFNetwork Code=-1202 "(null)" UserInfo={_kCFStreamPropertySSLClientCertificateState=0, kCFStreamPropertySSLPeerTrust=<SecTrustRef: 0x600003394960>, _kCFNetworkCFStreamSSLErrorOriginalValue=-9813, _kCFStreamErrorDomainKey