Hello! Using `2.3.0-Beta2-32` and I’m getting: Cou...
# swift-export
g
Hello! Using
2.3.0-Beta2-32
and I’m getting: > Couldn’t Generate Swift Representation > Error (from SourceKit): > Could not load module: ... (compiling for iOS 18.0, but module ‘...’ has a minimum deployment target of iOS 26.0: When trying to open (navigate to) the source from an imported dependency (clicking in the import) from within a package with the following configuration:
platforms: [.iOS(.v18)],
Questions: 1 - Can we specify the iOS version of the exported module? 2 - How can I bump to
.v26
? Xcode 26.01 says
'v26' is unavailable
Workaround: navigating to a specific class from that source, works (goes inside the module).
a
> Can we specify the iOS version of the exported module? Yes, since KT-81465 we are reusing target version from the xcode project.
As for everything else - I'm not sure I understand what's happening. Do you have a demo/repro?
g
I’m working on it 🙂 , but the use case is, I’ve a “multi-module” swift project, and inside my packages I’ve specified
.iOS(.v18)
but the project is configured to use iOS26, so in theory the swift export is behaving like supposed, but when trying to navigate to source form the swift package I get this error.
Ok I found it
// swift-tools-version: 6.2
was using 6.1