Skip to content
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

Fix for Xcode previews in universal apps #55

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

choule99
Copy link

For some unknown reason (probably a bug in Xcode), whenever you try to use an XCode previews on a macos target, will still try to compile / include frameworks which depends on the ios (even though you may have correctly defined the dependencies exclusions)

So to fix it, we need to add a #if canImport(UIKit) everywhere UIKit is included, so that the xcode previews can work

@markst
Copy link

markst commented Sep 13, 2023

Bit of a duplicate of #86 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants