Skip to content

Firebase causing crashes in SwiftUI Previews / Xcode Canvas #13318

Description

@pepas-everly

Description

Firebase / Crashlytics seems to be causing repeated crashes whenever we use SwiftUI Previews / Xcode Canvas.

Here's an example, in [FBLPromise HTTPBody]:

Screenshot 2024-07-19 at 3 10 26 PM

Note that Firebase / Crashlytics is not causing any crashes when we actually run the app -- they only happen in the SwiftUI Previews environment.

We were experiencing this issue on Firebase 10.19, and just bumped to 10.29 to verify this is still an issue.

The relevant section of our Cartfile is:

binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json" == 10.29.0
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseCrashlyticsBinary.json" == 10.29.0

Reproducing the issue

Open Xcode to any file which contains a PreviewProvider while the Canvas feature is enabled. It will crash within a minute or so, then crash again anytime you restart the preview or make a change to the SwiftUI Views.

Firebase SDK Version

10.29.0

Xcode Version

15.3

Installation Method

Carthage

Firebase Product(s)

Crashlytics

Targeted Platforms

iOS

Relevant Log Output

No response

If using Swift Package Manager, the project's Package.resolved

No response

If using CocoaPods, the project's Podfile.lock

No response

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions