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

xibs do not support device error when trying to run unit test #1013

Open
jevonmao opened this issue Jun 1, 2022 · 3 comments
Open

xibs do not support device error when trying to run unit test #1013

jevonmao opened this issue Jun 1, 2022 · 3 comments
Labels
Milestone

Comments

@jevonmao
Copy link
Contributor

jevonmao commented Jun 1, 2022

It's been a while since I last tried to work on SwifterSwift. But I'm trying to run the unit tests in Xcode, and I keep getting this compile time error. It seems like no matter what device I choose (Mac, iOS, tvOS), it always give this similar error saying that some xib is not supported. Can someone give me a clue on how to fix this?

Screen Shot 2022-06-01 at 4 03 34 PM

@guykogus
Copy link
Contributor

The issue is that you're opening the Swift Package, which won't work since we can't define platform-specific resources for the test targets. Instead you'll need to open the SwifterSwift.xcworkspace.

@omaralbeik omaralbeik added this to the v6 milestone Jun 27, 2022
@TwizzyIndy
Copy link
Member

I just fixed this error by installing SwiftFormat from Homebrew. It will generate separated schemes for tests.

@stale
Copy link

stale bot commented Jun 18, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants