"The certificate for this server is invalid. You might be connecting to a server that is pretending to be “**************.com

Getting error while making a call from ios simulator .. This is happening only on ios simulator but same connection works fine from the mobile. Event when I open https://google.com on safari on ios simulator, it throws This connection is not private

2022-06-18 21:41:57.534885-0400 EventTrackerDemo[38468:3017232] Connection 10: default TLS Trust evaluation failed(-9807) 2022-06-18 21:41:57.534977-0400 EventTrackerDemo[38468:3017232] Connection 10: TLS Trust encountered error 3:-9807 2022-06-18 21:41:57.535056-0400 EventTrackerDemo[38468:3017232] Connection 10: encountered error(3:-9807) 2022-06-18 21:41:57.535561-0400 EventTrackerDemo[38468:3017232] Task .<4> HTTP load failed, 0/0 bytes (error code: -1202 [3:-9807]) 2022-06-18 21:41:57.537985-0400 EventTrackerDemo[38468:3016915] Task .<4> 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 “.com, NSErrorPeerCertificateChainKey=( "<cert(0x1500c1400) s: xxxxxxxxxx.xxxxx.com i: Zscaler Intermediate Root CA (zscalertwo.net) (t) >", "<cert(0x1500c0c00) s: Zscaler Intermediate Root CA (zscalertwo.net) (t) i: Zscaler Intermediate Root CA (zscalertwo.net)>", "<cert(0x1500bfa00) s: Zscaler Intermediate Root CA (zscalertwo.net) i: Zscaler Root CA>" ), NSErrorClientCertificateStateKey=0, NSErrorFailingURLKey=https://.com/, NSErrorFailingURLStringKey=https://*****.com/, NSUnderlyingError=0x60000265d200 {Error Domain=kCFErrorDomainCFNetwork Code=-1202 "(null)" UserInfo={_kCFStreamPropertySSLClientCertificateState=0, kCFStreamPropertySSLPeerTrust=<SecTrustRef: 0x6000019ac000>, _kCFNetworkCFStreamSSLErrorOriginalValue=-9807, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9807, kCFStreamPropertySSLPeerCertificates=( "<cert(0x1500c1400) s: .com i: Zscaler Intermediate Root CA (zscalertwo.net) (t) >", "<cert(0x1500c0c00) s: Zscaler Intermediate Root CA (zscalertwo.net) (t) i: Zscaler Intermediate Root CA (zscalertwo.net)>", "<cert(0x1500bfa00) s: Zscaler Intermediate Root CA (zscalertwo.net) i: Zscaler Root CA>" )}}, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask .<4>" ), _kCFStreamErrorCodeKey=-9807, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask .<4>, NSURLErrorFailingURLPeerTrustErrorKey=<SecTrustRef: 0x6000019ac000>, NSLocalizedDescription=The certificate for this server is invalid. You might be connecting to a server that is pretending to be “.****.com” which could put your confidential information at risk.}