The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Java, reference master (e94491), with Swift 6.3 for macOS (SPM) on 10 Apr 2026 14:31:59 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/readdle/swift-java.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/readdle/swift-java
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at e944916 Dev: support Swift 5.7
Cloned https://github.com/readdle/swift-java.git
Revision (git rev-parse @):
e9449162891ce8e9687e9ff87d44c0752556df49
SUCCESS checkout https://github.com/readdle/swift-java.git at master
Fetching https://github.com/readdle/java_swift.git
Fetching https://github.com/readdle/swift-java-coder.git
[1/353] Fetching swift-java-coder
[72/673] Fetching swift-java-coder, java_swift
Fetched https://github.com/readdle/swift-java-coder.git from cache (0.78s)
Fetched https://github.com/readdle/java_swift.git from cache (0.78s)
Computing version for https://github.com/readdle/swift-java-coder.git
Computed https://github.com/readdle/swift-java-coder.git at 1.1.2 (1.50s)
Fetching https://github.com/readdle/swift-anycodable.git
[1/92] Fetching swift-anycodable
Fetched https://github.com/readdle/swift-anycodable.git from cache (0.88s)
Computing version for https://github.com/readdle/swift-anycodable.git
Computed https://github.com/readdle/swift-anycodable.git at 1.0.3 (1.55s)
Computing version for https://github.com/readdle/java_swift.git
Computed https://github.com/readdle/java_swift.git at 2.2.3 (0.68s)
Fetching https://github.com/readdle/swift-android-ndk.git
[1/80] Fetching swift-android-ndk
Fetched https://github.com/readdle/swift-android-ndk.git from cache (0.62s)
Computing version for https://github.com/readdle/swift-android-ndk.git
Computed https://github.com/readdle/swift-android-ndk.git at 1.1.4 (3.55s)
Creating working copy for https://github.com/readdle/java_swift.git
Working copy of https://github.com/readdle/java_swift.git resolved at 2.2.3
Creating working copy for https://github.com/readdle/swift-android-ndk.git
Working copy of https://github.com/readdle/swift-android-ndk.git resolved at 1.1.4
Creating working copy for https://github.com/readdle/swift-anycodable.git
Working copy of https://github.com/readdle/swift-anycodable.git resolved at 1.0.3
Creating working copy for https://github.com/readdle/swift-java-coder.git
Working copy of https://github.com/readdle/swift-java-coder.git resolved at 1.1.2
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "traits": [
    "default"
  ],
  "dependencies": [
    {
      "identity": "swift-java",
      "name": "Java",
      "url": "https://github.com/readdle/swift-java.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-java",
      "traits": [
        "default"
      ],
      "dependencies": [
        {
          "identity": "swift-java-coder",
          "name": "JavaCoder",
          "url": "https://github.com/readdle/swift-java-coder.git",
          "version": "1.1.2",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-java-coder",
          "traits": [
            "default"
          ],
          "dependencies": [
            {
              "identity": "java_swift",
              "name": "java_swift",
              "url": "https://github.com/readdle/java_swift.git",
              "version": "2.2.3",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/java_swift",
              "traits": [
                "default"
              ],
              "dependencies": [
                {
                  "identity": "swift-android-ndk",
                  "name": "AndroidNDK",
                  "url": "https://github.com/readdle/swift-android-ndk.git",
                  "version": "1.1.4",
                  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-android-ndk",
                  "traits": [
                    "default"
                  ],
                  "dependencies": [
                  ]
                }
              ]
            },
            {
              "identity": "swift-anycodable",
              "name": "AnyCodable",
              "url": "https://github.com/readdle/swift-anycodable.git",
              "version": "1.0.3",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-anycodable",
              "traits": [
                "default"
              ],
              "dependencies": [
              ]
            }
          ]
        },
        {
          "identity": "java_swift",
          "name": "java_swift",
          "url": "https://github.com/readdle/java_swift.git",
          "version": "2.2.3",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/java_swift",
          "traits": [
            "default"
          ],
          "dependencies": [
            {
              "identity": "swift-android-ndk",
              "name": "AndroidNDK",
              "url": "https://github.com/readdle/swift-android-ndk.git",
              "version": "1.1.4",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-android-ndk",
              "traits": [
                "default"
              ],
              "dependencies": [
              ]
            }
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/readdle/swift-java.git
[1/136] Fetching swift-java
Fetched https://github.com/readdle/swift-java.git from cache (0.62s)
Fetching https://github.com/readdle/swift-java-coder.git from cache
Fetching https://github.com/readdle/java_swift.git from cache
Fetched https://github.com/readdle/java_swift.git from cache (0.43s)
Fetched https://github.com/readdle/swift-java-coder.git from cache (0.43s)
Computing version for https://github.com/readdle/swift-java-coder.git
Computed https://github.com/readdle/swift-java-coder.git at 1.1.2 (0.49s)
Fetching https://github.com/readdle/swift-anycodable.git from cache
Fetched https://github.com/readdle/swift-anycodable.git from cache (0.48s)
Computing version for https://github.com/readdle/swift-anycodable.git
Computed https://github.com/readdle/swift-anycodable.git at 1.0.3 (0.54s)
Computing version for https://github.com/readdle/java_swift.git
Computed https://github.com/readdle/java_swift.git at 2.2.3 (0.03s)
Fetching https://github.com/readdle/swift-android-ndk.git from cache
Fetched https://github.com/readdle/swift-android-ndk.git from cache (0.45s)
Computing version for https://github.com/readdle/swift-android-ndk.git
Computed https://github.com/readdle/swift-android-ndk.git at 1.1.4 (0.51s)
Creating working copy for https://github.com/readdle/swift-android-ndk.git
Working copy of https://github.com/readdle/swift-android-ndk.git resolved at 1.1.4
Creating working copy for https://github.com/readdle/java_swift.git
Working copy of https://github.com/readdle/java_swift.git resolved at 2.2.3
Creating working copy for https://github.com/readdle/swift-java.git
Working copy of https://github.com/readdle/swift-java.git resolved at master (e944916)
Creating working copy for https://github.com/readdle/swift-anycodable.git
Working copy of https://github.com/readdle/swift-anycodable.git resolved at 1.0.3
Creating working copy for https://github.com/readdle/swift-java-coder.git
Working copy of https://github.com/readdle/swift-java-coder.git resolved at 1.1.2
warning: '.resolve-product-dependencies': dependency 'swift-java' is not used by any target
Found 2 product dependencies
  - JavaCoder
  - java_swift
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/readdle/swift-java.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/7] Write sources
[5/7] Write swift-version--6988338F2F200930.txt
In file included from /Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/MainRunLoop.c:1:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidNDK.h:4:10: fatal error: 'jni.h' file not found
    4 | #include <jni.h>
      |          ^~~~~~~
1 error generated.
[6/9] Compiling CAndroidNDK MainRunLoop.c
BUILD FAILURE 6.3 macosSpm