Swift frontend incorrectly searching in SDK_ROOT for .swiftinterface file #79159
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
We're hitting a bizarre issue that we've noticed since Xcode 16.0 where
swiftc
will look for a.swiftinterface
in theSDK_ROOT
. This obviously fails and thus the-compile-module-from-interface
call fails.Error:
Using the following invocation (on
Xcode 16.2
):With the following params file:
I'm completely lost as to what could be causing
swiftc
to search in the SDK root here. TheToyModule.swiftinterface
in this case is actually in:bazel-out/darwin_arm64-fastbuild/bin/test/fixtures/module_interface/library/toy_outputs/ToyModule.swiftinterface
and looks like:Steps to Reproduce
Use the
-compile-module-from-interface
mode to attempt to compile a.swiftmodule
from a.swiftinterface
that depends on another.swiftmodule
(compiled from a interface).Reproduction
Use the
-compile-module-from-interface
mode to attempt to compile a.swiftmodule
from a.swiftinterface
that depends on another.swiftmodule
(compiled from a interface).Expected behavior
I'd expect
swiftc
to not look in the SDK root here and to just work at compiling the interface as expected.Environment
swift-driver version: 1.115.1 Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
Target: arm64-apple-macosx15.0
Additional information
No response
The text was updated successfully, but these errors were encountered: