The Swift Package Index logo.Swift Package Index

Build Information

Failed to build NotionKit, reference main (c8d916), with Swift 6.1 for Android on 13 Nov 2025 12:03:18 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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 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.1
Building package at path:  $PWD
https://github.com/elvisperlika/notion-kit.git
https://github.com/elvisperlika/notion-kit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-dotenv",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/thebarndog/swift-dotenv.git"
    }
  ],
  "manifest_display_name" : "NotionKit",
  "name" : "NotionKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "NotionKit",
      "targets" : [
        "NotionKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "NotionKitTests",
      "module_type" : "SwiftTarget",
      "name" : "NotionKitTests",
      "path" : "Tests/NotionKitTests",
      "product_dependencies" : [
        "SwiftDotenv"
      ],
      "sources" : [
        "Pages/IconTests.swift",
        "Pagination/PaginationTests.swift",
        "Search/SearchTests.swift",
        "Users/UsersTests.swift",
        "Utility.swift"
      ],
      "target_dependencies" : [
        "NotionKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "NotionKit",
      "module_type" : "SwiftTarget",
      "name" : "NotionKit",
      "path" : "Sources/NotionKit",
      "product_memberships" : [
        "NotionKit"
      ],
      "sources" : [
        "Config.swift",
        "NotionClient.swift",
        "NotionError.swift",
        "NotionProtocol.swift",
        "Pages/PageMethods.swift",
        "Pages/PageModels.swift",
        "Pagination/PaginationProtocol.swift",
        "Pagination/SearchPaginator.swift",
        "Search/Client+Search.swift",
        "Search/SearchModels.swift",
        "Users/Client+Users.swift",
        "Users/UserModels.swift",
        "Utility/HTTPUtility.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.1"
}
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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:496d77b037d0552dd779110e0d7093275ebb8376a63c7a364a5a4acca11a4ff5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-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.79s)
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-24593BA9C3E375BF.txt
[3/15] Compiling NotionKit PageMethods.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[4/15] Compiling NotionKit PageModels.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[5/15] Compiling NotionKit PaginationProtocol.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[6/15] Compiling NotionKit SearchPaginator.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[7/16] Compiling NotionKit NotionError.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[8/16] Compiling NotionKit NotionProtocol.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/16] Emitting module NotionKit
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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
[10/16] Compiling NotionKit Config.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[11/16] Compiling NotionKit NotionClient.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[12/16] Compiling NotionKit Client+Search.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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)
[13/16] Compiling NotionKit SearchModels.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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)
[14/16] Compiling NotionKit UserModels.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[15/16] Compiling NotionKit Client+Users.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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)
[16/16] Compiling NotionKit HTTPUtility.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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)
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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:496d77b037d0552dd779110e0d7093275ebb8376a63c7a364a5a4acca11a4ff5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/14] 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)
[3/15] 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)
[4/15] 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)
[5/15] Compiling NotionKit PaginationProtocol.swift
[6/15] Compiling NotionKit SearchPaginator.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/15] Compiling NotionKit Config.swift
[8/15] Compiling NotionKit NotionClient.swift
[9/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
[10/15] 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)
[11/15] Compiling NotionKit UserModels.swift
[12/15] Compiling NotionKit PageMethods.swift
[13/15] Compiling NotionKit PageModels.swift
[14/15] Compiling NotionKit NotionError.swift
[15/15] Compiling NotionKit NotionProtocol.swift
BUILD FAILURE 6.1 android