Entonces, estoy tratando de hacer Firebase Remote Config en iOS y estoy usando el simulador de iOS. Xcode 13.2.1
el codigo es basicamente este
func call() { let remoteCOnfig = RemoteConfig.remoteConfig() remoteCOnfig.fetchAndActivate { status, error in print(" status \(status)") print(" error \(error)") } }Intento ejecutar el código y obtengo el siguiente error.
2022-02-16 19:48:05.099832+0530 SampleRemoteControl[31572:311771] Connection 2: default TLS Trust evaluation failed(-9813) 2022-02-16 19:48:05.100002+0530 SampleRemoteControl[31572:311771] Connection 2: TLS Trust encountered error 3:-9813 2022-02-16 19:48:05.100114+0530 SampleRemoteControl[31572:311771] Connection 2: encountered error(3:-9813) 2022-02-16 19:48:05.100601+0530 SampleRemoteControl[31572:311752] Task <1418AE13-A2C1-4F14-84CF-8339E7581426>.<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 “firebaseinstallations.googleapis.com” which could put your confidential information at risk." UserInfo={NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorDomainKey=3, NSErrorPeerCertificateChainKey=( "<cert(0x7f918f042a00) s: *.googleapis.com i: ca.rak.goskope.com>", "<cert(0x7f918f042000) s: ca.rak.goskope.com i: certadmin>", "<cert(0x7f918f043200) s: certadmin i: certadmin>" ), NSErrorClientCertificateStateKey=0, NSErrorFailingURLKey=https://firebaseinstallations.googleapis.com/v1/projects/sample-remote-config-app/installations/, NSErrorFailingURLStringKey=https://firebaseinstallations.googleapis.com/v1/projects/sample-remote-config-app/installations/, NSUnderlyingError=0x600003fb9f80 {Error Domain=kCFErrorDomainCFNetwork Code=-1202 "(null)" UserInfo={_kCFStreamPropertySSLClientCertificateState=0, kCFStreamPropertySSLPeerTrust=<SecTrustRef: 0x6000000c8f00>, _kCFNetworkCFStreamSSLErrorOriginalValue=-9813, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9813, kCFStreamPropertySSLPeerCertificates=( "<cert(0x7f918f042a00) s: *.googleapis.com i: ca.rak.goskope.com>", "<cert(0x7f918f042000) s: ca.rak.goskope.com i: certadmin>", "<cert(0x7f918f043200) s: certadmin i: certadmin>" )}}, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <1418AE13-A2C1-4F14-84CF-8339E7581426>.<1>" ), _kCFStreamErrorCodeKey=-9813, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <1418AE13-A2C1-4F14-84CF-8339E7581426>.<1>, NSURLErrorFailingURLPeerTrustErrorKey=<SecTrustRef: 0x6000000c8f00>, NSLocalizedDescription=The certificate for this server is invalid. You might be connecting to a server that is pretending to be “firebaseinstallations.googleapis.com” which could put your confidential information at risk.}Vi TLS y revisé mi Info.plist. se establece como
<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict>Estoy perdido ahora. Que esta causando este error ?