I'm using the JExtractSwiftPlugin in my Package.swift. When building I get the error:
error: 'my-target': the target 'SwiftJava' in product 'SwiftJava' contains unsafe build flags
error: 'my-target': the target 'SwiftJava' in product 'JExtractSwiftPlugin' contains unsafe build flags
- swift-java version:
.package(url: "https://github.com/swiftlang/swift-java.git", exact: "0.1.0")
- toolchain: 6.3-snapshot-2026-02-27
- tools version:
// swift-tools-version: 6.3
- host: macOS 26.3.1 (a)
- SDK: swift-6.3-DEVELOPMENT-SNAPSHOT-2026-02-27-a_android
- Compiled with command:
swiftly run swift build --product MyProduct --swift-sdk aarch64-unknown-linux-android28
This patch solves the problem: https://github.com/swiftlang/swift-java/pull/635/commits