marius
marius

Reputation: 219

Kit info missing for Crashlytics kit xcode

I tried to integrate Fabric in iOS project. I followed the steps from the tutorial:

  1. Add a run script Build Phase
  2. In AppDelegate.m

Implementation:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [Fabric with:@[CrashlyticsKit]];
    return YES;
}
  1. Run project

However at last check application crashes:

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Kit info missing for Crashlytics kit'

What is wrong?

Upvotes: 0

Views: 252

Answers (1)

Nat
Nat

Reputation: 12948

You probably already imported these files, but for future readers, you should also have in AppDelegate.m:

#import <Fabric/Fabric.h>
#import <Crashlytics/Crashlytics.h>

You should also have Fabric.framework and Crashlytics.framework in your Frameworks (project -> target -> link phases -> link binary with libraries).

You should also have Fabric RunScript in Link Phases:

./app/path/Fabric.framework/run key1 key2

If you followed Fabric.app tutorial, you should have all these steps configured. Did you follow it? Fo you have all above items?

Upvotes: 1

Related Questions