Vexil icon indicating copy to clipboard operation
Vexil copied to clipboard

Can't compile for visionOS

Open orj opened this issue 2 years ago • 0 comments

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 main branch 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

orj avatar Oct 18 '23 04:10 orj