The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Java, reference master (e94491), with Swift 6.2 for macOS (SPM) on 17 Jun 2025 18:00:34 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/readdle/swift-java.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/7] Write sources
[5/7] Write swift-version-1EA4D86E10B52AF.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
Fetching https://github.com/readdle/swift-java-coder.git
Fetching https://github.com/readdle/java_swift.git
[4/353] Fetching swift-java-coder
[104/673] Fetching swift-java-coder, java_swift
Fetched https://github.com/readdle/java_swift.git from cache (0.79s)
Fetched https://github.com/readdle/swift-java-coder.git from cache (0.80s)
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.32s)
Fetching https://github.com/readdle/swift-anycodable.git
[1/92] Fetching swift-anycodable
Fetched https://github.com/readdle/swift-anycodable.git from cache (0.66s)
Computing version for https://github.com/readdle/swift-anycodable.git
Computed https://github.com/readdle/swift-anycodable.git at 1.0.3 (1.18s)
Computing version for https://github.com/readdle/java_swift.git
Computed https://github.com/readdle/java_swift.git at 2.2.3 (0.47s)
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.60s)
Computing version for https://github.com/readdle/swift-android-ndk.git
Computed https://github.com/readdle/swift-android-ndk.git at 1.1.4 (2.57s)
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-java-coder.git
Working copy of https://github.com/readdle/swift-java-coder.git resolved at 1.1.2
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-anycodable.git
Working copy of https://github.com/readdle/swift-anycodable.git resolved at 1.0.3
BUILD FAILURE 6.2 macosSpm