SwiftUI Previews not working with Firebase in Xcode 16.0 beta

The SwiftUI previews have been working fine in Xcode 16.0 beta, but ever since I added Firebase into my app, I've been getting error with previews.

CrashReportError: IshaanCord crashed

IshaanCord crashed. Check ~/Library/Logs/DiagnosticReports for crash logs from your application.

Process: IshaanCord[5651]
Date/Time: 2024-07-04 19:29:51 +0000
Log File: <none>

"Cannot preview in this file"

Does anyone know how to fix this? Thank you.

Answered by DTS Engineer in 794136022

@ishaangatg Have you investigated the crash log to determine if its a runtime error or if there was a memory access issue?

You can review Identifying the cause of common crashes. it contains literature that could help in investigating common crashes.

@ishaangatg Have you investigated the crash log to determine if its a runtime error or if there was a memory access issue?

You can review Identifying the cause of common crashes. it contains literature that could help in investigating common crashes.

If you can file a feedback with the crash log that would help as well. There's not much to go on with just this top level error message.

SwiftUI Previews not working with Firebase in Xcode 16.0 beta
 
 
Q