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
When building swift-dependencies on a musl-based Linux environment (i.e., using the Swift Static Linux SDK for full static linking), we encounter build failures around DependenciesTestObserver and XCTest. The new static SDK includes a musl variant (--swift-sdk x86_64-swift-linux-musl), but references to XCTest (and dynamic linking logic) in DependenciesTestObserver cause compile errors: no such module 'XCTest' and
import Glibc
28.17 | `- error: no such module 'Glibc'
Generally the guides suggest adding the import conditional vs os check
Description
Overview
When building swift-dependencies on a musl-based Linux environment (i.e., using the Swift Static Linux SDK for full static linking), we encounter build failures around
DependenciesTestObserver
andXCTest
. The new static SDK includes a musl variant(--swift-sdk x86_64-swift-linux-musl)
, but references to XCTest (and dynamic linking logic) in DependenciesTestObserver cause compile errors:no such module 'XCTest'
andGenerally the guides suggest adding the import conditional vs os check
But I'm unclear of all the context of the runtime checks in those utilities and the package manifest conditionals as well.
Checklist
main
branch of this package.Expected behavior
Successful compilation
Actual behavior
Failed compilation
Steps to reproduce
docker build -t dependencies-musl-test .
Dependencies version information
1.6.3
Destination operating system
linux
Xcode version information
16.2
Swift Compiler version information
The text was updated successfully, but these errors were encountered: