Fabric API key not valid

懵懂的女人 提交于 2019-12-01 05:22:23

问题


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?


回答1:


After login in Fabric.io, select settings

in that page select Organizations

Select your app organization

In your fabric organization page select API Key

And add that number in your info.plist

and here in your shell run script




回答2:


I've tried @Reinier-Melian solution above (https://stackoverflow.com/a/50287615/3804452), 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"];


来源:https://stackoverflow.com/questions/50287216/fabric-api-key-not-valid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!