Skip to content

error: the target 'SwiftJava' in product 'JExtractSwiftPlugin' contains unsafe build flags #636

@gmondada

Description

@gmondada

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions