-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Labels
feature:jextractIssues related to jextract-swiftIssues related to jextract-swift
Description
The jextract CLI doesn't allow passing .swiftinterface files. I built the CLI with swift build --product swift-java, produced the .swiftinterface with:
xcodebuild clean build -workspace Samples/SwiftJavaExtractFFMSampleApp/ -scheme SwiftJavaExtractFFMSampleApp -destination generic/platform=macOS -derivedDataPath dd SWIFT_EMIT_MODULE_INTERFACE=YES ARCHS=arm64
And tried importing it with:
./.build/arm64-apple-macosx/debug/swift-java jextract --swift-module MySwiftLibrary --input-swift dd/Build/Products/Debug/MySwiftLibrary.swiftmodule/arm64-apple-macos.swiftinterface --java-package com.example.swift --output-swift S1 --output-java J1
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.
Metadata
Metadata
Assignees
Labels
feature:jextractIssues related to jextract-swiftIssues related to jextract-swift