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 v0.2.0 (4a4adc), with Swift 6.2 for Android on 7 Nov 2025 15:47:03 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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: v0.2.0
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
 * tag               v0.2.0     -> FETCH_HEAD
HEAD is now at 4a4adc0 Merge pull request #11 from elvisperlika/search
Cloned https://github.com/elvisperlika/notion-kit.git
Revision (git rev-parse @):
4a4adc01166d5c5072f60320f199b9c20ee067a4
SUCCESS checkout https://github.com/elvisperlika/notion-kit.git at v0.2.0
========================================
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-4606859-0":/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.20s)
Computing version for https://github.com/thebarndog/swift-dotenv.git
Computed https://github.com/thebarndog/swift-dotenv.git at 2.1.0 (0.57s)
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
[3/13] Compiling NotionKit SearchModels.swift
[4/14] Compiling NotionKit Client+Search.swift
/host/spi-builder-workspace/Sources/NotionKit/Utility/HTTPUtilty.swift:14:6: error: cannot find type 'URLRequest' in scope
12 |   url: URL,
13 |   method: String
14 | ) -> URLRequest {
   |      `- error: cannot find type 'URLRequest' in scope
15 |   var request = URLRequest(url: url)
16 |   request.httpMethod = method
/host/spi-builder-workspace/Sources/NotionKit/Search/Client+Search.swift:39:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
37 |     )
38 |
39 |     let (data, response) = try await URLSession.shared.data(for: request)
   |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
40 |     try validateResponse(response)
41 |     let searchResponse = try JSONDecoder().decode(SearchResponse.self, from: data)
[5/14] Compiling NotionKit Client+Users.swift
/host/spi-builder-workspace/Sources/NotionKit/Utility/HTTPUtilty.swift:14:6: error: cannot find type 'URLRequest' in scope
12 |   url: URL,
13 |   method: String
14 | ) -> URLRequest {
   |      `- error: cannot find type 'URLRequest' in scope
15 |   var request = URLRequest(url: url)
16 |   request.httpMethod = method
/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 = createRequest(baseHeader: self.baseHeader, url: url, method: "GET")
15 |     let (data, response) = try await URLSession.shared.data(for: request)
   |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
16 |     try validateResponse(response)
17 |     let usersResponse = try JSONDecoder().decode(UserListResponse.self, from: data)
/host/spi-builder-workspace/Sources/NotionKit/Users/Client+Users.swift:31:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
29 |     let url = URL(string: "\(baseURL)/users/\(userId)")!
30 |     let request = createRequest(baseHeader: self.baseHeader, url: url, method: "GET")
31 |     let (data, response) = try await URLSession.shared.data(for: request)
   |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
32 |     try validateResponse(response)
33 |     let user = try JSONDecoder().decode(NotionUser.self, from: data)
/host/spi-builder-workspace/Sources/NotionKit/Users/Client+Users.swift:46:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 |     let url = URL(string: "\(baseURL)/users/me")!
45 |     let request = createRequest(baseHeader: self.baseHeader, url: url, method: "GET")
46 |     let (data, response) = try await URLSession.shared.data(for: request)
   |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 |     try validateResponse(response)
48 |     let user = try JSONDecoder().decode(NotionUser.self, from: data)
[6/14] Compiling NotionKit HTTPUtilty.swift
/host/spi-builder-workspace/Sources/NotionKit/Utility/HTTPUtilty.swift:14:6: error: cannot find type 'URLRequest' in scope
12 |   url: URL,
13 |   method: String
14 | ) -> URLRequest {
   |      `- error: cannot find type 'URLRequest' in scope
15 |   var request = URLRequest(url: url)
16 |   request.httpMethod = method
/host/spi-builder-workspace/Sources/NotionKit/Utility/HTTPUtilty.swift:27:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Parameter response: The URLResponse to validate.
26 | /// - Throws: An error if the response status code is not in the 200-299 range.
27 | func validateResponse(_ response: URLResponse) throws {
   |                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |   guard let httpResponse = response as? HTTPURLResponse,
29 |     (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/HTTPUtilty.swift:15:17: error: cannot find 'URLRequest' in scope
13 |   method: String
14 | ) -> URLRequest {
15 |   var request = URLRequest(url: url)
   |                 `- error: cannot find 'URLRequest' in scope
16 |   request.httpMethod = method
17 |   for (headerField, value) in baseHeader {
/host/spi-builder-workspace/Sources/NotionKit/Utility/HTTPUtilty.swift:28:37: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
26 | /// - Throws: An error if the response status code is not in the 200-299 range.
27 | func validateResponse(_ response: URLResponse) throws {
28 |   guard let httpResponse = response as? HTTPURLResponse,
   |                                     `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
29 |     (200...299).contains(httpResponse.statusCode)
30 |   else {
/host/spi-builder-workspace/Sources/NotionKit/Utility/HTTPUtilty.swift:28:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | /// - Throws: An error if the response status code is not in the 200-299 range.
27 | func validateResponse(_ response: URLResponse) throws {
28 |   guard let httpResponse = response as? HTTPURLResponse,
   |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |     (200...299).contains(httpResponse.statusCode)
30 |   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/HTTPUtilty.swift:29:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
27 | func validateResponse(_ response: URLResponse) throws {
28 |   guard let httpResponse = response as? HTTPURLResponse,
29 |     (200...299).contains(httpResponse.statusCode)
   |                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |   else {
31 |     throw URLError(.badServerResponse)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/14] Compiling NotionKit PageModels.swift
[8/14] Compiling NotionKit Pagination.swift
[9/14] Emitting module NotionKit
/host/spi-builder-workspace/Sources/NotionKit/Utility/HTTPUtilty.swift:14:6: error: cannot find type 'URLRequest' in scope
12 |   url: URL,
13 |   method: String
14 | ) -> URLRequest {
   |      `- error: cannot find type 'URLRequest' in scope
15 |   var request = URLRequest(url: url)
16 |   request.httpMethod = method
/host/spi-builder-workspace/Sources/NotionKit/Utility/HTTPUtilty.swift:27:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Parameter response: The URLResponse to validate.
26 | /// - Throws: An error if the response status code is not in the 200-299 range.
27 | func validateResponse(_ response: URLResponse) throws {
   |                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |   guard let httpResponse = response as? HTTPURLResponse,
29 |     (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
[10/14] Compiling NotionKit NotionError.swift
[11/14] Compiling NotionKit NotionProtocol.swift
[12/14] Compiling NotionKit Config.swift
[13/14] Compiling NotionKit NotionClient.swift
[14/14] Compiling NotionKit UserModels.swift
BUILD FAILURE 6.2 android