Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

649
Vistas
SSL connection error in Firebase Remote Config in iOS simulator

So I am trying to do Firebase Remote Config in iOS and am using iOS simulator. Xcode 13.2.1

The code is basically this

func call() {
        let remoteCOnfig = RemoteConfig.remoteConfig()
        remoteCOnfig.fetchAndActivate { status, error in
            
            print(" status \(status)")
            print(" error \(error)")
        }
    }

I try to run the code, and get the following 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.}

I saw TLS and checked my Info.plist. It is set as

<key>NSAppTransportSecurity</key>
    <dict>
        <key>NSAllowsArbitraryLoads</key>
        <true/>
    </dict>

I am at loss now. What is causing this error ?

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda