ioscrashlyticsgoogle-fabric

Crashlytics recordError removed?


Xcode 8.3.2, Swift 3, Crashlytics 3.8.5 installed

Crashlytics.sharedInstance().recordError(error) - says "Value of type 'Crashlytics' has no member 'recordError'".

I can't see any recordError function in Crashlytics file as well. But doc says us that it should work.

https://docs.fabric.io/apple/crashlytics/logged-errors.html#logs-and-custom-keys


Solution

  • i have run the code under both version of Crashlytics and its working fine in Xcode 8.3.2, Swift 3,
    using pod

    use_frameworks!

    pod 'Fabric'

    pod 'Crashlytics'

    Crashlytics :- Version 3.8.4 (121)

    code is working fine

    Crashlytics.sharedInstance().recordError(error)
    

    Now i had update Crashlytics pod

    [Crashlytics] Version 3.8.5 (123))

    Build the Project and Run. same code working fine for me.