New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SwiftUI Won't Preview On FirebaseApp.Configure() #6552
Comments
I found a few problems with this issue:
|
See #6374 (comment). If not, we can take a deeper look tomorrow. |
unfortunately, adding arm64 to the Excluded Architectures didn't solve the issue |
From https://developer.apple.com/forums/thread/651820, looks like a known Xcode bug. Also, maybe an Xcode restart? See https://stackoverflow.com/questions/63469874/swiftui-preview-error-process-launch-failed |
So I've tried restarting, re-installing and switching between 11.7 and 12.0 a few times already and it hasn't helped. This crash only happens when I have Firebase.configure() in my AppDelegate. |
preview won't crash anymore by using ver. 6.30.0 for Firebase
|
Not here, still crashing with 6.33.0:
|
I moved my version down to 6.30.0 |
Well, wouldn't it be better to leave this issue open then, since the current version is 6.33.0 and not 6.30.0 |
I'll reopen. Since it looks like an Xcode issue, at best, we might be able to investigate workarounds here ... |
Also seeing this problem. New SwiftUI project from Xcode template. Add FirebaseAnalytics and FirebaseCrashlytics from SPM or manual ZIP file. Perhaps this stack trace from ~/Library/Logs/DiagnosticReports is useful:
|
@mikebernardo are you able to grab the exception message from the stack trace as well? |
This is #6540 that will be fixed in the next release. The bug was introduced in 6.33.0 so an earlier release could be workaround in the meantime. |
@morganchen12 @paulb777 Yep I revered to 6.32.2 and the problem is gone. |
[REQUIRED] Describe your environment
CocoaPods && SPM
[REQUIRED] Step 2: Describe the problem
There seems to be a problem with SwiftUI preview when I configure Firebase
I've tried deleting DerivedData, removing Pod cache, de-integrating pods, and doing pod update, however, this didn't do anything to solve the issue I have. I have also reinstalled Xcode a few times and upgrading and downgrading between 11.7 and 12.0. The only time SwiftUI preview/Canvas works is when I comment out
FirebaseApp.configure()
. I also tried using SPM and that didn't help either.Steps to reproduce:
What happened? How can we make the problem occur?
resume
on the SwiftUI preview/canvas view. On the top of the canvas, it says that I "Cannot preview in this file - MyApp app crashed on Launch" and the error is shown below.XCode 11.7
XCode 12.0
Relevant Code:
https://github.com/mhandria/MyApp.git
The text was updated successfully, but these errors were encountered: