## Description Cross-import overlays don't seem to be imported automatically. For example, ```swift import SwiftUI import MapKit @MainActor let map = Map() // Cannot find 'Map' in scope ``` Importing the cross-import overlay manually fixes this ```diff import SwiftUI import MapKit +import _MapKit_SwiftUI @MainActor let map = Map() // works! ``` I'm not sure if this is an issue with all overlays or just MapKit. Haven't checked any others yet. ## Environment Host OS: Ubuntu 24.04.3 LTS Swift version: swift-6.1-RELEASE SDK version: iOS 18.5
Activity
kabiroberai commentedon Aug 10, 2025
Seems like we need to pass
-Xfrontend -enable-cross-import-overlaysto Swift invocationskabiroberai commentedon Aug 10, 2025
works
kabiroberai commentedon Aug 10, 2025
actually we should maybe add this to the SwiftSDK settings so that SourceKit-LSP picks it up
Enable cross import overlays (xtool-org#153)