The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MastodonSwift, reference 2.1.2 (26d970), with Swift 6.3 for Linux on 22 Apr 2026 11:48:43 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.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:             6.3
Building package at path:  $PWD
https://github.com/Swiftodon/Mastodon.swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest
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
  6 |
  7 | protocol MastodonClientProtocol {
  8 |     static func request(for baseURL: URL, target: TargetType, withBearerToken token: String?) throws -> URLRequest
    |                                                                                                         `- error: cannot find type 'URLRequest' in scope
  9 | }
 10 |
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:12:118: error: cannot find type 'URLRequest' in scope
 10 |
 11 | extension MastodonClientProtocol {
 12 |     public static func request(for baseURL: URL, target: TargetType, withBearerToken token: String? = nil) throws -> URLRequest {
    |                                                                                                                      `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |         var urlComponents = URLComponents(url: baseURL.appendingPathComponent(target.path), resolvingAgainstBaseURL: false)
/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.
 36 | public class MastodonClient: MastodonClientProtocol {
 37 |
 38 |     let urlSession: URLSession
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |     let baseURL: URL
 40 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 39 |     let baseURL: URL
 40 |
 41 |     public init(baseURL: URL, urlSession: URLSession = .shared) {
    |                                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |         self.baseURL = baseURL
 43 |         self.urlSession = urlSession
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:41:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 39 |     let baseURL: URL
 40 |
 41 |     public init(baseURL: URL, urlSession: URLSession = .shared) {
    |                                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 42 |         self.baseURL = baseURL
 43 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:41:57: error: value of type '_' expected to be instance of class or class-constrained type
 39 |     let baseURL: URL
 40 |
 41 |     public init(baseURL: URL, urlSession: URLSession = .shared) {
    |                                                         `- error: value of type '_' expected to be instance of class or class-constrained type
 42 |         self.baseURL = baseURL
 43 |         self.urlSession = urlSession
/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.
 53 |     private let token: Token
 54 |     private let baseURL: URL
 55 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |
 57 |     init(baseURL: URL, urlSession: URLSession, token: Token) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 55 |     private let urlSession: URLSession
 56 |
 57 |     init(baseURL: URL, urlSession: URLSession, token: Token) {
    |                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |         self.token = token
 59 |         self.baseURL = baseURL
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
[4/42] Compiling MastodonSwift Tag.swift
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:8:105: error: cannot find type 'URLRequest' in scope
  6 |
  7 | protocol MastodonClientProtocol {
  8 |     static func request(for baseURL: URL, target: TargetType, withBearerToken token: String?) throws -> URLRequest
    |                                                                                                         `- error: cannot find type 'URLRequest' in scope
  9 | }
 10 |
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:12:118: error: cannot find type 'URLRequest' in scope
 10 |
 11 | extension MastodonClientProtocol {
 12 |     public static func request(for baseURL: URL, target: TargetType, withBearerToken token: String? = nil) throws -> URLRequest {
    |                                                                                                                      `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |         var urlComponents = URLComponents(url: baseURL.appendingPathComponent(target.path), resolvingAgainstBaseURL: false)
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient+Convenience.swift:26:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
24 |         )
25 |
26 |         let (data, _) = try await urlSession.data(for: request)
   |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
27 |
28 |         return try JSONDecoder().decode(App.self, from: data)
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient+Convenience.swift:41:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
39 |         )
40 |
41 |         let (data, _) = try await urlSession.data(for: request)
   |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
42 |
43 |         return try JSONDecoder().decode(AccessToken.self, from: data)
[5/42] Compiling MastodonSwift Primitive+AsString.swift
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:8:105: error: cannot find type 'URLRequest' in scope
  6 |
  7 | protocol MastodonClientProtocol {
  8 |     static func request(for baseURL: URL, target: TargetType, withBearerToken token: String?) throws -> URLRequest
    |                                                                                                         `- error: cannot find type 'URLRequest' in scope
  9 | }
 10 |
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:12:118: error: cannot find type 'URLRequest' in scope
 10 |
 11 | extension MastodonClientProtocol {
 12 |     public static func request(for baseURL: URL, target: TargetType, withBearerToken token: String? = nil) throws -> URLRequest {
    |                                                                                                                      `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |         var urlComponents = URLComponents(url: baseURL.appendingPathComponent(target.path), resolvingAgainstBaseURL: false)
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient+Convenience.swift:26:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
24 |         )
25 |
26 |         let (data, _) = try await urlSession.data(for: request)
   |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
27 |
28 |         return try JSONDecoder().decode(App.self, from: data)
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient+Convenience.swift:41:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
39 |         )
40 |
41 |         let (data, _) = try await urlSession.data(for: request)
   |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
42 |
43 |         return try JSONDecoder().decode(AccessToken.self, from: data)
[6/42] Compiling MastodonSwift String+AsURL.swift
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:8:105: error: cannot find type 'URLRequest' in scope
  6 |
  7 | protocol MastodonClientProtocol {
  8 |     static func request(for baseURL: URL, target: TargetType, withBearerToken token: String?) throws -> URLRequest
    |                                                                                                         `- error: cannot find type 'URLRequest' in scope
  9 | }
 10 |
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:12:118: error: cannot find type 'URLRequest' in scope
 10 |
 11 | extension MastodonClientProtocol {
 12 |     public static func request(for baseURL: URL, target: TargetType, withBearerToken token: String? = nil) throws -> URLRequest {
    |                                                                                                                      `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |         var urlComponents = URLComponents(url: baseURL.appendingPathComponent(target.path), resolvingAgainstBaseURL: false)
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient+Convenience.swift:26:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
24 |         )
25 |
26 |         let (data, _) = try await urlSession.data(for: request)
   |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
27 |
28 |         return try JSONDecoder().decode(App.self, from: data)
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient+Convenience.swift:41:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
39 |         )
40 |
41 |         let (data, _) = try await urlSession.data(for: request)
   |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
42 |
43 |         return try JSONDecoder().decode(AccessToken.self, from: data)
[7/42] Compiling MastodonSwift URL+OptionalString.swift
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:8:105: error: cannot find type 'URLRequest' in scope
  6 |
  7 | protocol MastodonClientProtocol {
  8 |     static func request(for baseURL: URL, target: TargetType, withBearerToken token: String?) throws -> URLRequest
    |                                                                                                         `- error: cannot find type 'URLRequest' in scope
  9 | }
 10 |
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:12:118: error: cannot find type 'URLRequest' in scope
 10 |
 11 | extension MastodonClientProtocol {
 12 |     public static func request(for baseURL: URL, target: TargetType, withBearerToken token: String? = nil) throws -> URLRequest {
    |                                                                                                                      `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |         var urlComponents = URLComponents(url: baseURL.appendingPathComponent(target.path), resolvingAgainstBaseURL: false)
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient+Convenience.swift:26:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
24 |         )
25 |
26 |         let (data, _) = try await urlSession.data(for: request)
   |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
27 |
28 |         return try JSONDecoder().decode(App.self, from: data)
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient+Convenience.swift:41:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
39 |         )
40 |
41 |         let (data, _) = try await urlSession.data(for: request)
   |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
42 |
43 |         return try JSONDecoder().decode(AccessToken.self, from: data)
[8/42] Compiling MastodonSwift MastodonClient+Convenience.swift
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:8:105: error: cannot find type 'URLRequest' in scope
  6 |
  7 | protocol MastodonClientProtocol {
  8 |     static func request(for baseURL: URL, target: TargetType, withBearerToken token: String?) throws -> URLRequest
    |                                                                                                         `- error: cannot find type 'URLRequest' in scope
  9 | }
 10 |
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:12:118: error: cannot find type 'URLRequest' in scope
 10 |
 11 | extension MastodonClientProtocol {
 12 |     public static func request(for baseURL: URL, target: TargetType, withBearerToken token: String? = nil) throws -> URLRequest {
    |                                                                                                                      `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |         var urlComponents = URLComponents(url: baseURL.appendingPathComponent(target.path), resolvingAgainstBaseURL: false)
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient+Convenience.swift:26:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
24 |         )
25 |
26 |         let (data, _) = try await urlSession.data(for: request)
   |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
27 |
28 |         return try JSONDecoder().decode(App.self, from: data)
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient+Convenience.swift:41:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
39 |         )
40 |
41 |         let (data, _) = try await urlSession.data(for: request)
   |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
42 |
43 |         return try JSONDecoder().decode(AccessToken.self, from: data)
[9/42] Compiling MastodonSwift MastodonClient.swift
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:8:105: error: cannot find type 'URLRequest' in scope
  6 |
  7 | protocol MastodonClientProtocol {
  8 |     static func request(for baseURL: URL, target: TargetType, withBearerToken token: String?) throws -> URLRequest
    |                                                                                                         `- error: cannot find type 'URLRequest' in scope
  9 | }
 10 |
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:12:118: error: cannot find type 'URLRequest' in scope
 10 |
 11 | extension MastodonClientProtocol {
 12 |     public static func request(for baseURL: URL, target: TargetType, withBearerToken token: String? = nil) throws -> URLRequest {
    |                                                                                                                      `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |         var urlComponents = URLComponents(url: baseURL.appendingPathComponent(target.path), resolvingAgainstBaseURL: false)
/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.
 36 | public class MastodonClient: MastodonClientProtocol {
 37 |
 38 |     let urlSession: URLSession
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |     let baseURL: URL
 40 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 39 |     let baseURL: URL
 40 |
 41 |     public init(baseURL: URL, urlSession: URLSession = .shared) {
    |                                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |         self.baseURL = baseURL
 43 |         self.urlSession = urlSession
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:41:57: error: value of type '_' expected to be instance of class or class-constrained type
 39 |     let baseURL: URL
 40 |
 41 |     public init(baseURL: URL, urlSession: URLSession = .shared) {
    |                                                         `- error: value of type '_' expected to be instance of class or class-constrained type
 42 |         self.baseURL = baseURL
 43 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:41:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 39 |     let baseURL: URL
 40 |
 41 |     public init(baseURL: URL, urlSession: URLSession = .shared) {
    |                                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 42 |         self.baseURL = baseURL
 43 |         self.urlSession = urlSession
/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.
 53 |     private let token: Token
 54 |     private let baseURL: URL
 55 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |
 57 |     init(baseURL: URL, urlSession: URLSession, token: Token) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 55 |     private let urlSession: URLSession
 56 |
 57 |     init(baseURL: URL, urlSession: URLSession, token: Token) {
    |                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |         self.token = token
 59 |         self.baseURL = baseURL
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:19:23: error: cannot find 'URLRequest' in scope
 17 |         guard let url = urlComponents?.url else { throw NetworkingError.cannotCreateUrlRequest }
 18 |
 19 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 20 |
 21 |         target.headers?.forEach { header in
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:72:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 70 |         )
 71 |
 72 |         let (data, _) = try await urlSession.data(for: request)
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 73 |
 74 |         return try JSONDecoder().decode([Status].self, from: data)
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:87:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 85 |         )
 86 |
 87 |         let (data, _) = try await urlSession.data(for: request)
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 88 |
 89 |         return try JSONDecoder().decode([Status].self, from: data)
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:103:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
101 |         )
102 |
103 |         let (data, _) = try await urlSession.data(for: request)
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
104 |
105 |         return try JSONDecoder().decode([Status].self, from: data)
[10/42] Compiling MastodonSwift MultipartFormData.swift
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:8:105: error: cannot find type 'URLRequest' in scope
  6 |
  7 | protocol MastodonClientProtocol {
  8 |     static func request(for baseURL: URL, target: TargetType, withBearerToken token: String?) throws -> URLRequest
    |                                                                                                         `- error: cannot find type 'URLRequest' in scope
  9 | }
 10 |
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:12:118: error: cannot find type 'URLRequest' in scope
 10 |
 11 | extension MastodonClientProtocol {
 12 |     public static func request(for baseURL: URL, target: TargetType, withBearerToken token: String? = nil) throws -> URLRequest {
    |                                                                                                                      `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |         var urlComponents = URLComponents(url: baseURL.appendingPathComponent(target.path), resolvingAgainstBaseURL: false)
/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.
 36 | public class MastodonClient: MastodonClientProtocol {
 37 |
 38 |     let urlSession: URLSession
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |     let baseURL: URL
 40 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 39 |     let baseURL: URL
 40 |
 41 |     public init(baseURL: URL, urlSession: URLSession = .shared) {
    |                                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |         self.baseURL = baseURL
 43 |         self.urlSession = urlSession
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:41:57: error: value of type '_' expected to be instance of class or class-constrained type
 39 |     let baseURL: URL
 40 |
 41 |     public init(baseURL: URL, urlSession: URLSession = .shared) {
    |                                                         `- error: value of type '_' expected to be instance of class or class-constrained type
 42 |         self.baseURL = baseURL
 43 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:41:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 39 |     let baseURL: URL
 40 |
 41 |     public init(baseURL: URL, urlSession: URLSession = .shared) {
    |                                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 42 |         self.baseURL = baseURL
 43 |         self.urlSession = urlSession
/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.
 53 |     private let token: Token
 54 |     private let baseURL: URL
 55 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |
 57 |     init(baseURL: URL, urlSession: URLSession, token: Token) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 55 |     private let urlSession: URLSession
 56 |
 57 |     init(baseURL: URL, urlSession: URLSession, token: Token) {
    |                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |         self.token = token
 59 |         self.baseURL = baseURL
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:19:23: error: cannot find 'URLRequest' in scope
 17 |         guard let url = urlComponents?.url else { throw NetworkingError.cannotCreateUrlRequest }
 18 |
 19 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 20 |
 21 |         target.headers?.forEach { header in
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:72:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 70 |         )
 71 |
 72 |         let (data, _) = try await urlSession.data(for: request)
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 73 |
 74 |         return try JSONDecoder().decode([Status].self, from: data)
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:87:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 85 |         )
 86 |
 87 |         let (data, _) = try await urlSession.data(for: request)
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 88 |
 89 |         return try JSONDecoder().decode([Status].self, from: data)
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:103:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
101 |         )
102 |
103 |         let (data, _) = try await urlSession.data(for: request)
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
104 |
105 |         return try JSONDecoder().decode([Status].self, from: data)
[11/42] Compiling MastodonSwift TargetType.swift
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:8:105: error: cannot find type 'URLRequest' in scope
  6 |
  7 | protocol MastodonClientProtocol {
  8 |     static func request(for baseURL: URL, target: TargetType, withBearerToken token: String?) throws -> URLRequest
    |                                                                                                         `- error: cannot find type 'URLRequest' in scope
  9 | }
 10 |
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:12:118: error: cannot find type 'URLRequest' in scope
 10 |
 11 | extension MastodonClientProtocol {
 12 |     public static func request(for baseURL: URL, target: TargetType, withBearerToken token: String? = nil) throws -> URLRequest {
    |                                                                                                                      `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |         var urlComponents = URLComponents(url: baseURL.appendingPathComponent(target.path), resolvingAgainstBaseURL: false)
/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.
 36 | public class MastodonClient: MastodonClientProtocol {
 37 |
 38 |     let urlSession: URLSession
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |     let baseURL: URL
 40 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 39 |     let baseURL: URL
 40 |
 41 |     public init(baseURL: URL, urlSession: URLSession = .shared) {
    |                                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |         self.baseURL = baseURL
 43 |         self.urlSession = urlSession
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:41:57: error: value of type '_' expected to be instance of class or class-constrained type
 39 |     let baseURL: URL
 40 |
 41 |     public init(baseURL: URL, urlSession: URLSession = .shared) {
    |                                                         `- error: value of type '_' expected to be instance of class or class-constrained type
 42 |         self.baseURL = baseURL
 43 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:41:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 39 |     let baseURL: URL
 40 |
 41 |     public init(baseURL: URL, urlSession: URLSession = .shared) {
    |                                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 42 |         self.baseURL = baseURL
 43 |         self.urlSession = urlSession
/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.
 53 |     private let token: Token
 54 |     private let baseURL: URL
 55 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |
 57 |     init(baseURL: URL, urlSession: URLSession, token: Token) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 55 |     private let urlSession: URLSession
 56 |
 57 |     init(baseURL: URL, urlSession: URLSession, token: Token) {
    |                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |         self.token = token
 59 |         self.baseURL = baseURL
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:19:23: error: cannot find 'URLRequest' in scope
 17 |         guard let url = urlComponents?.url else { throw NetworkingError.cannotCreateUrlRequest }
 18 |
 19 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 20 |
 21 |         target.headers?.forEach { header in
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:72:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 70 |         )
 71 |
 72 |         let (data, _) = try await urlSession.data(for: request)
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 73 |
 74 |         return try JSONDecoder().decode([Status].self, from: data)
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:87:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 85 |         )
 86 |
 87 |         let (data, _) = try await urlSession.data(for: request)
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 88 |
 89 |         return try JSONDecoder().decode([Status].self, from: data)
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:103:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
101 |         )
102 |
103 |         let (data, _) = try await urlSession.data(for: request)
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
104 |
105 |         return try JSONDecoder().decode([Status].self, from: data)
[12/42] Compiling MastodonSwift Accounts.swift
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:8:105: error: cannot find type 'URLRequest' in scope
  6 |
  7 | protocol MastodonClientProtocol {
  8 |     static func request(for baseURL: URL, target: TargetType, withBearerToken token: String?) throws -> URLRequest
    |                                                                                                         `- error: cannot find type 'URLRequest' in scope
  9 | }
 10 |
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:12:118: error: cannot find type 'URLRequest' in scope
 10 |
 11 | extension MastodonClientProtocol {
 12 |     public static func request(for baseURL: URL, target: TargetType, withBearerToken token: String? = nil) throws -> URLRequest {
    |                                                                                                                      `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |         var urlComponents = URLComponents(url: baseURL.appendingPathComponent(target.path), resolvingAgainstBaseURL: false)
/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.
 36 | public class MastodonClient: MastodonClientProtocol {
 37 |
 38 |     let urlSession: URLSession
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |     let baseURL: URL
 40 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 39 |     let baseURL: URL
 40 |
 41 |     public init(baseURL: URL, urlSession: URLSession = .shared) {
    |                                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |         self.baseURL = baseURL
 43 |         self.urlSession = urlSession
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:41:57: error: value of type '_' expected to be instance of class or class-constrained type
 39 |     let baseURL: URL
 40 |
 41 |     public init(baseURL: URL, urlSession: URLSession = .shared) {
    |                                                         `- error: value of type '_' expected to be instance of class or class-constrained type
 42 |         self.baseURL = baseURL
 43 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:41:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 39 |     let baseURL: URL
 40 |
 41 |     public init(baseURL: URL, urlSession: URLSession = .shared) {
    |                                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 42 |         self.baseURL = baseURL
 43 |         self.urlSession = urlSession
/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.
 53 |     private let token: Token
 54 |     private let baseURL: URL
 55 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |
 57 |     init(baseURL: URL, urlSession: URLSession, token: Token) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 55 |     private let urlSession: URLSession
 56 |
 57 |     init(baseURL: URL, urlSession: URLSession, token: Token) {
    |                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |         self.token = token
 59 |         self.baseURL = baseURL
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:19:23: error: cannot find 'URLRequest' in scope
 17 |         guard let url = urlComponents?.url else { throw NetworkingError.cannotCreateUrlRequest }
 18 |
 19 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 20 |
 21 |         target.headers?.forEach { header in
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:72:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 70 |         )
 71 |
 72 |         let (data, _) = try await urlSession.data(for: request)
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 73 |
 74 |         return try JSONDecoder().decode([Status].self, from: data)
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:87:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 85 |         )
 86 |
 87 |         let (data, _) = try await urlSession.data(for: request)
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 88 |
 89 |         return try JSONDecoder().decode([Status].self, from: data)
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:103:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
101 |         )
102 |
103 |         let (data, _) = try await urlSession.data(for: request)
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
104 |
105 |         return try JSONDecoder().decode([Status].self, from: data)
[13/42] Compiling MastodonSwift Apps.swift
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:8:105: error: cannot find type 'URLRequest' in scope
  6 |
  7 | protocol MastodonClientProtocol {
  8 |     static func request(for baseURL: URL, target: TargetType, withBearerToken token: String?) throws -> URLRequest
    |                                                                                                         `- error: cannot find type 'URLRequest' in scope
  9 | }
 10 |
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:12:118: error: cannot find type 'URLRequest' in scope
 10 |
 11 | extension MastodonClientProtocol {
 12 |     public static func request(for baseURL: URL, target: TargetType, withBearerToken token: String? = nil) throws -> URLRequest {
    |                                                                                                                      `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |         var urlComponents = URLComponents(url: baseURL.appendingPathComponent(target.path), resolvingAgainstBaseURL: false)
/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.
 36 | public class MastodonClient: MastodonClientProtocol {
 37 |
 38 |     let urlSession: URLSession
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |     let baseURL: URL
 40 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 39 |     let baseURL: URL
 40 |
 41 |     public init(baseURL: URL, urlSession: URLSession = .shared) {
    |                                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |         self.baseURL = baseURL
 43 |         self.urlSession = urlSession
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:41:57: error: value of type '_' expected to be instance of class or class-constrained type
 39 |     let baseURL: URL
 40 |
 41 |     public init(baseURL: URL, urlSession: URLSession = .shared) {
    |                                                         `- error: value of type '_' expected to be instance of class or class-constrained type
 42 |         self.baseURL = baseURL
 43 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:41:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 39 |     let baseURL: URL
 40 |
 41 |     public init(baseURL: URL, urlSession: URLSession = .shared) {
    |                                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 42 |         self.baseURL = baseURL
 43 |         self.urlSession = urlSession
/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.
 53 |     private let token: Token
 54 |     private let baseURL: URL
 55 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |
 57 |     init(baseURL: URL, urlSession: URLSession, token: Token) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 55 |     private let urlSession: URLSession
 56 |
 57 |     init(baseURL: URL, urlSession: URLSession, token: Token) {
    |                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |         self.token = token
 59 |         self.baseURL = baseURL
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:19:23: error: cannot find 'URLRequest' in scope
 17 |         guard let url = urlComponents?.url else { throw NetworkingError.cannotCreateUrlRequest }
 18 |
 19 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 20 |
 21 |         target.headers?.forEach { header in
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:72:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 70 |         )
 71 |
 72 |         let (data, _) = try await urlSession.data(for: request)
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 73 |
 74 |         return try JSONDecoder().decode([Status].self, from: data)
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:87:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 85 |         )
 86 |
 87 |         let (data, _) = try await urlSession.data(for: request)
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 88 |
 89 |         return try JSONDecoder().decode([Status].self, from: data)
/host/spi-builder-workspace/Sources/MastodonSwift/MastodonClient.swift:103:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
101 |         )
102 |
103 |         let (data, _) = try await urlSession.data(for: request)
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
104 |
105 |         return try JSONDecoder().decode([Status].self, from: data)
[14/42] Compiling MastodonSwift Reports.swift
[15/42] Compiling MastodonSwift Search.swift
[16/42] Compiling MastodonSwift Statuses.swift
[17/42] Compiling MastodonSwift Timelines.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 Blocks.swift
[29/42] Compiling MastodonSwift Favourites.swift
[30/42] Compiling MastodonSwift FollowRequests.swift
[31/42] Compiling MastodonSwift Follows.swift
[32/42] Compiling MastodonSwift Instances.swift
[33/42] Compiling MastodonSwift AccessToken.swift
[34/42] Compiling MastodonSwift Account.swift
[35/42] Compiling MastodonSwift App.swift
[36/42] Compiling MastodonSwift Application.swift
[37/42] Compiling MastodonSwift Attachment.swift
[38/42] Compiling MastodonSwift Card.swift
[39/42] Compiling MastodonSwift Context.swift
[40/42] Compiling MastodonSwift Error.swift
[41/42] Compiling MastodonSwift Instance.swift
[42/42] Compiling MastodonSwift Mention.swift
BUILD FAILURE 6.3 linux