The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build NotionKit, reference main (c8d916), with Swift 6.2 for Android on 13 Nov 2025 12:03:08 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/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/elvisperlika/notion-kit.git
Reference: main
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/elvisperlika/notion-kit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c8d9160 refactor: impl `HttpHelper` with `post` and `get` methods + avoid double CI with opened PR (#14)
Cloned https://github.com/elvisperlika/notion-kit.git
Revision (git rev-parse @):
c8d91603be60c7d4810effe8ee0c23f172c08bf7
SUCCESS checkout https://github.com/elvisperlika/notion-kit.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/elvisperlika/notion-kit.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/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:d70d83f328e9f1ae04a4e17e63e2d335ae10639f90ee796a5fe3bfb139eab948
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/thebarndog/swift-dotenv.git
[1/471] Fetching swift-dotenv
Fetched https://github.com/thebarndog/swift-dotenv.git from cache (0.26s)
Computing version for https://github.com/thebarndog/swift-dotenv.git
Computed https://github.com/thebarndog/swift-dotenv.git at 2.1.0 (0.75s)
Creating working copy for https://github.com/thebarndog/swift-dotenv.git
Working copy of https://github.com/thebarndog/swift-dotenv.git resolved at 2.1.0
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--11D90AFD9DD3AB2.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/15] Emitting module NotionKit
/host/spi-builder-workspace/Sources/NotionKit/Utility/HTTPUtility.swift:13:68: error: cannot find type 'URLRequest' in scope
11 |   }
12 |
13 |   func post(baseHeader: [String: String], url: URL, body: Data) -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
14 |     return createRequest(baseHeader: baseHeader, url: url, method: HTTPMethod.POST, body: body)
15 |   }
/host/spi-builder-workspace/Sources/NotionKit/Utility/HTTPUtility.swift:17:55: error: cannot find type 'URLRequest' in scope
15 |   }
16 |
17 |   func get(baseHeader: [String: String], url: URL) -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
18 |     return createRequest(baseHeader: baseHeader, url: url, method: HTTPMethod.GET)
19 |   }
/host/spi-builder-workspace/Sources/NotionKit/Utility/HTTPUtility.swift:33:8: error: cannot find type 'URLRequest' in scope
31 |     method: HTTPMethod,
32 |     body: Data? = nil
33 |   ) -> URLRequest {
   |        `- error: cannot find type 'URLRequest' in scope
34 |     var request = URLRequest(url: url)
35 |     request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/NotionKit/Utility/HTTPUtility.swift:49:37: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |   /// - Parameter response: The URLResponse to validate.
48 |   /// - Throws: An error if the response status code is not in the 200-299 range.
49 |   func validateResponse(_ response: URLResponse) throws {
   |                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |     guard let httpResponse = response as? HTTPURLResponse,
51 |       (200...299).contains(httpResponse.statusCode)
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
[4/16] Compiling NotionKit PaginationProtocol.swift
[5/16] Compiling NotionKit SearchPaginator.swift
[6/16] Compiling NotionKit PageMethods.swift
[7/16] Compiling NotionKit PageModels.swift
[8/16] Compiling NotionKit Config.swift
[9/16] Compiling NotionKit NotionClient.swift
[10/16] Compiling NotionKit NotionError.swift
[11/16] Compiling NotionKit NotionProtocol.swift
[12/16] Compiling NotionKit HTTPUtility.swift
/host/spi-builder-workspace/Sources/NotionKit/Utility/HTTPUtility.swift:13:68: error: cannot find type 'URLRequest' in scope
11 |   }
12 |
13 |   func post(baseHeader: [String: String], url: URL, body: Data) -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
14 |     return createRequest(baseHeader: baseHeader, url: url, method: HTTPMethod.POST, body: body)
15 |   }
/host/spi-builder-workspace/Sources/NotionKit/Utility/HTTPUtility.swift:17:55: error: cannot find type 'URLRequest' in scope
15 |   }
16 |
17 |   func get(baseHeader: [String: String], url: URL) -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
18 |     return createRequest(baseHeader: baseHeader, url: url, method: HTTPMethod.GET)
19 |   }
/host/spi-builder-workspace/Sources/NotionKit/Utility/HTTPUtility.swift:33:8: error: cannot find type 'URLRequest' in scope
31 |     method: HTTPMethod,
32 |     body: Data? = nil
33 |   ) -> URLRequest {
   |        `- error: cannot find type 'URLRequest' in scope
34 |     var request = URLRequest(url: url)
35 |     request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/NotionKit/Utility/HTTPUtility.swift:49:37: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |   /// - Parameter response: The URLResponse to validate.
48 |   /// - Throws: An error if the response status code is not in the 200-299 range.
49 |   func validateResponse(_ response: URLResponse) throws {
   |                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |     guard let httpResponse = response as? HTTPURLResponse,
51 |       (200...299).contains(httpResponse.statusCode)
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/NotionKit/Utility/HTTPUtility.swift:34:19: error: cannot find 'URLRequest' in scope
32 |     body: Data? = nil
33 |   ) -> URLRequest {
34 |     var request = URLRequest(url: url)
   |                   `- error: cannot find 'URLRequest' in scope
35 |     request.httpMethod = method.rawValue
36 |     for (headerField, value) in baseHeader {
/host/spi-builder-workspace/Sources/NotionKit/Utility/HTTPUtility.swift:50:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
48 |   /// - Throws: An error if the response status code is not in the 200-299 range.
49 |   func validateResponse(_ response: URLResponse) throws {
50 |     guard let httpResponse = response as? HTTPURLResponse,
   |                                       `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
51 |       (200...299).contains(httpResponse.statusCode)
52 |     else {
/host/spi-builder-workspace/Sources/NotionKit/Utility/HTTPUtility.swift:50:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |   /// - Throws: An error if the response status code is not in the 200-299 range.
49 |   func validateResponse(_ response: URLResponse) throws {
50 |     guard let httpResponse = response as? HTTPURLResponse,
   |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 |       (200...299).contains(httpResponse.statusCode)
52 |     else {
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/NotionKit/Utility/HTTPUtility.swift:51:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 |   func validateResponse(_ response: URLResponse) throws {
50 |     guard let httpResponse = response as? HTTPURLResponse,
51 |       (200...299).contains(httpResponse.statusCode)
   |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |     else {
53 |       throw URLError(.badServerResponse)
[13/16] Compiling NotionKit UserModels.swift
[14/16] Compiling NotionKit Client+Users.swift
/host/spi-builder-workspace/Sources/NotionKit/Utility/HTTPUtility.swift:17:55: error: cannot find type 'URLRequest' in scope
15 |   }
16 |
17 |   func get(baseHeader: [String: String], url: URL) -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
18 |     return createRequest(baseHeader: baseHeader, url: url, method: HTTPMethod.GET)
19 |   }
/host/spi-builder-workspace/Sources/NotionKit/Users/Client+Users.swift:15:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 |     let url = URL(string: "\(baseURL)/users")!
14 |     let request = httpHelper.get(baseHeader: self.baseHeader, url: url)
15 |     let (data, response) = try await URLSession.shared.data(for: request)
   |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
16 |     try httpHelper.validateResponse(response)
17 |     return try JSONDecoder().decode(UserListResponse.self, from: data).results
/host/spi-builder-workspace/Sources/NotionKit/Users/Client+Users.swift:17:12: warning: no calls to throwing functions occur within 'try' expression
15 |     let (data, response) = try await URLSession.shared.data(for: request)
16 |     try httpHelper.validateResponse(response)
17 |     return try JSONDecoder().decode(UserListResponse.self, from: data).results
   |            `- warning: no calls to throwing functions occur within 'try' expression
18 |   }
19 |
/host/spi-builder-workspace/Sources/NotionKit/Users/Client+Users.swift:30:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 |     let url = URL(string: "\(baseURL)/users/\(userId)")!
29 |     let request = httpHelper.get(baseHeader: self.baseHeader, url: url)
30 |     let (data, response) = try await URLSession.shared.data(for: request)
   |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
31 |     try httpHelper.validateResponse(response)
32 |     return try JSONDecoder().decode(NotionUser.self, from: data)
/host/spi-builder-workspace/Sources/NotionKit/Users/Client+Users.swift:44:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
42 |     let url = URL(string: "\(baseURL)/users/me")!
43 |     let request = httpHelper.get(baseHeader: self.baseHeader, url: url)
44 |     let (data, response) = try await URLSession.shared.data(for: request)
   |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
45 |     try httpHelper.validateResponse(response)
46 |     return try JSONDecoder().decode(NotionUser.self, from: data)
[15/16] Compiling NotionKit Client+Search.swift
/host/spi-builder-workspace/Sources/NotionKit/Utility/HTTPUtility.swift:13:68: error: cannot find type 'URLRequest' in scope
11 |   }
12 |
13 |   func post(baseHeader: [String: String], url: URL, body: Data) -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
14 |     return createRequest(baseHeader: baseHeader, url: url, method: HTTPMethod.POST, body: body)
15 |   }
/host/spi-builder-workspace/Sources/NotionKit/Search/Client+Search.swift:37:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 |     )
36 |     let request = httpHelper.post(baseHeader: self.baseHeader, url: url, body: body)
37 |     let (data, response) = try await URLSession.shared.data(for: request)
   |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 |     try httpHelper.validateResponse(response)
39 |     return try JSONDecoder().decode(SearchResponse.self, from: data)
[16/16] Compiling NotionKit SearchModels.swift
/host/spi-builder-workspace/Sources/NotionKit/Utility/HTTPUtility.swift:13:68: error: cannot find type 'URLRequest' in scope
11 |   }
12 |
13 |   func post(baseHeader: [String: String], url: URL, body: Data) -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
14 |     return createRequest(baseHeader: baseHeader, url: url, method: HTTPMethod.POST, body: body)
15 |   }
/host/spi-builder-workspace/Sources/NotionKit/Search/Client+Search.swift:37:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 |     )
36 |     let request = httpHelper.post(baseHeader: self.baseHeader, url: url, body: body)
37 |     let (data, response) = try await URLSession.shared.data(for: request)
   |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 |     try httpHelper.validateResponse(response)
39 |     return try JSONDecoder().decode(SearchResponse.self, from: data)
BUILD FAILURE 6.2 android