You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BlueSSLService uses #if os(...) in the Package.swift file which prevents it from being cross-compiled because that makes the assumption that the Package.swift is executed on the same OS as the resulting binaries will be which isn't true for cross-compilation.
I know this is to make it compatible with macOS without installing Open/LibreSSL using homebrew on macOS and I don't know if there's a full solution to get it to properly work with SwiftPM. There might be a way using conditional imports in the .swift files rather than in the Package.swift but I'm not 100% sure.
The other option is that we do something hacky and we change the
BlueSSLService uses
#if os(...)
in thePackage.swift
file which prevents it from being cross-compiled because that makes the assumption that thePackage.swift
is executed on the same OS as the resulting binaries will be which isn't true for cross-compilation.I know this is to make it compatible with macOS without installing Open/LibreSSL using homebrew on macOS and I don't know if there's a full solution to get it to properly work with SwiftPM. There might be a way using conditional imports in the
.swift
files rather than in thePackage.swift
but I'm not 100% sure.The other option is that we do something hacky and we change the
to something like
and in the cross compilation toolchain builder script we'd just add
to the
extra-swiftc-flags
list.The text was updated successfully, but these errors were encountered: