The Swift Package Index logo.Swift Package Index

Build Information

Failed to build NotionSwift with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/chojnac/NotionSwift.git
Reference: 0.8.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/chojnac/NotionSwift
 * tag               0.8.0      -> FETCH_HEAD
HEAD is now at 56c0c3a version 0.8.0
Cloned https://github.com/chojnac/NotionSwift.git
Revision (git rev-parse @):
56c0c3a0dca35583aab0ef26fe2694e4c303bb72
SUCCESS checkout https://github.com/chojnac/NotionSwift.git at 0.8.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/chojnac/NotionSwift.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/57] Emitting module NotionSwift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:173:10: error: cannot find type 'URLRequest' in scope
    ) -> URLRequest {
         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:184:18: error: cannot find type 'URLRequest' in scope
        request: URLRequest,
                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:8:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public static func extractError(data: Data?, response: URLResponse?, error: Error?) -> NotionClientError? {
                                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:16:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
                                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
[4/64] Compiling NotionSwift NotionClient+Pages.swift
[5/64] Compiling NotionSwift NotionClient+Search.swift
[6/64] Compiling NotionSwift NotionClient+Users.swift
[7/64] Compiling NotionSwift NotionClient.swift
[8/64] Compiling NotionSwift NotionClientError.swift
[9/64] Compiling NotionSwift NotionClientType+Combine.swift
[10/64] Compiling NotionSwift NotionClientType.swift
[11/64] Compiling NotionSwift BlockType+Values.swift
[12/64] Compiling NotionSwift BlockType.swift
[13/64] Compiling NotionSwift ReadBlock.swift
[14/64] Compiling NotionSwift UpdateBlock.swift
[15/64] Compiling NotionSwift WriteBlock+Builders.swift
[16/64] Compiling NotionSwift WriteBlock.swift
[17/64] Compiling NotionSwift CoverFile.swift
[18/64] Compiling NotionSwift Database.swift
[19/64] Compiling NotionSwift PageCreateRequest.swift
[20/64] Compiling NotionSwift PageProperiesUpdateRequest.swift
[21/64] Compiling NotionSwift SearchRequest.swift
[22/64] Compiling NotionSwift ListResponse.swift
[23/64] Compiling NotionSwift SearchResponse.swift
[24/64] Compiling NotionSwift RichText+extensions.swift
[25/64] Compiling NotionSwift RichText.swift
[26/64] Compiling NotionSwift AccessKeyProvider.swift
[27/64] Compiling NotionSwift EntityIdentifier.swift
[28/64] Compiling NotionSwift Logger.swift
[29/64] Compiling NotionSwift Types.swift
[30/64] Compiling NotionSwift Environment.swift
[31/64] Compiling NotionSwift Block.swift
[32/64] Compiling NotionSwift BlockColor.swift
[33/64] Compiling NotionSwift BlockType+Builders.swift
[34/64] Compiling NotionSwift DatabaseParent.swift
[35/64] Compiling NotionSwift DatabaseProperty.swift
[36/64] Compiling NotionSwift DatabasePropertyType.swift
[37/64] Compiling NotionSwift DateRange.swift
[38/64] Compiling NotionSwift DateValue.swift
[39/64] Compiling NotionSwift ErrorResponse.swift
[40/64] Compiling NotionSwift FileFile.swift
[41/64] Compiling NotionSwift IconFile.swift
[42/64] Compiling NotionSwift Mention.swift
[43/64] Compiling NotionSwift NotionLink.swift
[44/64] Compiling NotionSwift Page.swift
[45/64] Compiling NotionSwift PageParentType.swift
[46/64] Compiling NotionSwift PageProperty.swift
[47/64] Compiling NotionSwift PartialUser.swift
[48/64] Compiling NotionSwift BaseQueryParams.swift
[49/64] Compiling NotionSwift DatabaseCreateRequest.swift
[50/64] Compiling NotionSwift DatabaseQueryParams.swift
[51/64] Compiling NotionSwift DatabaseSort.swift
[52/64] Compiling NotionSwift DatabaseUpdateRequest.swift
[53/64] Compiling NotionSwift CompountFilterType.swift
[54/64] Compiling NotionSwift DatabaseFilter.swift
[55/64] Compiling NotionSwift DatabaseFilterType.swift
[56/64] Compiling NotionSwift DatabasePropertyFilter+Encodable.swift
[57/64] Compiling NotionSwift DatabasePropertyFilter.swift
[58/64] Compiling NotionSwift User.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:173:10: error: cannot find type 'URLRequest' in scope
    ) -> URLRequest {
         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:184:18: error: cannot find type 'URLRequest' in scope
        request: URLRequest,
                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:75:45: error: cannot infer contextual base in reference to member 'GET'
        let request = buildRequest(method: .GET, url: url, headers: headers)
                                           ~^~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:85:45: error: cannot infer contextual base in reference to member 'POST'
        var request = buildRequest(method: .POST, url: url, headers: headers)
                                           ~^~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:107:45: error: cannot infer contextual base in reference to member 'PATCH'
        var request = buildRequest(method: .PATCH, url: url, headers: headers)
                                           ~^~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:149:45: error: cannot infer contextual base in reference to member 'DELETE'
        var request = buildRequest(method: .DELETE, url: url, headers: headers)
                                           ~^~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:174:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:188:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let task = URLSession.shared.dataTask(with: request) { data, response, error in
                   ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:191:68: error: cannot convert value of type '_' to expected argument type 'Data?'
            if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
                                                                   ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:191:84: error: argument type '_' expected to be an instance of a class or class-constrained type
            if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
                                                                                   ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:8:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public static func extractError(data: Data?, response: URLResponse?, error: Error?) -> NotionClientError? {
                                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:16:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
                                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:17:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
        guard let response = response as? HTTPURLResponse else {
                             ~~~~~~~~~^~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:17:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let response = response as? HTTPURLResponse else {
                                          ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:21:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        if (400..<503).contains(response.statusCode) {
                                ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:26:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                    return .genericError(Network.Errors.HTTPError(code: response.statusCode))
                                                                        ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:29:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                return .genericError(Network.Errors.HTTPError(code: response.statusCode))
                                                                    ~~~~~~~~ ^~~~~~~~~~
[59/64] Compiling NotionSwift DateFormatter+ISO8601Full.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:173:10: error: cannot find type 'URLRequest' in scope
    ) -> URLRequest {
         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:184:18: error: cannot find type 'URLRequest' in scope
        request: URLRequest,
                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:75:45: error: cannot infer contextual base in reference to member 'GET'
        let request = buildRequest(method: .GET, url: url, headers: headers)
                                           ~^~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:85:45: error: cannot infer contextual base in reference to member 'POST'
        var request = buildRequest(method: .POST, url: url, headers: headers)
                                           ~^~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:107:45: error: cannot infer contextual base in reference to member 'PATCH'
        var request = buildRequest(method: .PATCH, url: url, headers: headers)
                                           ~^~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:149:45: error: cannot infer contextual base in reference to member 'DELETE'
        var request = buildRequest(method: .DELETE, url: url, headers: headers)
                                           ~^~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:174:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:188:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let task = URLSession.shared.dataTask(with: request) { data, response, error in
                   ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:191:68: error: cannot convert value of type '_' to expected argument type 'Data?'
            if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
                                                                   ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:191:84: error: argument type '_' expected to be an instance of a class or class-constrained type
            if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
                                                                                   ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:8:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public static func extractError(data: Data?, response: URLResponse?, error: Error?) -> NotionClientError? {
                                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:16:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
                                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:17:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
        guard let response = response as? HTTPURLResponse else {
                             ~~~~~~~~~^~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:17:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let response = response as? HTTPURLResponse else {
                                          ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:21:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        if (400..<503).contains(response.statusCode) {
                                ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:26:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                    return .genericError(Network.Errors.HTTPError(code: response.statusCode))
                                                                        ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:29:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                return .genericError(Network.Errors.HTTPError(code: response.statusCode))
                                                                    ~~~~~~~~ ^~~~~~~~~~
[60/64] Compiling NotionSwift NetworkClient.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:173:10: error: cannot find type 'URLRequest' in scope
    ) -> URLRequest {
         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:184:18: error: cannot find type 'URLRequest' in scope
        request: URLRequest,
                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:75:45: error: cannot infer contextual base in reference to member 'GET'
        let request = buildRequest(method: .GET, url: url, headers: headers)
                                           ~^~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:85:45: error: cannot infer contextual base in reference to member 'POST'
        var request = buildRequest(method: .POST, url: url, headers: headers)
                                           ~^~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:107:45: error: cannot infer contextual base in reference to member 'PATCH'
        var request = buildRequest(method: .PATCH, url: url, headers: headers)
                                           ~^~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:149:45: error: cannot infer contextual base in reference to member 'DELETE'
        var request = buildRequest(method: .DELETE, url: url, headers: headers)
                                           ~^~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:174:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:188:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let task = URLSession.shared.dataTask(with: request) { data, response, error in
                   ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:191:68: error: cannot convert value of type '_' to expected argument type 'Data?'
            if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
                                                                   ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:191:84: error: argument type '_' expected to be an instance of a class or class-constrained type
            if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
                                                                                   ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:8:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public static func extractError(data: Data?, response: URLResponse?, error: Error?) -> NotionClientError? {
                                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:16:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
                                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:17:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
        guard let response = response as? HTTPURLResponse else {
                             ~~~~~~~~~^~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:17:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let response = response as? HTTPURLResponse else {
                                          ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:21:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        if (400..<503).contains(response.statusCode) {
                                ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:26:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                    return .genericError(Network.Errors.HTTPError(code: response.statusCode))
                                                                        ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:29:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                return .genericError(Network.Errors.HTTPError(code: response.statusCode))
                                                                    ~~~~~~~~ ^~~~~~~~~~
[61/64] Compiling NotionSwift NetworkClientHelpers.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:173:10: error: cannot find type 'URLRequest' in scope
    ) -> URLRequest {
         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:184:18: error: cannot find type 'URLRequest' in scope
        request: URLRequest,
                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:75:45: error: cannot infer contextual base in reference to member 'GET'
        let request = buildRequest(method: .GET, url: url, headers: headers)
                                           ~^~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:85:45: error: cannot infer contextual base in reference to member 'POST'
        var request = buildRequest(method: .POST, url: url, headers: headers)
                                           ~^~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:107:45: error: cannot infer contextual base in reference to member 'PATCH'
        var request = buildRequest(method: .PATCH, url: url, headers: headers)
                                           ~^~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:149:45: error: cannot infer contextual base in reference to member 'DELETE'
        var request = buildRequest(method: .DELETE, url: url, headers: headers)
                                           ~^~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:174:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:188:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let task = URLSession.shared.dataTask(with: request) { data, response, error in
                   ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:191:68: error: cannot convert value of type '_' to expected argument type 'Data?'
            if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
                                                                   ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:191:84: error: argument type '_' expected to be an instance of a class or class-constrained type
            if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
                                                                                   ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:8:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public static func extractError(data: Data?, response: URLResponse?, error: Error?) -> NotionClientError? {
                                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:16:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
                                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:17:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
        guard let response = response as? HTTPURLResponse else {
                             ~~~~~~~~~^~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:17:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let response = response as? HTTPURLResponse else {
                                          ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:21:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        if (400..<503).contains(response.statusCode) {
                                ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:26:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                    return .genericError(Network.Errors.HTTPError(code: response.statusCode))
                                                                        ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:29:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                return .genericError(Network.Errors.HTTPError(code: response.statusCode))
                                                                    ~~~~~~~~ ^~~~~~~~~~
[62/64] Compiling NotionSwift URLBuilder.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:173:10: error: cannot find type 'URLRequest' in scope
    ) -> URLRequest {
         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:184:18: error: cannot find type 'URLRequest' in scope
        request: URLRequest,
                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:75:45: error: cannot infer contextual base in reference to member 'GET'
        let request = buildRequest(method: .GET, url: url, headers: headers)
                                           ~^~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:85:45: error: cannot infer contextual base in reference to member 'POST'
        var request = buildRequest(method: .POST, url: url, headers: headers)
                                           ~^~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:107:45: error: cannot infer contextual base in reference to member 'PATCH'
        var request = buildRequest(method: .PATCH, url: url, headers: headers)
                                           ~^~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:149:45: error: cannot infer contextual base in reference to member 'DELETE'
        var request = buildRequest(method: .DELETE, url: url, headers: headers)
                                           ~^~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:174:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:188:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let task = URLSession.shared.dataTask(with: request) { data, response, error in
                   ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:191:68: error: cannot convert value of type '_' to expected argument type 'Data?'
            if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
                                                                   ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:191:84: error: argument type '_' expected to be an instance of a class or class-constrained type
            if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
                                                                                   ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:8:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public static func extractError(data: Data?, response: URLResponse?, error: Error?) -> NotionClientError? {
                                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:16:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
                                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:17:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
        guard let response = response as? HTTPURLResponse else {
                             ~~~~~~~~~^~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:17:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let response = response as? HTTPURLResponse else {
                                          ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:21:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        if (400..<503).contains(response.statusCode) {
                                ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:26:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                    return .genericError(Network.Errors.HTTPError(code: response.statusCode))
                                                                        ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:29:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                return .genericError(Network.Errors.HTTPError(code: response.statusCode))
                                                                    ~~~~~~~~ ^~~~~~~~~~
[63/64] Compiling NotionSwift NotionClient+Blocks.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:173:10: error: cannot find type 'URLRequest' in scope
    ) -> URLRequest {
         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:184:18: error: cannot find type 'URLRequest' in scope
        request: URLRequest,
                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:75:45: error: cannot infer contextual base in reference to member 'GET'
        let request = buildRequest(method: .GET, url: url, headers: headers)
                                           ~^~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:85:45: error: cannot infer contextual base in reference to member 'POST'
        var request = buildRequest(method: .POST, url: url, headers: headers)
                                           ~^~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:107:45: error: cannot infer contextual base in reference to member 'PATCH'
        var request = buildRequest(method: .PATCH, url: url, headers: headers)
                                           ~^~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:149:45: error: cannot infer contextual base in reference to member 'DELETE'
        var request = buildRequest(method: .DELETE, url: url, headers: headers)
                                           ~^~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:174:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:188:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let task = URLSession.shared.dataTask(with: request) { data, response, error in
                   ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:191:68: error: cannot convert value of type '_' to expected argument type 'Data?'
            if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
                                                                   ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:191:84: error: argument type '_' expected to be an instance of a class or class-constrained type
            if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
                                                                                   ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:8:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public static func extractError(data: Data?, response: URLResponse?, error: Error?) -> NotionClientError? {
                                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:16:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
                                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:17:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
        guard let response = response as? HTTPURLResponse else {
                             ~~~~~~~~~^~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:17:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let response = response as? HTTPURLResponse else {
                                          ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:21:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        if (400..<503).contains(response.statusCode) {
                                ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:26:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                    return .genericError(Network.Errors.HTTPError(code: response.statusCode))
                                                                        ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:29:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                return .genericError(Network.Errors.HTTPError(code: response.statusCode))
                                                                    ~~~~~~~~ ^~~~~~~~~~
[64/64] Compiling NotionSwift NotionClient+Database.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:173:10: error: cannot find type 'URLRequest' in scope
    ) -> URLRequest {
         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:184:18: error: cannot find type 'URLRequest' in scope
        request: URLRequest,
                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:75:45: error: cannot infer contextual base in reference to member 'GET'
        let request = buildRequest(method: .GET, url: url, headers: headers)
                                           ~^~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:85:45: error: cannot infer contextual base in reference to member 'POST'
        var request = buildRequest(method: .POST, url: url, headers: headers)
                                           ~^~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:107:45: error: cannot infer contextual base in reference to member 'PATCH'
        var request = buildRequest(method: .PATCH, url: url, headers: headers)
                                           ~^~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:149:45: error: cannot infer contextual base in reference to member 'DELETE'
        var request = buildRequest(method: .DELETE, url: url, headers: headers)
                                           ~^~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:174:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:188:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let task = URLSession.shared.dataTask(with: request) { data, response, error in
                   ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:191:68: error: cannot convert value of type '_' to expected argument type 'Data?'
            if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
                                                                   ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:191:84: error: argument type '_' expected to be an instance of a class or class-constrained type
            if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
                                                                                   ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:8:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public static func extractError(data: Data?, response: URLResponse?, error: Error?) -> NotionClientError? {
                                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:16:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
                                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:17:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
        guard let response = response as? HTTPURLResponse else {
                             ~~~~~~~~~^~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:17:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let response = response as? HTTPURLResponse else {
                                          ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:21:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        if (400..<503).contains(response.statusCode) {
                                ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:26:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                    return .genericError(Network.Errors.HTTPError(code: response.statusCode))
                                                                        ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:29:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                return .genericError(Network.Errors.HTTPError(code: response.statusCode))
                                                                    ~~~~~~~~ ^~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/9] Compiling NotionSwift DateFormatter+ISO8601Full.swift
[3/9] Compiling NotionSwift URLBuilder.swift
[4/11] Compiling NotionSwift NotionClient+Blocks.swift
[5/11] Compiling NotionSwift NotionClient+Database.swift
[6/11] Compiling NotionSwift NetworkClient.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:173:10: error: cannot find type 'URLRequest' in scope
    ) -> URLRequest {
         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:184:18: error: cannot find type 'URLRequest' in scope
        request: URLRequest,
                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:75:45: error: cannot infer contextual base in reference to member 'GET'
        let request = buildRequest(method: .GET, url: url, headers: headers)
                                           ~^~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:85:45: error: cannot infer contextual base in reference to member 'POST'
        var request = buildRequest(method: .POST, url: url, headers: headers)
                                           ~^~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:107:45: error: cannot infer contextual base in reference to member 'PATCH'
        var request = buildRequest(method: .PATCH, url: url, headers: headers)
                                           ~^~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:149:45: error: cannot infer contextual base in reference to member 'DELETE'
        var request = buildRequest(method: .DELETE, url: url, headers: headers)
                                           ~^~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:174:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:188:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let task = URLSession.shared.dataTask(with: request) { data, response, error in
                   ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:191:68: error: cannot convert value of type '_' to expected argument type 'Data?'
            if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
                                                                   ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:191:84: error: argument type '_' expected to be an instance of a class or class-constrained type
            if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
                                                                                   ^
[7/11] Compiling NotionSwift NetworkClientHelpers.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:8:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public static func extractError(data: Data?, response: URLResponse?, error: Error?) -> NotionClientError? {
                                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:16:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
                                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:17:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
        guard let response = response as? HTTPURLResponse else {
                             ~~~~~~~~~^~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:17:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let response = response as? HTTPURLResponse else {
                                          ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:21:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        if (400..<503).contains(response.statusCode) {
                                ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:26:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                    return .genericError(Network.Errors.HTTPError(code: response.statusCode))
                                                                        ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:29:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                return .genericError(Network.Errors.HTTPError(code: response.statusCode))
                                                                    ~~~~~~~~ ^~~~~~~~~~
[8/14] Compiling NotionSwift NotionClient+Pages.swift
[9/14] Compiling NotionSwift DateValue.swift
[10/14] Compiling NotionSwift User.swift
[11/24] Compiling NotionSwift NotionClient+Search.swift
[12/26] Compiling NotionSwift NotionClient+Users.swift
[13/26] Compiling NotionSwift NotionClient.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/30] Emitting module NotionSwift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:173:10: error: cannot find type 'URLRequest' in scope
    ) -> URLRequest {
         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:184:18: error: cannot find type 'URLRequest' in scope
        request: URLRequest,
                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:8:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public static func extractError(data: Data?, response: URLResponse?, error: Error?) -> NotionClientError? {
                                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:16:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
                                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
[15/32] Compiling NotionSwift DatabaseCreateRequest.swift
[16/32] Compiling NotionSwift DatabaseUpdateRequest.swift
[17/32] Compiling NotionSwift Page.swift
[18/32] Compiling NotionSwift PageParentType.swift
[19/32] Compiling NotionSwift SearchResponse.swift
[20/32] Compiling NotionSwift RichText+extensions.swift
[21/32] Compiling NotionSwift PageCreateRequest.swift
[22/32] Compiling NotionSwift PageProperiesUpdateRequest.swift
[23/32] Compiling NotionSwift RichText.swift
[24/32] Compiling NotionSwift NotionClientType.swift
[25/32] Compiling NotionSwift PageProperty.swift
[26/32] Compiling NotionSwift PartialUser.swift
[27/32] Compiling NotionSwift WriteBlock+Builders.swift
[28/32] Compiling NotionSwift Database.swift
[29/32] Compiling NotionSwift Mention.swift
[30/32] Compiling NotionSwift BlockType+Builders.swift
[31/32] Compiling NotionSwift BlockType+Values.swift
[32/32] Compiling NotionSwift ReadBlock.swift
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1