The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MastodonSwift with Swift 5.7 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Swiftodon/Mastodon.swift.git
Reference: 2.1.2
Cloned https://github.com/Swiftodon/Mastodon.swift.git into spi-builder-workspace
SUCCESS checkout https://github.com/Swiftodon/Mastodon.swift.git at 2.1.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.7
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build 2>&1
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)[1/36] Emitting module MastodonSwift
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:8:105: error: cannot find type 'URLRequest' in scope
    static func request(for baseURL: URL, target: TargetType, withBearerToken token: String?) throws -> URLRequest
                                                                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:12:118: error: cannot find type 'URLRequest' in scope
    public static func request(for baseURL: URL, target: TargetType, withBearerToken token: String? = nil) throws -> URLRequest {
                                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:38:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    let urlSession: URLSession
                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:41:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(baseURL: URL, urlSession: URLSession = .shared) {
                                          ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:41:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(baseURL: URL, urlSession: URLSession = .shared) {
                                                       ~^~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:55:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let urlSession: URLSession
                            ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:57:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    init(baseURL: URL, urlSession: URLSession, token: Token) {
                                   ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
[2/40] Compiling MastodonSwift Reports.swift
[3/40] Compiling MastodonSwift Search.swift
[4/40] Compiling MastodonSwift Statuses.swift
[5/40] Compiling MastodonSwift Timelines.swift
[6/40] Compiling MastodonSwift Notification.swift
[7/40] Compiling MastodonSwift Relationship.swift
[8/40] Compiling MastodonSwift Report.swift
[9/40] Compiling MastodonSwift Result.swift
[10/40] Compiling MastodonSwift Status.swift
[11/40] Compiling MastodonSwift AccessToken.swift
[12/40] Compiling MastodonSwift Account.swift
[13/40] Compiling MastodonSwift App.swift
[14/40] Compiling MastodonSwift Application.swift
[15/40] Compiling MastodonSwift Attachment.swift
[16/40] Compiling MastodonSwift Blocks.swift
[17/40] Compiling MastodonSwift Favourites.swift
[18/40] Compiling MastodonSwift FollowRequests.swift
[19/40] Compiling MastodonSwift Follows.swift
[20/40] Compiling MastodonSwift Instances.swift
[21/40] Compiling MastodonSwift Tag.swift
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:8:105: error: cannot find type 'URLRequest' in scope
    static func request(for baseURL: URL, target: TargetType, withBearerToken token: String?) throws -> URLRequest
                                                                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:12:118: error: cannot find type 'URLRequest' in scope
    public static func request(for baseURL: URL, target: TargetType, withBearerToken token: String? = nil) throws -> URLRequest {
                                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient+Convenience.swift:26:29: error: type of expression is ambiguous without more context
        let (data, _) = try await urlSession.data(for: request)
                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient+Convenience.swift:41:29: error: type of expression is ambiguous without more context
        let (data, _) = try await urlSession.data(for: request)
                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[22/40] Compiling MastodonSwift Primitive+AsString.swift
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:8:105: error: cannot find type 'URLRequest' in scope
    static func request(for baseURL: URL, target: TargetType, withBearerToken token: String?) throws -> URLRequest
                                                                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:12:118: error: cannot find type 'URLRequest' in scope
    public static func request(for baseURL: URL, target: TargetType, withBearerToken token: String? = nil) throws -> URLRequest {
                                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient+Convenience.swift:26:29: error: type of expression is ambiguous without more context
        let (data, _) = try await urlSession.data(for: request)
                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient+Convenience.swift:41:29: error: type of expression is ambiguous without more context
        let (data, _) = try await urlSession.data(for: request)
                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[23/40] Compiling MastodonSwift String+AsURL.swift
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:8:105: error: cannot find type 'URLRequest' in scope
    static func request(for baseURL: URL, target: TargetType, withBearerToken token: String?) throws -> URLRequest
                                                                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:12:118: error: cannot find type 'URLRequest' in scope
    public static func request(for baseURL: URL, target: TargetType, withBearerToken token: String? = nil) throws -> URLRequest {
                                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient+Convenience.swift:26:29: error: type of expression is ambiguous without more context
        let (data, _) = try await urlSession.data(for: request)
                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient+Convenience.swift:41:29: error: type of expression is ambiguous without more context
        let (data, _) = try await urlSession.data(for: request)
                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[24/40] Compiling MastodonSwift URL+OptionalString.swift
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:8:105: error: cannot find type 'URLRequest' in scope
    static func request(for baseURL: URL, target: TargetType, withBearerToken token: String?) throws -> URLRequest
                                                                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:12:118: error: cannot find type 'URLRequest' in scope
    public static func request(for baseURL: URL, target: TargetType, withBearerToken token: String? = nil) throws -> URLRequest {
                                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient+Convenience.swift:26:29: error: type of expression is ambiguous without more context
        let (data, _) = try await urlSession.data(for: request)
                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient+Convenience.swift:41:29: error: type of expression is ambiguous without more context
        let (data, _) = try await urlSession.data(for: request)
                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[25/40] Compiling MastodonSwift MastodonClient+Convenience.swift
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:8:105: error: cannot find type 'URLRequest' in scope
    static func request(for baseURL: URL, target: TargetType, withBearerToken token: String?) throws -> URLRequest
                                                                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:12:118: error: cannot find type 'URLRequest' in scope
    public static func request(for baseURL: URL, target: TargetType, withBearerToken token: String? = nil) throws -> URLRequest {
                                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient+Convenience.swift:26:29: error: type of expression is ambiguous without more context
        let (data, _) = try await urlSession.data(for: request)
                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient+Convenience.swift:41:29: error: type of expression is ambiguous without more context
        let (data, _) = try await urlSession.data(for: request)
                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[26/40] Compiling MastodonSwift Card.swift
[27/40] Compiling MastodonSwift Context.swift
[28/40] Compiling MastodonSwift Error.swift
[29/40] Compiling MastodonSwift Instance.swift
[30/40] Compiling MastodonSwift Mention.swift
[31/40] Compiling MastodonSwift Mastodon.swift
[32/40] Compiling MastodonSwift Media.swift
[33/40] Compiling MastodonSwift Mutes.swift
[34/40] Compiling MastodonSwift Notifications.swift
[35/40] Compiling MastodonSwift OAuth.swift
[36/40] Compiling MastodonSwift MastodonClient.swift
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:8:105: error: cannot find type 'URLRequest' in scope
    static func request(for baseURL: URL, target: TargetType, withBearerToken token: String?) throws -> URLRequest
                                                                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:12:118: error: cannot find type 'URLRequest' in scope
    public static func request(for baseURL: URL, target: TargetType, withBearerToken token: String? = nil) throws -> URLRequest {
                                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:38:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    let urlSession: URLSession
                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:41:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(baseURL: URL, urlSession: URLSession = .shared) {
                                          ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:41:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(baseURL: URL, urlSession: URLSession = .shared) {
                                                       ~^~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:55:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let urlSession: URLSession
                            ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:57:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    init(baseURL: URL, urlSession: URLSession, token: Token) {
                                   ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:19:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:72:29: error: type of expression is ambiguous without more context
        let (data, _) = try await urlSession.data(for: request)
                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:87:29: error: type of expression is ambiguous without more context
        let (data, _) = try await urlSession.data(for: request)
                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:103:29: error: type of expression is ambiguous without more context
        let (data, _) = try await urlSession.data(for: request)
                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[37/40] Compiling MastodonSwift MultipartFormData.swift
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:8:105: error: cannot find type 'URLRequest' in scope
    static func request(for baseURL: URL, target: TargetType, withBearerToken token: String?) throws -> URLRequest
                                                                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:12:118: error: cannot find type 'URLRequest' in scope
    public static func request(for baseURL: URL, target: TargetType, withBearerToken token: String? = nil) throws -> URLRequest {
                                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:38:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    let urlSession: URLSession
                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:41:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(baseURL: URL, urlSession: URLSession = .shared) {
                                          ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:41:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(baseURL: URL, urlSession: URLSession = .shared) {
                                                       ~^~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:55:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let urlSession: URLSession
                            ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:57:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    init(baseURL: URL, urlSession: URLSession, token: Token) {
                                   ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:19:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:72:29: error: type of expression is ambiguous without more context
        let (data, _) = try await urlSession.data(for: request)
                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:87:29: error: type of expression is ambiguous without more context
        let (data, _) = try await urlSession.data(for: request)
                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:103:29: error: type of expression is ambiguous without more context
        let (data, _) = try await urlSession.data(for: request)
                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[38/40] Compiling MastodonSwift TargetType.swift
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:8:105: error: cannot find type 'URLRequest' in scope
    static func request(for baseURL: URL, target: TargetType, withBearerToken token: String?) throws -> URLRequest
                                                                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:12:118: error: cannot find type 'URLRequest' in scope
    public static func request(for baseURL: URL, target: TargetType, withBearerToken token: String? = nil) throws -> URLRequest {
                                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:38:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    let urlSession: URLSession
                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:41:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(baseURL: URL, urlSession: URLSession = .shared) {
                                          ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:41:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(baseURL: URL, urlSession: URLSession = .shared) {
                                                       ~^~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:55:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let urlSession: URLSession
                            ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:57:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    init(baseURL: URL, urlSession: URLSession, token: Token) {
                                   ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:19:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:72:29: error: type of expression is ambiguous without more context
        let (data, _) = try await urlSession.data(for: request)
                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:87:29: error: type of expression is ambiguous without more context
        let (data, _) = try await urlSession.data(for: request)
                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:103:29: error: type of expression is ambiguous without more context
        let (data, _) = try await urlSession.data(for: request)
                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[39/40] Compiling MastodonSwift Accounts.swift
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:8:105: error: cannot find type 'URLRequest' in scope
    static func request(for baseURL: URL, target: TargetType, withBearerToken token: String?) throws -> URLRequest
                                                                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:12:118: error: cannot find type 'URLRequest' in scope
    public static func request(for baseURL: URL, target: TargetType, withBearerToken token: String? = nil) throws -> URLRequest {
                                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:38:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    let urlSession: URLSession
                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:41:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(baseURL: URL, urlSession: URLSession = .shared) {
                                          ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:41:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(baseURL: URL, urlSession: URLSession = .shared) {
                                                       ~^~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:55:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let urlSession: URLSession
                            ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:57:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    init(baseURL: URL, urlSession: URLSession, token: Token) {
                                   ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:19:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:72:29: error: type of expression is ambiguous without more context
        let (data, _) = try await urlSession.data(for: request)
                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:87:29: error: type of expression is ambiguous without more context
        let (data, _) = try await urlSession.data(for: request)
                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:103:29: error: type of expression is ambiguous without more context
        let (data, _) = try await urlSession.data(for: request)
                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[40/40] Compiling MastodonSwift Apps.swift
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:8:105: error: cannot find type 'URLRequest' in scope
    static func request(for baseURL: URL, target: TargetType, withBearerToken token: String?) throws -> URLRequest
                                                                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:12:118: error: cannot find type 'URLRequest' in scope
    public static func request(for baseURL: URL, target: TargetType, withBearerToken token: String? = nil) throws -> URLRequest {
                                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:38:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    let urlSession: URLSession
                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:41:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(baseURL: URL, urlSession: URLSession = .shared) {
                                          ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:41:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(baseURL: URL, urlSession: URLSession = .shared) {
                                                       ~^~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:55:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let urlSession: URLSession
                            ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:57:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    init(baseURL: URL, urlSession: URLSession, token: Token) {
                                   ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:19:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:72:29: error: type of expression is ambiguous without more context
        let (data, _) = try await urlSession.data(for: request)
                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:87:29: error: type of expression is ambiguous without more context
        let (data, _) = try await urlSession.data(for: request)
                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:103:29: error: type of expression is ambiguous without more context
        let (data, _) = try await urlSession.data(for: request)
                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BUILD FAILURE 5.7 linux

Build Machine: Linux 1