apple / swift-nio

Event-driven network application framework for high performance protocol servers & clients, non-blocking.
https://swiftpackageindex.com/apple/swift-nio/documentation
Apache License 2.0
8k stars 652 forks source link

visionOS Support #2635

Open PushedCrayon opened 10 months ago

PushedCrayon commented 10 months ago

Expected behavior

Be able to use this package inside a VisionOS application for the Apple Vision Pro

Actual behavior

Currently appears to fail to compile to the VisionOS simulator

Steps to reproduce

  1. Open the package and try and run to a VisionOS Simulator

If possible, minimal yet complete reproducer code (or URL to code)

NA

SwiftNIO version/commit hash

Latest

System & version information

Running Xcode 15.2 on Sonoma 14.1.2

Lukasa commented 10 months ago

Yup, good catch: looks like we need to add some #if visionOS().

Lukasa commented 10 months ago

Oh actually before even that swift-system needs to.

Lukasa commented 10 months ago

Let's get apple/swift-system#150 fixed first.

PushedCrayon commented 10 months ago

I actually forked that one just a bit ago and sprinkled in a lot of || os(visionOS) and it worked just fine. This might be a quick easy win

PushedCrayon commented 10 months ago

Looks like https://github.com/apple/swift-system/issues/150 has not been updated for a few years, might have to be something forked and done outside of "official" support

Lukasa commented 10 months ago

I mean I only filed that ticket two hours ago.