The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MastodonSwift with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-1":/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/Swiftodon/Mastodon.swift.git
Reference: 2.1.2
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/Swiftodon/Mastodon.swift
 * tag               2.1.2      -> FETCH_HEAD
HEAD is now at 26d970a Merge pull request #34 from Swiftodon/fix/Status.url-optional
Cloned https://github.com/Swiftodon/Mastodon.swift.git
Revision (git rev-parse @):
26d970a92d31cbb0b797f8031746e07f656aee2b
SUCCESS checkout https://github.com/Swiftodon/Mastodon.swift.git at 2.1.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/Swiftodon/Mastodon.swift.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/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/38] 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
                 ^
[4/42] Compiling MastodonSwift Reports.swift
[5/42] Compiling MastodonSwift Search.swift
[6/42] Compiling MastodonSwift Statuses.swift
[7/42] Compiling MastodonSwift Timelines.swift
[8/42] Compiling MastodonSwift Blocks.swift
[9/42] Compiling MastodonSwift Favourites.swift
[10/42] Compiling MastodonSwift FollowRequests.swift
[11/42] Compiling MastodonSwift Follows.swift
[12/42] Compiling MastodonSwift Instances.swift
[13/42] Compiling MastodonSwift AccessToken.swift
[14/42] Compiling MastodonSwift Account.swift
[15/42] Compiling MastodonSwift App.swift
[16/42] Compiling MastodonSwift Application.swift
[17/42] Compiling MastodonSwift Attachment.swift
[18/42] Compiling MastodonSwift Mastodon.swift
[19/42] Compiling MastodonSwift Media.swift
[20/42] Compiling MastodonSwift Mutes.swift
[21/42] Compiling MastodonSwift Notifications.swift
[22/42] Compiling MastodonSwift OAuth.swift
[23/42] Compiling MastodonSwift Notification.swift
[24/42] Compiling MastodonSwift Relationship.swift
[25/42] Compiling MastodonSwift Report.swift
[26/42] Compiling MastodonSwift Result.swift
[27/42] Compiling MastodonSwift Status.swift
[28/42] Compiling MastodonSwift Card.swift
[29/42] Compiling MastodonSwift Context.swift
[30/42] Compiling MastodonSwift Error.swift
[31/42] Compiling MastodonSwift Instance.swift
[32/42] Compiling MastodonSwift Mention.swift
[33/42] 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:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:87:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:103:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
[34/42] 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:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:87:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:103:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
[35/42] 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:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:87:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:103:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
[36/42] 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:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:87:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:103:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
[37/42] 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:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:87:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:103:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
[38/42] 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:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient+Convenience.swift:41:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
[39/42] 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:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient+Convenience.swift:41:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
[40/42] 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:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient+Convenience.swift:41:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
[41/42] 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:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient+Convenience.swift:41:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
[42/42] 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:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient+Convenience.swift:41:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/11] Compiling MastodonSwift String+AsURL.swift
[3/11] Compiling MastodonSwift URL+OptionalString.swift
[4/12] Compiling MastodonSwift TargetType.swift
[5/16] Compiling MastodonSwift Accounts.swift
[6/20] Compiling MastodonSwift Tag.swift
[7/20] Compiling MastodonSwift Primitive+AsString.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/24] 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
                 ^
[9/28] 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:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:87:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:103:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
[10/31] Compiling MastodonSwift MultipartFormData.swift
[11/31] 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:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient+Convenience.swift:41:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, _) = try await urlSession.data(for: request)
                                  ~~~~~~~~~~ ^~~~
[12/37] Compiling MastodonSwift Apps.swift
[13/40] Compiling MastodonSwift Favourites.swift
[14/40] Compiling MastodonSwift FollowRequests.swift
[15/40] Compiling MastodonSwift Follows.swift
[16/41] Compiling MastodonSwift Attachment.swift
[17/41] Compiling MastodonSwift Card.swift
[18/41] Compiling MastodonSwift Context.swift
[19/41] Compiling MastodonSwift Error.swift
[20/41] Compiling MastodonSwift Mastodon.swift
[21/41] Compiling MastodonSwift AccessToken.swift
[22/41] Compiling MastodonSwift Account.swift
[23/41] Compiling MastodonSwift App.swift
[24/41] Compiling MastodonSwift Application.swift
[25/41] Compiling MastodonSwift Instance.swift
[26/41] Compiling MastodonSwift Mention.swift
[27/41] Compiling MastodonSwift Notification.swift
[28/41] Compiling MastodonSwift Relationship.swift
[29/41] Compiling MastodonSwift Notifications.swift
[30/41] Compiling MastodonSwift OAuth.swift
[31/41] Compiling MastodonSwift Reports.swift
[32/41] Compiling MastodonSwift Instances.swift
[33/41] Compiling MastodonSwift Media.swift
[34/41] Compiling MastodonSwift Mutes.swift
[35/41] Compiling MastodonSwift Search.swift
[36/41] Compiling MastodonSwift Statuses.swift
[37/41] Compiling MastodonSwift Timelines.swift
[38/41] Compiling MastodonSwift Report.swift
[39/41] Compiling MastodonSwift Result.swift
[40/41] Compiling MastodonSwift Status.swift
[41/41] Compiling MastodonSwift Blocks.swift
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2