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

9

16

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.

Adriel answered 10/5, 2018 at 9:32 Comment(5)
Do you have any other crash reporting tool integrated to your project?Hydrostatics
No only Fabric and CrashlyticsAdriel
Wrong APIKey can also cause this error.Rathe
In my case it was not set crashlytics in firebase, i needed to press "this app is new to crashlytics" and 403 was goneCorkscrew
@MyMomSaysIamSpecial Where do you have to press this?Placido
A
7

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.

Adriel answered 18/5, 2018 at 10:33 Comment(5)
it doesn't work please give more details. i followed the below steps and getting error on console firebase.google.com/docs/crashlytics/get-startedCorker
I too am having this problem, I've followed the instructions in the link above. When I build and run my app in release it installs but never starts running from xcode. stopping with [Fabric] failed to download settings Error Domain=FABNetworkError Code=-5 "(null)" UserInfo={status_code=403, type=2, request_id=8d1613386c0b74a2cb3cb6a5de14b8fe, content_type=application/json; charset=utf-8} as the last line in the console.Ywis
I try delete build phases and add again, after that everything was fine.Polymerization
Worked for me as well I too had to delete build phases and add again.Rotenone
Worked for me as well, deleting build phases run script and add it again.Toupee
B
6

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

Boohoo answered 2/5, 2019 at 5:2 Comment(0)
N
4

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.

Nonparous answered 27/10, 2018 at 8:29 Comment(2)
Can you please give more details? I do have the same error. What I did: in project setting in Firebase console ("Integration" tab) I have unlinked Fabric. And now it just shows nothing in Crashlytics tab in the firebase =(.Placido
This fixed my problem, more info:Libyan
E
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>
Engedi answered 24/4, 2019 at 11:33 Comment(1)
Worth noting is that the fabric config needs to be at the top of the .plist. I tried placing it as the last entry which I now bitterly regret.Tight
P
2

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
Pirozzo answered 22/5, 2019 at 0:8 Comment(1)
This - I wasted tons of time not following the pathway set out in the firebase console. This resolved the issue for me.Conflict
E
1

With XCode 10 under the RunScript section you have to add the following line to Input Files:

$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)

Electrolyze answered 10/7, 2019 at 6:31 Comment(3)
I also added this for Xcode 11; not sure if its required for v11 or not; but I managed to get things working simply by following @Pirozzo 's instructions aboveGyve
This worked for Xcode 11.2.1 (11B53), Crashlytics (3.14.0), Fabric (1.10.2). You just have to wait for like 2 3 mins once you make call to the server.Antichrist
This answer is documented by Google here: firebase.google.com/docs/crashlytics/…Kowalski
U
1

I know, that it is something strange, but for me solution was to run on simulator.

All suggest above not worked for me.

1) Start initializing app in Console -> Crashlytics

2) Do all necessary things (run script phase etc)

3) Run on simulator

After installation is completed, I can see all my test crashes in console from device.

Unchaste answered 24/12, 2019 at 7:19 Comment(0)
L
1

@Marc Fdn solution fixed my problem:

  1. Open https://console.firebase.google.com/

  2. Project overview > Project Settings

    Project overview > Project Settings

  3. In the Integrations Tab, click Manage and delete the Fabric integration

    enter image description here

  4. Go back to the Firebase/Crashlitics page and re-add your app, the webpage may show several loading errors, probably Firebase needs a bit of time for update the data, don't worry, wait a bit and continue to refresh.

Libyan answered 30/12, 2019 at 15:1 Comment(1)
Thanks for the best solution in the worldGreensickness
T
0

Do you have any ad blocking software setup on your network? cause that's what caused this error for me.

Treenware answered 28/2, 2020 at 7:41 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.