SPM on Linux: Extension not visible from Tests

I don't know whether this is a compiler or a package manager issue, perhaps a bit of both. [SR-15462] Regression: Swift 5.5 on Linux doesn't see extension on `timeval_t` · Issue #57767 · apple/swift · GitHub describes a problem where an extension is not visible in the tests. On macOS this works, on Linux it fails.

Any idea how to circumvent that?

It is a general problem in the compiler. Have a look at some of the existing threads, such as this one:

1 Like