The Swift Package Index logo.Swift Package Index

Build Information

Failed to build IBMWatsonRestKit, reference master (724572), with Swift 6.4 for Android on 16 Sep 2026 19:57:48 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/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/watson-developer-cloud/restkit.git
Reference: master
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/watson-developer-cloud/restkit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 7245729 Merge pull request #26 from watson-developer-cloud/ci/automated-release
Cloned https://github.com/watson-developer-cloud/restkit.git
Revision (git rev-parse @):
7245729a223b69e813a1fa9fa2de87053b2f5ea6
SUCCESS checkout https://github.com/watson-developer-cloud/restkit.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.4
Building package at path:  $PWD
https://github.com/watson-developer-cloud/restkit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/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
Building for debugging...
[Planning deferred tasks]
error: SwiftCompile normal aarch64 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:43:32: error: cannot find type 'URLRequest' in scope
 41 |      - parameter completionHandler: The completion handler to execute with the authenticated `URLRequest`.
 42 |      */
 43 |     func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void)
    |                                `- error: cannot find type 'URLRequest' in scope
 44 | }
 45 |
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:43:74: error: cannot find type 'URLRequest' in scope
 41 |      - parameter completionHandler: The completion handler to execute with the authenticated `URLRequest`.
 42 |      */
 43 |     func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void)
    |                                                                          `- error: cannot find type 'URLRequest' in scope
 44 | }
 45 |
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:52:39: error: cannot find type 'URLRequest' in scope
 50 |     }
 51 |
 52 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                       `- error: cannot find type 'URLRequest' in scope
 53 |         completionHandler(request, nil)
 54 |     }
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:52:81: error: cannot find type 'URLRequest' in scope
 50 |     }
 51 |
 52 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                                                                 `- error: cannot find type 'URLRequest' in scope
 53 |         completionHandler(request, nil)
 54 |     }
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:82:39: error: cannot find type 'URLRequest' in scope
 80 |     }
 81 |
 82 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                       `- error: cannot find type 'URLRequest' in scope
 83 |         var request = request
 84 |         getToken {
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:82:81: error: cannot find type 'URLRequest' in scope
 80 |     }
 81 |
 82 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                                                                 `- error: cannot find type 'URLRequest' in scope
 83 |         var request = request
 84 |         getToken {
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:143:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 |      - parameter data: raw body data from the token url response
142 |      */
143 |     private func errorResponseDecoder(data: Data, response: HTTPURLResponse) -> RestError {
    |                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 |         // default error description
145 |         let code = response.statusCode
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:188:39: error: cannot find type 'URLRequest' in scope
186 |
187 |     // Dummy method
188 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                       `- error: cannot find type 'URLRequest' in scope
189 |         completionHandler(request, nil)
190 |     }
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:188:81: error: cannot find type 'URLRequest' in scope
186 |
187 |     // Dummy method
188 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                                                                 `- error: cannot find type 'URLRequest' in scope
189 |         completionHandler(request, nil)
190 |     }
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:208:39: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                       `- error: cannot find type 'URLRequest' in scope
209 |         var request = request
210 |         request.addValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:208:81: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                                                                 `- error: cannot find type 'URLRequest' in scope
209 |         var request = request
210 |         request.addValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:221:77: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
219 |     private let url: String
220 |     private var token: IAMToken?
221 |     private let session = URLSession(configuration: URLSessionConfiguration.default)
    |                                                                             `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
222 |
223 |     public init(apiKey: String, url: String? = nil) {
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:233:62: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
231 |     }
232 |
233 |     internal func errorResponseDecoder(data: Data, response: HTTPURLResponse) -> RestError {
    |                                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 |         var errorMessage: String?
235 |         var metadata = [String: Any]()
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:265:39: error: cannot find type 'URLRequest' in scope
263 |     }
264 |
265 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                       `- error: cannot find type 'URLRequest' in scope
266 |         var request = request
267 |         getToken { token, error in
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:265:81: error: cannot find type 'URLRequest' in scope
263 |     }
264 |
265 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                                                                 `- error: cannot find type 'URLRequest' in scope
266 |         var request = request
267 |         getToken { token, error in
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:27:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |     public static var userAgent: String?
 26 |
 27 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     internal var authMethod: AuthenticationMethod
 29 |     internal var errorResponseDecoder: ((Data, HTTPURLResponse) -> RestError)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:29:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |     private let session: URLSession
 28 |     internal var authMethod: AuthenticationMethod
 29 |     internal var errorResponseDecoder: ((Data, HTTPURLResponse) -> RestError)
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     internal var method: String
 31 |     internal var url: String
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:37:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |     public init(
 37 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |         authMethod: AuthenticationMethod,
 39 |         errorResponseDecoder: @escaping ((Data, HTTPURLResponse) -> RestError),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:39:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |         session: URLSession,
 38 |         authMethod: AuthenticationMethod,
 39 |         errorResponseDecoder: @escaping ((Data, HTTPURLResponse) -> RestError),
    |                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         method: String,
 41 |         url: String,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:56:29: error: cannot find type 'URLRequest' in scope
 54 |     }
 55 |
 56 |     private var urlRequest: URLRequest? {
    |                             `- error: cannot find type 'URLRequest' in scope
 57 |         guard var components = URLComponents(string: url) else {
 58 |             return nil
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:87:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |      */
 86 |     internal func execute(
 87 |         completionHandler: @escaping (Data?, HTTPURLResponse?, RestError?) -> Void)
    |                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |     {
 89 |         // add authentication credentials to the request
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:288:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
286 |     public func download(
287 |         to destination: URL,
288 |         completionHandler: @escaping (HTTPURLResponse?, RestError?) -> Void)
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
289 |     {
290 |         // add authentication credentials to the request
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RestKit/RestResponse.swift:47:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |     }
46 |
47 |     internal init(response: HTTPURLResponse) {
   |                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |         var headers: [String: String] = [:]
49 |         for (key, value) in response.allHeaderFields {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
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/RestKit/Authentication.swift /host/spi-builder-workspace/Sources/RestKit/CodableExtensions.swift /host/spi-builder-workspace/Sources/RestKit/JSON.swift /host/spi-builder-workspace/Sources/RestKit/MultipartFormData.swift /host/spi-builder-workspace/Sources/RestKit/RestError.swift /host/spi-builder-workspace/Sources/RestKit/RestRequest.swift /host/spi-builder-workspace/Sources/RestKit/RestResponse.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 -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/out/Products/Debug-android-aarch64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/IBMWatsonRestKit.build/Debug-android-aarch64/RestKit-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/IBMWatsonRestKit.build/Debug-android-aarch64/RestKit-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/IBMWatsonRestKit.build/Debug-android-aarch64/RestKit-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name RestKit -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/IBMWatsonRestKit.build/Debug-android-aarch64/RestKit-t.build/Objects-normal/aarch64/RestKit_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/IBMWatsonRestKit.build/Debug-android-aarch64/RestKit-t.build/Objects-normal/aarch64/Modules/RestKit.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/IBMWatsonRestKit.build/Debug-android-aarch64/RestKit-t.build/Objects-normal/aarch64/Modules/RestKit.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/IBMWatsonRestKit.build/Debug-android-aarch64/RestKit-t.build/Objects-normal/aarch64/RestKit-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/IBMWatsonRestKit.build/Debug-android-aarch64/RestKit-t.build/Objects-normal/aarch64/RestKit-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/IBMWatsonRestKit.build/Debug-android-aarch64/RestKit-t.build/Objects-normal/aarch64/RestKit-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/IBMWatsonRestKit.build/Debug-android-aarch64/RestKit-t.build/Objects-normal/aarch64/Modules/RestKit.swiftmodule
error: Build failed
BUILD FAILURE 6.4 android