The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SynchronousNetworking, reference master (72209d), with Swift 6.2 for Android on 17 Jun 2025 17:45:11 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>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/heshammegid/synchronousnetworking.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/heshammegid/synchronousnetworking
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 72209dc Adds build script utilizing Anka.
Cloned https://github.com/heshammegid/synchronousnetworking.git
Revision (git rev-parse @):
72209dc62a1362d40374abd70bdc58a8d70f4b10
SUCCESS checkout https://github.com/heshammegid/synchronousnetworking.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
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" 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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-8C5A4AE7A8CE2BA.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Compiling SynchronousNetworking URL+Additions.swift
[4/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:64:88: error: cannot find type 'URLRequest' in scope
 62 |     }
 63 |
 64 |     func requestByAdding(headers: [String: String], forRequest request: URLRequest) -> URLRequest {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
 65 |         var requestWithHeader = request
 66 |
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:64:73: error: cannot find type 'URLRequest' in scope
 62 |     }
 63 |
 64 |     func requestByAdding(headers: [String: String], forRequest request: URLRequest) -> URLRequest {
    |                                                                         `- error: cannot find type 'URLRequest' in scope
 65 |         var requestWithHeader = request
 66 |
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:74:45: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
    |                                             `- error: cannot find type 'URLRequest' in scope
 75 |         let semaphore = DispatchSemaphore(value: 0)
 76 |         var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:93:86: error: cannot find type 'URLRequest' in scope
 91 |     }
 92 |
 93 |     func jsonBodyHttpRequest(url: URL, method: String, parameters: [String: Any]) -> URLRequest {
    |                                                                                      `- error: cannot find type 'URLRequest' in scope
 94 |         var urlRequest = URLRequest(url: url)
 95 |         let jsonData = try? JSONSerialization.data(withJSONObject: parameters)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:109:72: error: cannot find type 'URLRequest' in scope
107 |     }
108 |
109 |     func urlEncodedHttpRequest(url: URL, parameters: [String: Any]) -> URLRequest {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
110 |         let query = queryStringFor(parameters: parameters)
111 |         let encodedURL = url.appending(query: query)
[5/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:64:88: error: cannot find type 'URLRequest' in scope
 62 |     }
 63 |
 64 |     func requestByAdding(headers: [String: String], forRequest request: URLRequest) -> URLRequest {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
 65 |         var requestWithHeader = request
 66 |
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:64:73: error: cannot find type 'URLRequest' in scope
 62 |     }
 63 |
 64 |     func requestByAdding(headers: [String: String], forRequest request: URLRequest) -> URLRequest {
    |                                                                         `- error: cannot find type 'URLRequest' in scope
 65 |         var requestWithHeader = request
 66 |
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:74:45: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
    |                                             `- error: cannot find type 'URLRequest' in scope
 75 |         let semaphore = DispatchSemaphore(value: 0)
 76 |         var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:93:86: error: cannot find type 'URLRequest' in scope
 91 |     }
 92 |
 93 |     func jsonBodyHttpRequest(url: URL, method: String, parameters: [String: Any]) -> URLRequest {
    |                                                                                      `- error: cannot find type 'URLRequest' in scope
 94 |         var urlRequest = URLRequest(url: url)
 95 |         let jsonData = try? JSONSerialization.data(withJSONObject: parameters)
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:109:72: error: cannot find type 'URLRequest' in scope
107 |     }
108 |
109 |     func urlEncodedHttpRequest(url: URL, parameters: [String: Any]) -> URLRequest {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
110 |         let query = queryStringFor(parameters: parameters)
111 |         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:76:46: error: argument passed to call that takes no arguments
 74 |     func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
 75 |         let semaphore = DispatchSemaphore(value: 0)
 76 |         var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
    |                                              `- error: argument passed to call that takes no arguments
 77 |
 78 |         let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:76:56: error: 'nil' requires a contextual type
 74 |     func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
 75 |         let semaphore = DispatchSemaphore(value: 0)
 76 |         var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
    |                                                        `- error: 'nil' requires a contextual type
 77 |
 78 |         let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:76:71: error: 'nil' requires a contextual type
 74 |     func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
 75 |         let semaphore = DispatchSemaphore(value: 0)
 76 |         var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
    |                                                                       `- error: 'nil' requires a contextual type
 77 |
 78 |         let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:76:82: error: 'nil' requires a contextual type
 74 |     func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
 75 |         let semaphore = DispatchSemaphore(value: 0)
 76 |         var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
    |                                                                                  `- error: 'nil' requires a contextual type
 77 |
 78 |         let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:76:94: error: 'nil' requires a contextual type
 74 |     func performSynchronousRequest(request: URLRequest) -> NetworkResponse {
 75 |         let semaphore = DispatchSemaphore(value: 0)
 76 |         var networkResponse = NetworkResponse(request: nil, response: nil, data: nil, error: nil)
    |                                                                                              `- error: 'nil' requires a contextual type
 77 |
 78 |         let task = session.dataTask(with: request) { (data, urlResponse, error) in
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:94:26: error: cannot find 'URLRequest' in scope
 92 |
 93 |     func jsonBodyHttpRequest(url: URL, method: String, parameters: [String: Any]) -> URLRequest {
 94 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
 95 |         let jsonData = try? JSONSerialization.data(withJSONObject: parameters)
 96 |         urlRequest.httpBody = jsonData
/host/spi-builder-workspace/Sources/SynchronousNetworking/SynchronousNetworking.swift:113:26: error: cannot find 'URLRequest' in scope
111 |         let encodedURL = url.appending(query: query)
112 |
113 |         var urlRequest = URLRequest(url: encodedURL)
    |                          `- error: cannot find 'URLRequest' in scope
114 |         urlRequest.httpMethod = "GET"
115 |
[6/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
BUILD FAILURE 6.2 android