kiwi-bop / flutter_crashlytics

:package: Flutter plugin for Crashlytics integration
BSD 2-Clause "Simplified" License
194 stars 46 forks source link

in iOS - Fabric called multiple times #70

Closed volkangurol closed 5 years ago

volkangurol commented 5 years ago
Screen Shot 2019-03-21 at 16 25 39 Screen Shot 2019-03-21 at 16 25 55 Screen Shot 2019-03-21 at 16 27 01
jaumard commented 5 years ago

[Fabric] [Fabric +with] called multiple times. can you reproduce that with the example app ?

Line number are coming for the dart exception directly so if the line number is not there I don't think I can do anything about it. But from your screenshot you still have the line number on the title 145 and 144 second line

volkangurol commented 5 years ago

thanks for reply, i will dig in. As you ve seen android screenshot (the last one) second line of log ot clearly says that error in home_screen.dart :68 (not 144/145 is not related from my code) İf i found manage to show in ios as well i will write here. Thanks

PandaGeek1024 commented 5 years ago

Im getting the same errors as well. For

Fabric +with] called multiple times.

I'm getting it when I click run after the first time.

Im also not getting the right error line on iOS. It is quite confusing.

image

jaumard commented 5 years ago

Should be good with last version normally :)

dspoonia7 commented 5 years ago

I am also getting this error:

[Fabric] [Fabric +with] called multiple times. Only the first call is honored, please pass all kits you wish to initialize

Any idea what's causing this? (I am using flutter_crashlytics and firebase_messaging) and flutter_crashlytics version is 1.0.0.

workerbee22 commented 5 years ago

Also getting this error across the last 3 versions of firebase_crashlytics

thebrianbug commented 4 years ago

Still getting this error also

om-ha commented 4 years ago

I'm getting this issue with firebase_crashlytics as well. On iOS.

Version

firebase_crashlytics: ^0.1.3+3

Full Log

Xcode build done.                                           70.7s
Configuring the default Firebase app...
[Crashlytics] Version 3.14.0 (144)
Configured the default Firebase app __FIRAPP_DEFAULT.
**[Fabric] [Fabric +with] called multiple times. Only the first call is honored, please pass all kits you wish to initialize**
[GoogleDataTransport][I-GDTCOR001006] (/Users/xxxxxxxxxx/ios/Pods/GoogleDataTransport/GoogleDataTransport/GDTCORLibrary/GDTCOREvent.m:59) : There was an error saving the new counter value to disk.
[GoogleDataTransport][I-GDTCOR001006] (/Users/xxxxxxxxxx/ios/Pods/GoogleDataTransport/GoogleDataTransport/GDTCORLibrary/GDTCOREvent.m:59) : There was an error saving the new counter value to disk.
WARNING: OneSignal has detected that your application delegate implements a deprecated method (application:didReceiveLocalNotification:). Please note that this method has been officially deprecated and the OneSignal SDK will no longer call it. You should use UNUserNotificationCenter instead
WARNING: OneSignal has detected that your application delegate implements a deprecated method (application:didReceiveLocalNotification:). Please note that this method has been officially deprecated and the OneSignal SDK will no longer call it. You should use UNUserNotificationCenter instead

Flutter Doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.12.13+hotfix.9, on Mac OS X 10.14.5 18F132,
    locale en-US)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.3)
[!] Android Studio (version 3.6)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.44.2)
[✓] Connected device (1 available)

! Doctor found issues in 1 category.
jaumard commented 4 years ago

firebase_crashlytics is a totally different package

om-ha commented 4 years ago

Thanks @jaumard I realized that, but I hoped this would help here, that's why I stated so at the start of my post.

aliceathens commented 4 years ago

Same issue here +1

okan-oz commented 4 years ago

Same issue here +1

pacocd commented 4 years ago

[Fabric] [Fabric +with] called multiple times. looks like an error in Fabric SDK.

This log started appearing since Fabric was introduced into a native project and it is initialized from AppDelegate.application(:, didFinishLaunchingWithOptions:).

So, everything should be good even if it appears in our logs.

srivasthan commented 3 years ago

In ios/Runner/AppDelegate.swift,

Remove

  1. import Firebase
  2. Firebase.configure

Reason: Firebase was created by Fabric and we try to initialize for second time. Even though they pointed in docs remove and build the application. (Solution only for Flutter projects)