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-4609320-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: 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/chojnac/NotionSwift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at fed6944 User.Person.email should be optional (#48)
Cloned https://github.com/chojnac/NotionSwift.git
Revision (git rev-parse @):
fed6944eafa9dc86684fb71298d44d3eb5f7529c
SUCCESS checkout https://github.com/chojnac/NotionSwift.git at main
========================================
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-4609320-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:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let session: URLSession
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:62:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(sessionConfiguration: URLSessionConfiguration) {
                                      ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:176:10: error: cannot find type 'URLRequest' in scope
    ) -> URLRequest {
         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:187: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
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:16:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        sessionConfiguration: URLSessionConfiguration = .default
                              ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:16:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        sessionConfiguration: URLSessionConfiguration = .default
                                                        ~^~~~~~~
[4/64] Compiling NotionSwift Mention.swift
[5/64] Compiling NotionSwift NotionLink.swift
[6/64] Compiling NotionSwift Page.swift
[7/64] Compiling NotionSwift PageParentType.swift
[8/64] Compiling NotionSwift PageProperty.swift
[9/64] Compiling NotionSwift PartialUser.swift
[10/64] Compiling NotionSwift BaseQueryParams.swift
[11/64] Compiling NotionSwift DatabaseCreateRequest.swift
[12/64] Compiling NotionSwift AccessKeyProvider.swift
[13/64] Compiling NotionSwift EntityIdentifier.swift
[14/64] Compiling NotionSwift Logger.swift
[15/64] Compiling NotionSwift Types.swift
[16/64] Compiling NotionSwift Environment.swift
[17/64] Compiling NotionSwift Block.swift
[18/64] Compiling NotionSwift BlockColor.swift
[19/64] Compiling NotionSwift BlockType+Builders.swift
[20/64] Compiling NotionSwift BlockType+Values.swift
[21/64] Compiling NotionSwift BlockType.swift
[22/64] Compiling NotionSwift ReadBlock.swift
[23/64] Compiling NotionSwift UpdateBlock.swift
[24/64] Compiling NotionSwift WriteBlock+Builders.swift
[25/64] Compiling NotionSwift WriteBlock.swift
[26/64] Compiling NotionSwift CoverFile.swift
[27/64] Compiling NotionSwift Database.swift
[28/64] Compiling NotionSwift PageCreateRequest.swift
[29/64] Compiling NotionSwift PageProperiesUpdateRequest.swift
[30/64] Compiling NotionSwift SearchRequest.swift
[31/64] Compiling NotionSwift ListResponse.swift
[32/64] Compiling NotionSwift SearchResponse.swift
[33/64] Compiling NotionSwift RichText+extensions.swift
[34/64] Compiling NotionSwift RichText.swift
[35/64] Compiling NotionSwift DatabaseQueryParams.swift
[36/64] Compiling NotionSwift DatabaseSort.swift
[37/64] Compiling NotionSwift DatabaseUpdateRequest.swift
[38/64] Compiling NotionSwift CompountFilterType.swift
[39/64] Compiling NotionSwift DatabaseFilter.swift
[40/64] Compiling NotionSwift DatabaseFilterType.swift
[41/64] Compiling NotionSwift DatabasePropertyFilter+Encodable.swift
[42/64] Compiling NotionSwift DatabasePropertyFilter.swift
[43/64] Compiling NotionSwift DatabaseParent.swift
[44/64] Compiling NotionSwift DatabaseProperty.swift
[45/64] Compiling NotionSwift DatabasePropertyType.swift
[46/64] Compiling NotionSwift DateRange.swift
[47/64] Compiling NotionSwift DateValue.swift
[48/64] Compiling NotionSwift ErrorResponse.swift
[49/64] Compiling NotionSwift FileFile.swift
[50/64] Compiling NotionSwift IconFile.swift
[51/64] Compiling NotionSwift User.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let session: URLSession
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:62:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(sessionConfiguration: URLSessionConfiguration) {
                                      ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:176:10: error: cannot find type 'URLRequest' in scope
    ) -> URLRequest {
         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:187:18: error: cannot find type 'URLRequest' in scope
        request: URLRequest,
                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:69:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        session = .init(configuration: sessionConfiguration)
                  ~^~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:78: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:88: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:110: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:152: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:177:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:191:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let task = session.dataTask(with: request) { data, response, error in
                   ~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:194: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:194: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))
                                                                    ~~~~~~~~ ^~~~~~~~~~
[52/64] Compiling NotionSwift DateFormatter+ISO8601Full.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let session: URLSession
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:62:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(sessionConfiguration: URLSessionConfiguration) {
                                      ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:176:10: error: cannot find type 'URLRequest' in scope
    ) -> URLRequest {
         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:187:18: error: cannot find type 'URLRequest' in scope
        request: URLRequest,
                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:69:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        session = .init(configuration: sessionConfiguration)
                  ~^~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:78: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:88: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:110: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:152: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:177:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:191:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let task = session.dataTask(with: request) { data, response, error in
                   ~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:194: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:194: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))
                                                                    ~~~~~~~~ ^~~~~~~~~~
[53/64] Compiling NotionSwift NetworkClient.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let session: URLSession
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:62:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(sessionConfiguration: URLSessionConfiguration) {
                                      ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:176:10: error: cannot find type 'URLRequest' in scope
    ) -> URLRequest {
         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:187:18: error: cannot find type 'URLRequest' in scope
        request: URLRequest,
                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:69:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        session = .init(configuration: sessionConfiguration)
                  ~^~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:78: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:88: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:110: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:152: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:177:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:191:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let task = session.dataTask(with: request) { data, response, error in
                   ~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:194: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:194: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))
                                                                    ~~~~~~~~ ^~~~~~~~~~
[54/64] Compiling NotionSwift NetworkClientHelpers.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let session: URLSession
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:62:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(sessionConfiguration: URLSessionConfiguration) {
                                      ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:176:10: error: cannot find type 'URLRequest' in scope
    ) -> URLRequest {
         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:187:18: error: cannot find type 'URLRequest' in scope
        request: URLRequest,
                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:69:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        session = .init(configuration: sessionConfiguration)
                  ~^~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:78: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:88: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:110: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:152: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:177:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:191:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let task = session.dataTask(with: request) { data, response, error in
                   ~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:194: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:194: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))
                                                                    ~~~~~~~~ ^~~~~~~~~~
[55/64] Compiling NotionSwift URLBuilder.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let session: URLSession
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:62:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(sessionConfiguration: URLSessionConfiguration) {
                                      ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:176:10: error: cannot find type 'URLRequest' in scope
    ) -> URLRequest {
         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:187:18: error: cannot find type 'URLRequest' in scope
        request: URLRequest,
                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:69:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        session = .init(configuration: sessionConfiguration)
                  ~^~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:78: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:88: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:110: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:152: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:177:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:191:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let task = session.dataTask(with: request) { data, response, error in
                   ~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:194: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:194: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))
                                                                    ~~~~~~~~ ^~~~~~~~~~
[56/64] Compiling NotionSwift NotionClient+Blocks.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let session: URLSession
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:62:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(sessionConfiguration: URLSessionConfiguration) {
                                      ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:176:10: error: cannot find type 'URLRequest' in scope
    ) -> URLRequest {
         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:187:18: error: cannot find type 'URLRequest' in scope
        request: URLRequest,
                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:69:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        session = .init(configuration: sessionConfiguration)
                  ~^~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:78: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:88: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:110: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:152: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:177:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:191:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let task = session.dataTask(with: request) { data, response, error in
                   ~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:194: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:194: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))
                                                                    ~~~~~~~~ ^~~~~~~~~~
[57/64] Compiling NotionSwift NotionClient+Database.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let session: URLSession
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:62:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(sessionConfiguration: URLSessionConfiguration) {
                                      ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:176:10: error: cannot find type 'URLRequest' in scope
    ) -> URLRequest {
         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:187:18: error: cannot find type 'URLRequest' in scope
        request: URLRequest,
                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:69:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        session = .init(configuration: sessionConfiguration)
                  ~^~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:78: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:88: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:110: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:152: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:177:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:191:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let task = session.dataTask(with: request) { data, response, error in
                   ~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:194: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:194: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))
                                                                    ~~~~~~~~ ^~~~~~~~~~
[58/64] Compiling NotionSwift NotionClient+Pages.swift
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:16:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        sessionConfiguration: URLSessionConfiguration = .default
                              ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:16:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        sessionConfiguration: URLSessionConfiguration = .default
                                                        ~^~~~~~~
[59/64] Compiling NotionSwift NotionClient+Search.swift
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:16:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        sessionConfiguration: URLSessionConfiguration = .default
                              ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:16:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        sessionConfiguration: URLSessionConfiguration = .default
                                                        ~^~~~~~~
[60/64] Compiling NotionSwift NotionClient+Users.swift
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:16:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        sessionConfiguration: URLSessionConfiguration = .default
                              ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:16:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        sessionConfiguration: URLSessionConfiguration = .default
                                                        ~^~~~~~~
[61/64] Compiling NotionSwift NotionClient.swift
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:16:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        sessionConfiguration: URLSessionConfiguration = .default
                              ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:16:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        sessionConfiguration: URLSessionConfiguration = .default
                                                        ~^~~~~~~
[62/64] Compiling NotionSwift NotionClientError.swift
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:16:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        sessionConfiguration: URLSessionConfiguration = .default
                              ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:16:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        sessionConfiguration: URLSessionConfiguration = .default
                                                        ~^~~~~~~
[63/64] Compiling NotionSwift NotionClientType+Combine.swift
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:16:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        sessionConfiguration: URLSessionConfiguration = .default
                              ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:16:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        sessionConfiguration: URLSessionConfiguration = .default
                                                        ~^~~~~~~
[64/64] Compiling NotionSwift NotionClientType.swift
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:16:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        sessionConfiguration: URLSessionConfiguration = .default
                              ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:16:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        sessionConfiguration: URLSessionConfiguration = .default
                                                        ~^~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/15] Compiling NotionSwift NotionClient.swift
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:16:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        sessionConfiguration: URLSessionConfiguration = .default
                              ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:16:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        sessionConfiguration: URLSessionConfiguration = .default
                                                        ~^~~~~~~
[3/15] Compiling NotionSwift NotionClientError.swift
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:16:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        sessionConfiguration: URLSessionConfiguration = .default
                              ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:16:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        sessionConfiguration: URLSessionConfiguration = .default
                                                        ~^~~~~~~
[4/16] Compiling NotionSwift NotionClientType+Combine.swift
[5/16] Compiling NotionSwift NotionClient+Search.swift
[6/16] Compiling NotionSwift NotionClient+Users.swift
[7/16] Compiling NotionSwift NotionClient+Database.swift
[8/16] Compiling NotionSwift NotionClient+Pages.swift
[9/16] Compiling NotionSwift URLBuilder.swift
[10/16] Compiling NotionSwift NotionClient+Blocks.swift
[11/16] Compiling NotionSwift NetworkClient.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let session: URLSession
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:62:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(sessionConfiguration: URLSessionConfiguration) {
                                      ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:176:10: error: cannot find type 'URLRequest' in scope
    ) -> URLRequest {
         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:187:18: error: cannot find type 'URLRequest' in scope
        request: URLRequest,
                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:69:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        session = .init(configuration: sessionConfiguration)
                  ~^~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:78: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:88: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:110: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:152: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:177:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:191:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let task = session.dataTask(with: request) { data, response, error in
                   ~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:194: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:194: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))
                                                                    ~~~~~~~~ ^~~~~~~~~~
[12/16] Compiling NotionSwift NetworkClientHelpers.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let session: URLSession
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:62:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(sessionConfiguration: URLSessionConfiguration) {
                                      ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:176:10: error: cannot find type 'URLRequest' in scope
    ) -> URLRequest {
         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:187:18: error: cannot find type 'URLRequest' in scope
        request: URLRequest,
                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:69:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        session = .init(configuration: sessionConfiguration)
                  ~^~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:78: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:88: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:110: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:152: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:177:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:191:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let task = session.dataTask(with: request) { data, response, error in
                   ~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:194: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:194: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))
                                                                    ~~~~~~~~ ^~~~~~~~~~
[13/16] Compiling NotionSwift NotionClientType.swift
[14/16] Compiling NotionSwift User.swift
[15/16] Compiling NotionSwift DateFormatter+ISO8601Full.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/32] Emitting module NotionSwift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let session: URLSession
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:62:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(sessionConfiguration: URLSessionConfiguration) {
                                      ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:176:10: error: cannot find type 'URLRequest' in scope
    ) -> URLRequest {
         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:187: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
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:16:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        sessionConfiguration: URLSessionConfiguration = .default
                              ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:16:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        sessionConfiguration: URLSessionConfiguration = .default
                                                        ~^~~~~~~
[17/34] Compiling NotionSwift PartialUser.swift
[18/34] Compiling NotionSwift DatabaseCreateRequest.swift
[19/34] Compiling NotionSwift PageProperiesUpdateRequest.swift
[20/34] Compiling NotionSwift SearchResponse.swift
[21/34] Compiling NotionSwift Mention.swift
[22/34] Compiling NotionSwift Page.swift
[23/34] Compiling NotionSwift DatabaseUpdateRequest.swift
[24/34] Compiling NotionSwift PageCreateRequest.swift
[25/34] Compiling NotionSwift WriteBlock+Builders.swift
[26/34] Compiling NotionSwift Database.swift
[27/34] Compiling NotionSwift DateValue.swift
[28/34] Compiling NotionSwift RichText+extensions.swift
[29/34] Compiling NotionSwift RichText.swift
[30/34] Compiling NotionSwift PageParentType.swift
[31/34] Compiling NotionSwift PageProperty.swift
[32/34] Compiling NotionSwift BlockType+Builders.swift
[33/34] Compiling NotionSwift BlockType+Values.swift
[34/34] Compiling NotionSwift ReadBlock.swift
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2