Fabric failed to download settings Error Domain=FABNetworkError Code=-5

16,500

Solution 1

I found what was wrong. I tried to use the old interface for the crash reports long ago and I have forgotten the script I have placed in Target/Build Phases. When I removed it, everything was fine.

Solution 2

I ran into this problem when I migrated Fabric Crashlytics to Firebase Crashlytics. If you are migrating you need to make sure that you keep the old initialisation logic i.e. make sure that you still have the old initialisation code:

// Objective-C
[FIRApp configure];
[Fabric with:@[CrashlyticsKit]]; // I had removed the this line

// Swift 4
FirebaseApp.configure()
Fabric.with([Crashlytics.self])

You also need to make sure to retain API Key and Build secret in the run script and keep the API Key in your Info.plist.

I had mistakenly removed these things after following the Firebase (non-migration) installation instructions.

Here's a link to the official installation instructions

Solution 3

I had my Crashliticy linked to Fabric. That deactivates crashlytics. Under the Firebase project settings I unlinked crashlytics from fabric. Then logout/login again. Then Crashlytics started with the installation process.

Solution 4

I solved the problem by adding the API key to the Info.plist . enter image description here

 <key>Fabric</key>
  <dict>
    <key>APIKey</key>
    <string>your_api_key</string>
    <key>Kits</key>
    <array>
      <dict>
        <key>KitInfo</key>
        <dict/>
        <key>KitName</key>
        <string>Crashlytics</string>
      </dict>
    </array>
  </dict>

Solution 5

If you have this issue when using Firebase it's because Crashlytics won't be activated until you follow the configuration process in Firebase console :

  1. in Firebase console, click on Crashlytics link on the left panel
  2. follow the steps until it ask you to run the application
Share:
16,500
Student
Author by

Student

Updated on June 08, 2022

Comments

  • Student
    Student about 2 years

    I am trying to install Fabric into my iOS app but when I am on the last stage of verifying that everything works, I get this error inside xcode console:

    [Fabric] failed to download settings Error Domain=FABNetworkError Code=-5 "(null)" UserInfo={status_code=403, type=2, request_id=d123378449cf900e4574e283ae438bc5, content_type=application/json; charset=utf-8}

    The Fabric application which helps me install Fabric displays the error:

    Hmmm, seems like your kit isn't activating.

    This is the code I use to initialise Fabric:

    [Fabric with:@[[Crashlytics class]]];
    

    inside didFinishLaunchingWithOptions delegate method.

    Some suggested that there is no internet connection when you have this problem, but I am sure that my pc and device are connected to the internet.

    I really don't know what to do, any help will be appreciated.