Vexil
Vexil copied to clipboard
Can't compile for visionOS
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
- [x] If possible, I've reproduced the issue using the
mainbranch of this package - [x] 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