florianreinhart / Geodesy

Geodesy functions in Swift 🌎
MIT License
23 stars 2 forks source link

Doesn't compile with destination Apple Vision Pro #4

Closed GerdC closed 7 months ago

GerdC commented 7 months ago

The package doesn't compile with destination Apple Vision Pro (Apple Vision Pro(Designed for iPad) is no problem.

Coordinate.swift:

#if os(OSX) || os(iOS)
    import Darwin
#elseif os(Linux)
    import Glibc
#endif

Maybe this is enough:

#if os(OSX) || os(iOS) || os(visionOS)
    import Darwin
#elseif os(Linux)
    import Glibc
#endif
florianreinhart commented 7 months ago

Thanks, @GerdC!

Could you create a PR for this?

GerdC commented 7 months ago

Never did that, but I'll try

GerdC commented 7 months ago

Added a fix in PR #5

florianreinhart commented 7 months ago

Perfect! Published as 0.2.1.