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

Can't compile for visionOS #119

Open
2 tasks done
orj opened this issue Oct 18, 2023 · 0 comments
Open
2 tasks done

Can't compile for visionOS #119

orj opened this issue Oct 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@orj
Copy link

orj commented Oct 18, 2023

Vexil can't be compiled for visionOS because of conditional imports.

Vexil version: 2.2.2
Swift version: swift-driver version: 1.87.2 Apple Swift version 5.9 (swiftlang-5.9.2.1.6 clang-1500.1.0.1.1)
Environment: Xcode 15.1 beta, macOS Sonoma

✅ Checklist

  • If possible, I've reproduced the issue using the main branch of this package
  • I've searched for existing GitHub issues

🔢 Steps to Reproduce

Compile with Vexil 2.2.2 as a dependency for visionOS (not iOS/iPad on visionOS).

🎯 Expected behavior

It compiles.

🕵️‍♀️ Actual behavior

Swift error:

No such module 'Glibc'

This is because of:

#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
import Darwin
#elseif os(Windows)
import WinSDK
#else
import Glibc
#endif
@orj orj added the bug Something isn't working label Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant