Skip to content

Can't compile for visionOS #119

Description

@orj

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions