Build Information
Failed to build Interceptor, reference 0.0.1 (362b5a), with Swift 6.2 for Android on 22 Jun 2025 23:21:37 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bfernandesbfs/Interceptor.git
Reference: 0.0.1
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/bfernandesbfs/Interceptor
* tag 0.0.1 -> FETCH_HEAD
HEAD is now at 362b5a9 Merge pull request #1 from bfernandesbfs/ci
Cloned https://github.com/bfernandesbfs/Interceptor.git
Revision (git rev-parse @):
362b5a9db18ea4ca15f4cd51c3682ccff51fdeb7
SUCCESS checkout https://github.com/bfernandesbfs/Interceptor.git at 0.0.1
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/bfernandesbfs/Interceptor.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/bfernandesbfs/Responder.git
[1/72] Fetching responder
Fetched https://github.com/bfernandesbfs/Responder.git from cache (0.26s)
Computing version for https://github.com/bfernandesbfs/Responder.git
Computed https://github.com/bfernandesbfs/Responder.git at 0.0.1 (0.76s)
Creating working copy for https://github.com/bfernandesbfs/Responder.git
Working copy of https://github.com/bfernandesbfs/Responder.git resolved at 0.0.1
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-8C5A4AE7A8CE2BA.txt
[4/6] Emitting module Responder
[5/6] Compiling Responder Responder.swift
[6/6] Compiling Responder Event.swift
[8/12] Compiling Interceptor ResponseInterceptor.swift
/host/spi-builder-workspace/Sources/Interceptor/Public/ResponseInterceptor.swift:4:45: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public protocol ResponseInterceptor {
4 | func intercept(_ data: Data?, response: URLResponse?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | }
6 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[9/12] Compiling Interceptor RequestInterceptor.swift
/host/spi-builder-workspace/Sources/Interceptor/Public/RequestInterceptor.swift:4:37: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol RequestInterceptor {
4 | func intercept(_ request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
5 | }
6 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/12] Compiling Interceptor InterceptorObject.swift
[11/12] Emitting module Interceptor
/host/spi-builder-workspace/Sources/Interceptor/Public/Interceptor.swift:4:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 | import Responder
3 |
4 | public typealias SessionComppletion = (Data?, URLResponse?, Error?) -> Void
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | public class Interceptor {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Interceptor/Public/RequestInterceptor.swift:4:37: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol RequestInterceptor {
4 | func intercept(_ request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/Interceptor/Public/Interceptor.swift:28:47: error: cannot find type 'URLRequest' in scope
26 | }
27 |
28 | public func applyRequest(_ request: inout URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
29 | try self.test { (interceptor: InterceptorObject<RequestInterceptor>) in
30 | try interceptor.wrapperValue.intercept(&request)
/host/spi-builder-workspace/Sources/Interceptor/Public/ResponseInterceptor.swift:4:45: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public protocol ResponseInterceptor {
4 | func intercept(_ data: Data?, response: URLResponse?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | }
6 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[12/12] Compiling Interceptor Interceptor.swift
/host/spi-builder-workspace/Sources/Interceptor/Public/Interceptor.swift:4:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 | import Responder
3 |
4 | public typealias SessionComppletion = (Data?, URLResponse?, Error?) -> Void
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | public class Interceptor {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Interceptor/Public/RequestInterceptor.swift:4:37: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol RequestInterceptor {
4 | func intercept(_ request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/Interceptor/Public/Interceptor.swift:28:47: error: cannot find type 'URLRequest' in scope
26 | }
27 |
28 | public func applyRequest(_ request: inout URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
29 | try self.test { (interceptor: InterceptorObject<RequestInterceptor>) in
30 | try interceptor.wrapperValue.intercept(&request)
BUILD FAILURE 6.2 android