-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Can't render SwiftUI canvas with Code Coverage Enabled #6219
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
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
A reproducible example would help us to diagnose |
Any SwiftUI examples seems to reproduce the issue. Here are some SO posts regarding the issue: https://stackoverflow.com/questions/60440074/problems-with-firebase-and-swiftui-live-previews This workaround worked my project: |
I suspect that solving #2022 may resolve this. Until then, the workarounds may be the best bet. |
Also may be related this issue noted at https://forums.swift.org/t/swift-packages-in-multiple-targets-results-in-this-will-result-in-duplication-of-library-code-errors/34892/38:
|
Does Xcode 12 beta 5 make any difference? |
Unfortunately it does not Xcode 12 beta 5 does not fix the issue. |
I was able to reproduce this issue and the workaround works for me as well. Steps to reproduce:
|
@brandtdaniels hope you don't mind that I changed the title to make it easier to find for folks, and more accurately state the issue. Thanks again for the report. |
TODO: Attempt to reproduce with Firebase 7, since dynamic frameworks are now used. Also check with Xcode 12.2 release candidate to see if the Xcode issue is resolved with static frameworks. |
Any updates on this? |
Same for me. Still an issue |
This is still an issue, it's most likely an Apple bug as I have found a few related issues on their forum, with weird workarounds(remove arm64 which was already done, validate workspace, set Build Active Architecture Only" to No and other such. Nothing worked or made sense for me and my project, and going through this thread I tried disabling the code coverage capability for my main scheme - and weirdly enough, that made the previews render. |
Also an issue for me. Disabling the code coverage does not appear to resolve. |
I am now getting previews rendered with code coverage off. |
I had the same issue with Canvas previews and can confirm that after I turned off Code coverage they now work. |
TODO: Test this issue with Xcode 12.5 to see if it's resolved. |
Hey everyone, I tested this with Xcode 12.5 with my repro steps above and was unable to reproduce - I think this is resolved. I'm going to close this now, but if you still see the same error using Xcode 12.5 please share steps to reproduce and I'll re-open the issue! |
Step 0: Are you in the right place?
file a Github issue.
with the
firebase
tag.google group.
of the above categories, reach out to
Firebase Support.
this repository, please delete this section.
[REQUIRED] Step 1: Describe your environment
**CocoaPods** | Carthage | Zip file
(select one)[REQUIRED] Step 2: Describe the problem
Can't render SwiftUI canvas due to FirebaseCore
Steps to reproduce:
Rendering SwiftUI Canvas. The current workaround is to disable code coverage in the build scheme
Relevant Code:
NA
The text was updated successfully, but these errors were encountered: