-
-
Notifications
You must be signed in to change notification settings - Fork 10
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 Previews not working #16
Comments
Ahhh you are building for the simulator. I wonder if that’s it. |
Yea no matter what I change the device to in the SwiftUI preview window I get the same errors |
Really appreciate the report! There are checks in there, and they appear good enough for Linux builds. Need to investigate. |
Could it be that according to SPM this is macOS, but according to the compiler it is not? That would be a wild problem that I would totally believe. |
I have confirmed that in this specific situation, the package dependency conditionals think this is macOS 😵💫. |
Hmmm. So does that mean using |
Step one, I managed to create a reasonably minimal example and included it in a bug report: FB13551706 |
So I investigated a few different possible fixes for this, and I wasn't able to find one that didn't have drawbacks. I think the most readable solution, given that this only affects SwiftUI previews on iOS is to maintain a branch with the features not supportable by iOS explicitly removed. |
SwiftUI Previews fail to load when using this package due to many compile errors related to the ProcessEnv and FSEventsWrapper dependencies. Here's a build log showing the errors:
Build for Previews code-edit_2024-01-18T10-57-02.txt
The text was updated successfully, but these errors were encountered: