Reputation: 12859
I followed instructions for setting up crashlytics from here https://firebase.google.com/docs/crashlytics/get-started
But when my app executes,
Fabric.with([Crashlytics.self])
The app is crashing with message *** Terminating app due to uncaught exception 'FABException', reason: '[Fabric] Value of Info.plist key "Fabric" must be a NSDictionary.'
From googling, I somebody saying we should add following code in Info.plist
file.
<key>Fabric</key>
<dict>
<key>APIKey</key>
<string>your_key</string>
<key>Kits</key>
<array>
<dict>
<key>KitInfo</key>
<dict/>
<key>KitName</key>
<string>Crashlytics</string>
</dict>
</array>
</dict>
But, where I can find APIKey if I am following https://firebase.google.com/docs/crashlytics/get-started
Upvotes: 3
Views: 2008
Reputation: 10906
I added FirebaseApp.configure()
before Fabric line and it works for me
Upvotes: 1
Reputation: 3354
If you're installing Crashlytics to be used via Fabric, you should follow the installation instructions on https://fabric.io/kits/ios/crashlytics/manual-install
Crashlytics via Firebase doesn't require Fabric API keys and doesn't use the Fabric.with([Crashlytics.self])
call to initialize.
Upvotes: 5