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
{{ message }}
Repository navigation
Jextract CLI doesn't have a way to pass .swiftinterface files #484
The jextract CLI doesn't allow passing .swiftinterface files. I built the CLI with swift build --product swift-java, produced the .swiftinterface with:
This capability seems to be intended from the sources. With a minor tweak here, I was able to get jextract to accept the .swiftinterface file, and it produced a Java API similar to the API it makes from sources.
Activity
ktoso commentedon Dec 11, 2025
We originally were driving everything from interfaces and then moved to swift files, but yes, it is intended to allow either!
Would you want to submit your small tweak
swift-java/Sources/JExtractSwiftLib/Swift2Java.swift
Line 52 in 2534f41
here as a PR please? We can also add some test-case for this in Samples probably ... best discussed in a PR and I can help out finish it up