Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

641
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!