Fabric API key not valid
Asked Answered
P

2

6

I am trying to install Fabric to my iOS app. I downloaded the Fabric app to install Crashlytics but when I add the run script in build phase provided by the app, after I build the project I get the error:

line 2: 1:myfirebaseid:ios:myfirebaseid=1:my:app:id: command not found Fabric.framework/run 1.7.0 (208) error: Fabric: Configuration Issue

Fabric API key not valid. Your Fabric run script build phase should contain your API key: ./Fabric.framework/run INSERT_YOUR_API_KEY INSERT_YOUR_BUILD_SECRET

Some answers suggested removing Fabric from plist which I did and the error got away. But later, I wasn't able to complete the installation of Fabric and I think that is the reason. So where can I find my Fabric API KEY and SECRET?

Pelmas answered 11/5, 2018 at 7:30 Comment(1)
As I type this, the instructions from FirebaseCrashlytics docs still don't indicate what's missing.Stealth
C
9

After login in Fabric.io, select settings

enter image description here

in that page select Organizations

enter image description here

Select your app organization

enter image description here

In your fabric organization page select API Key

enter image description here

And add that number in your info.plist

enter image description here

and here in your shell run script

enter image description here

Concupiscence answered 11/5, 2018 at 7:55 Comment(9)
How I get to that page? When I login in fabric.io I only have access to one page: fabric.io/onboardPelmas
@Pelmas I will post more images ;)Concupiscence
This is not what I see when I loginPelmas
post an image of what you see when you login @PelmasConcupiscence
You are setting up your fabric account, you need to read this docs.fabric.io/apple/fabric/overview.html @PelmasConcupiscence
I found this page fabric.io/kits/ios/crashlytics/install. I think here you can get the Api key and secret. Can you check it?Pelmas
Yes @Pelmas but you need to have an account and a organizationConcupiscence
I already have. I can access the Api key and Secret from the page above. Those are the credentials I used before. So I am at point zero again.Pelmas
@Pelmas its weird because your login page seems that you don't have any organization created in your accountConcupiscence
D
0

I've tried @Reinier-Melian solution above (https://mcmap.net/q/356975/-fabric-api-key-not-valid), it solved the error but the crashes still didn't get to the either fabric nor firebase dashboards. I've added the old init line after initializing firebase and now it works!

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {  

//firebase init
[FIRApp configure];
[Crashlytics startWithAPIKey:@"YOUR API KEY HERE"];
Dibbuk answered 10/10, 2018 at 20:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.