The Swift Package Index logo.Swift Package Index

Build Information

Failed to build UserCaches, reference 0.0.6 (2740a2), with Swift 6.4 for Android on 25 Sep 2026 12:56:32 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/wzhejunqiu/UserCaches.git
Reference: 0.0.6
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/wzhejunqiu/UserCaches
 * tag               0.0.6      -> FETCH_HEAD
HEAD is now at 2740a21 Merge branch 'master' of github.com:CUITCHE/UserCaches
Cloned https://github.com/wzhejunqiu/UserCaches.git
Revision (git rev-parse @):
2740a2121f55a828c4dd7b25f3cacad76dbb6b8d
SUCCESS checkout https://github.com/wzhejunqiu/UserCaches.git at 0.0.6
========================================
Build
========================================
Selected platform:         android
Swift version:             6.4
Building package at path:  $PWD
https://github.com/wzhejunqiu/UserCaches.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:abadcff584c273feba50641b454858d377ba30b35ea7287a94f45ebd8afd0ea0
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.4-latest
Fetching https://github.com/stephencelis/SQLite.swift.git
[1/11307] Fetching sqlite.swift
Fetched https://github.com/stephencelis/SQLite.swift.git (0.79s)
Computing version for https://github.com/stephencelis/SQLite.swift.git
warning: 'sqlite.swift': /Package.swift:41:19: warning: 'v4' is deprecated: watchOS 9.0 is the oldest supported version [#DeprecatedDeclaration]
39 |         .iOS(.v12),
40 |         .macOS(.v10_13),
41 |         .watchOS(.v4),
   |                   `- warning: 'v4' is deprecated: watchOS 9.0 is the oldest supported version [#DeprecatedDeclaration]
42 |         .tvOS(.v12),
43 |         .visionOS(.v1)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
Computed https://github.com/stephencelis/SQLite.swift.git at 0.16.0 (1.00s)
Fetching https://github.com/stephencelis/CSQLite
[1/295] Fetching csqlite
Fetched https://github.com/stephencelis/CSQLite (0.77s)
Computing version for https://github.com/stephencelis/CSQLite
Computed https://github.com/stephencelis/CSQLite at 3.53.3 (0.93s)
Creating working copy for https://github.com/stephencelis/SQLite.swift.git
Working copy of https://github.com/stephencelis/SQLite.swift.git resolved at 0.16.0
Creating working copy for https://github.com/stephencelis/CSQLite
Working copy of https://github.com/stephencelis/CSQLite resolved at 3.53.3
warning: 'sqlite.swift': /host/spi-builder-workspace/.build/checkouts/SQLite.swift/Package.swift:41:19: warning: 'v4' is deprecated: watchOS 9.0 is the oldest supported version [#DeprecatedDeclaration]
39 |         .iOS(.v12),
40 |         .macOS(.v10_13),
41 |         .watchOS(.v4),
   |                   `- warning: 'v4' is deprecated: watchOS 9.0 is the oldest supported version [#DeprecatedDeclaration]
42 |         .tvOS(.v12),
43 |         .visionOS(.v1)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
Building for debugging...
[Pre-planning 1 / 156]
[42 / 59] SQLite
[43 / 59] SQLite
[49 / 59] SQLite-product
error: SwiftCompile normal aarch64 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/UserCaches/DiscardableCacheContent.swift:29:32: error: cannot find type 'NSDiscardableContent' in scope
27 | }
28 | #else
29 | class DiscardableCacheContent: NSDiscardableContent {
   |                                `- error: cannot find type 'NSDiscardableContent' in scope
30 |     func beginContentAccess() -> Bool {
31 |         if _cache == nil {
/host/spi-builder-workspace/Sources/UserCaches/UserCaches.swift:44:21: warning: static declarations are implicitly 'final'; use 'public' instead of 'open'
 42 |     #else
 43 |     /// Returns a global instance of UserCaches named "user.cache.default.standard.db" at user.documents directory.
 44 |     open static var standard: UserCaches = try! .init(cachePath: FileManager.default.url(for: .documentDirectory,
    |                     `- warning: static declarations are implicitly 'final'; use 'public' instead of 'open'
 45 |                                                                                          in: .userDomainMask,
 46 |                                                                                          appropriateFor: nil,
/host/spi-builder-workspace/Sources/UserCaches/UserCaches.swift:126:22: warning: static declarations are implicitly 'final'; use 'public' instead of 'open'
124 |
125 |     /// Remove all keys of standard global instance from disk. And clean memory cache.
126 |     open static func resetStandardUserDefaults() {
    |                      `- warning: static declarations are implicitly 'final'; use 'public' instead of 'open'
127 |         try? standard.removeAllKey()
128 |     }
/host/spi-builder-workspace/Sources/UserCaches/UserCachesSettable.swift:56:5: warning: 'public' modifier is redundant for property declared in a public extension
 54 |     ///
 55 |     /// Also use the type defer to **Codable**. Wrap Codable by **CacheCodability** (CacheCodability(value: Codable)).
 56 |     public var storage: CacheEncodable {
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
 57 |         nonmutating set {
 58 |             do {
/host/spi-builder-workspace/Sources/UserCaches/UserCachesSettable.swift:70:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 68 |     ///
 69 |     /// - Returns: A value deferred to CacheDecodable.
 70 |     public func value<T: CacheDecodable>() -> T? {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 71 |         do {
 72 |             return try UserCaches.standard.value(forKey: key)
/host/spi-builder-workspace/Sources/UserCaches/UserCachesSettable.swift:82:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 80 |     ///
 81 |     /// - Returns: A value deferred to Decodable.
 82 |     public func valueofCodable<T: Decodable>() -> T? {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 83 |         do {
 84 |             let v: CacheCodability<T> = try UserCaches.standard.value(forKey: key)
/host/spi-builder-workspace/Sources/UserCaches/UserCachesSettable.swift:92:5: warning: 'public' modifier is redundant for property declared in a public extension
 90 |     }
 91 |
 92 |     public var key: String {
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
 93 |         var type = "\(Self.self)"
 94 |         var `case` = rawValue
/host/spi-builder-workspace/Sources/UserCaches/UserCachesSettable.swift:124:5: warning: 'public' modifier is redundant for property declared in a public extension
122 |     }
123 |
124 |     public var identifierMode: CacheKeyMode { return .raw }
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
125 |
126 |     private var _asciiUpperCaseTable: UInt64 { @inline(__always) get { return 0b0000_0000_0000_0000_0001_1111_1111_1111_0000_0000_0000_0000_0000_0000_0000_0000 } }
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/UserCaches/CacheCodability.swift /host/spi-builder-workspace/Sources/UserCaches/CacheCodable.swift /host/spi-builder-workspace/Sources/UserCaches/CacheManager.swift /host/spi-builder-workspace/Sources/UserCaches/CodingError.swift /host/spi-builder-workspace/Sources/UserCaches/Conf/ConfRead.swift /host/spi-builder-workspace/Sources/UserCaches/DefaultTypes.swift /host/spi-builder-workspace/Sources/UserCaches/DiscardableCacheContent.swift /host/spi-builder-workspace/Sources/UserCaches/UserCaches.swift /host/spi-builder-workspace/Sources/UserCaches/UserCachesSettable.swift -target aarch64-unknown-linux-android28 -Xllvm -aarch64-use-tbi -disable-objc-interop -sdk /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -sysroot /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -I /host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 4 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins/testing\#/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_android.artifactbundle/swift-android/swift-resources/usr/lib/swift-aarch64 -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/18 -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/CSQLite/Sources/CSQLite/include/module.modulemap -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/checkouts/CSQLite/Sources/CSQLite/include -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/UserCaches.build/Debug-android-aarch64/UserCaches-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/UserCaches.build/Debug-android-aarch64/UserCaches-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/UserCaches.build/Debug-android-aarch64/UserCaches-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name UserCaches -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/UserCaches.build/Debug-android-aarch64/UserCaches-t.build/Objects-normal/aarch64/UserCaches_const_extract_protocols.json -in-process-plugin-server-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/UserCaches.build/Debug-android-aarch64/UserCaches-t.build/Objects-normal/aarch64/Modules/UserCaches.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/UserCaches.build/Debug-android-aarch64/UserCaches-t.build/Objects-normal/aarch64/Modules/UserCaches.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/UserCaches.build/Debug-android-aarch64/UserCaches-t.build/Objects-normal/aarch64/UserCaches-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/UserCaches.build/Debug-android-aarch64/UserCaches-t.build/Objects-normal/aarch64/UserCaches-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/UserCaches.build/Debug-android-aarch64/UserCaches-t.build/Objects-normal/aarch64/UserCaches-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/UserCaches.build/Debug-android-aarch64/UserCaches-t.build/Objects-normal/aarch64/Modules/UserCaches.swiftmodule
error: Build failed
BUILD FAILURE 6.4 android