I'm using Crashlytics to log errors in my iOS app. This works fine as long as the error occurs in my main app project, but if it happens in one of my frameworks the error isn't logged. Or at least it doesn't appear in the Crashlytics dashboard.
If an error occurs in my framework I log it the same way as I log it in my main project:
Crashlytics.sharedInstance().recordError(error)
Do I have to configure Crashlytics in my framework as well, or will it get access to the same Crashlytics instance I use in my main project? I have only added the run script phase to my main project and start Fabric/Crashlytics by calling Fabric.with([Crashlytics.self])
in my AppDelegate. Is that enough, or do I have to add the same configuration/logic to my framework as well?
It seems the Crashlytics instance in my framework has the same apiKey and I don't get any errors or crashes when logging the errors in the framework.