Build Information
Failed to build SynchronousNetworking, reference 0.0.1 (bef4b3), with Swift 6.3 for Android on 10 Apr 2026 14:15:17 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/heshammegid/synchronousnetworking.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/heshammegid/synchronousnetworking
* tag 0.0.1 -> FETCH_HEAD
HEAD is now at bef4b3d Initial Commit
Cloned https://github.com/heshammegid/synchronousnetworking.git
Revision (git rev-parse @):
bef4b3d4adfd234f08a9de422da11aa2990fb7e2
SUCCESS checkout https://github.com/heshammegid/synchronousnetworking.git at 0.0.1
========================================
Build
========================================
Selected platform: android
Swift version: 6.3
Building package at path: $PWD
https://github.com/heshammegid/synchronousnetworking.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--4F562202D5529B1.txt
[3/6] Compiling SynchronousNetworking SynchronousNetworking.swift
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:5:30: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
3 | public struct SynchronousNetworking {
4 | let baseUrl: URL
5 | let session = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
6 |
7 | public init(baseUrl: URL) {
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:52:88: error: cannot find type 'URLRequest' in scope
50 | }
51 |
52 | func requestByAdding(headers: [String: String], forRequest request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
53 | var requestWithHeader = request
54 |
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:52:73: error: cannot find type 'URLRequest' in scope
50 | }
51 |
52 | func requestByAdding(headers: [String: String], forRequest request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
53 | var requestWithHeader = request
54 |
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:62:45: error: cannot find type 'URLRequest' in scope
60 | }
61 |
62 | func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
| `- error: cannot find type 'URLRequest' in scope
63 | let semaphore = DispatchSemaphore(value: 0)
64 | var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:81:86: error: cannot find type 'URLRequest' in scope
79 | }
80 |
81 | func jsonBodyHttpRequest(url: URL, method: String, parameters: [String: Any]) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
82 | var urlRequest = URLRequest(url: url)
83 | let jsonData = try? JSONSerialization.data(withJSONObject: parameters)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:97:72: error: cannot find type 'URLRequest' in scope
95 | }
96 |
97 | func urlEncodedHttpRequest(url: URL, parameters: [String: Any]) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
98 | let query = queryStringFor(parameters: parameters)
99 | let encodedURL = url.appending(query: query)
/host/spi-builder-workspace/Sources/SynchronousNetworking/NetworkResponse.swift:4:25: error: cannot find type 'URLRequest' in scope
2 |
3 | public struct NetworkResponse {
4 | public var request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
5 | public var response: HTTPURLResponse?
6 | public var data: Data?
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:64:46: error: argument passed to call that takes no arguments
62 | func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
63 | let semaphore = DispatchSemaphore(value: 0)
64 | var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
| `- error: argument passed to call that takes no arguments
65 |
66 | let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:64:56: error: 'nil' requires a contextual type
62 | func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
63 | let semaphore = DispatchSemaphore(value: 0)
64 | var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
| `- error: 'nil' requires a contextual type
65 |
66 | let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:64:71: error: 'nil' requires a contextual type
62 | func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
63 | let semaphore = DispatchSemaphore(value: 0)
64 | var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
| `- error: 'nil' requires a contextual type
65 |
66 | let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:64:82: error: 'nil' requires a contextual type
62 | func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
63 | let semaphore = DispatchSemaphore(value: 0)
64 | var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
| `- error: 'nil' requires a contextual type
65 |
66 | let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:64:94: error: 'nil' requires a contextual type
62 | func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
63 | let semaphore = DispatchSemaphore(value: 0)
64 | var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
| `- error: 'nil' requires a contextual type
65 |
66 | let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:82:26: error: cannot find 'URLRequest' in scope
80 |
81 | func jsonBodyHttpRequest(url: URL, method: String, parameters: [String: Any]) -> URLRequest {
82 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
83 | let jsonData = try? JSONSerialization.data(withJSONObject: parameters)
84 | urlRequest.httpBody = jsonData
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:101:26: error: cannot find 'URLRequest' in scope
99 | let encodedURL = url.appending(query: query)
100 |
101 | var urlRequest = URLRequest(url: encodedURL)
| `- error: cannot find 'URLRequest' in scope
102 | urlRequest.httpMethod = "GET"
103 |
[4/6] Compiling SynchronousNetworking NetworkResponse.swift
/host/spi-builder-workspace/Sources/SynchronousNetworking/NetworkResponse.swift:4:25: error: cannot find type 'URLRequest' in scope
2 |
3 | public struct NetworkResponse {
4 | public var request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
5 | public var response: HTTPURLResponse?
6 | public var data: Data?
/host/spi-builder-workspace/Sources/SynchronousNetworking/NetworkResponse.swift:5:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 | public struct NetworkResponse {
4 | public var request: URLRequest?
5 | public var response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | public var data: Data?
7 | public var error: Error?
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
[5/6] Compiling SynchronousNetworking URL+Additions.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/6] Emitting module SynchronousNetworking
/host/spi-builder-workspace/Sources/SynchronousNetworking/NetworkResponse.swift:4:25: error: cannot find type 'URLRequest' in scope
2 |
3 | public struct NetworkResponse {
4 | public var request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
5 | public var response: HTTPURLResponse?
6 | public var data: Data?
/host/spi-builder-workspace/Sources/SynchronousNetworking/NetworkResponse.swift:5:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 | public struct NetworkResponse {
4 | public var request: URLRequest?
5 | public var response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | public var data: Data?
7 | public var error: Error?
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/SynchronousNetworking/SynchronousNetworking.swift:5:30: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
3 | public struct SynchronousNetworking {
4 | let baseUrl: URL
5 | let session = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
6 |
7 | public init(baseUrl: URL) {
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:52:88: error: cannot find type 'URLRequest' in scope
50 | }
51 |
52 | func requestByAdding(headers: [String: String], forRequest request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
53 | var requestWithHeader = request
54 |
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:52:73: error: cannot find type 'URLRequest' in scope
50 | }
51 |
52 | func requestByAdding(headers: [String: String], forRequest request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
53 | var requestWithHeader = request
54 |
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:62:45: error: cannot find type 'URLRequest' in scope
60 | }
61 |
62 | func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
| `- error: cannot find type 'URLRequest' in scope
63 | let semaphore = DispatchSemaphore(value: 0)
64 | var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:81:86: error: cannot find type 'URLRequest' in scope
79 | }
80 |
81 | func jsonBodyHttpRequest(url: URL, method: String, parameters: [String: Any]) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
82 | var urlRequest = URLRequest(url: url)
83 | let jsonData = try? JSONSerialization.data(withJSONObject: parameters)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:97:72: error: cannot find type 'URLRequest' in scope
95 | }
96 |
97 | func urlEncodedHttpRequest(url: URL, parameters: [String: Any]) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
98 | let query = queryStringFor(parameters: parameters)
99 | let encodedURL = url.appending(query: query)
BUILD FAILURE 6.3 android