Build Information
Failed to build MastodonSwift, reference 2.1.2 (26d970
), with Swift 6.1 for Wasm on 28 May 2025 12:37:03 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
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: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/Swiftodon/Mastodon.swift.git
https://github.com/Swiftodon/Mastodon.swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "MastodonSwift",
"name" : "MastodonSwift",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "watchos",
"version" : "8.0"
}
],
"products" : [
{
"name" : "MastodonSwift",
"targets" : [
"MastodonSwift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "MastodonSwiftTests",
"module_type" : "SwiftTarget",
"name" : "MastodonSwiftTests",
"path" : "Tests/MastodonSwiftTests",
"sources" : [
"MastodonClientTests.swift",
"Mocking/MockURLProcotol.swift",
"Mocking/MockURLSession.swift",
"Mocking/Responses/CreateAppMockResponse.swift",
"Mocking/Responses/GetAuthenticateMockResponse.swift",
"Mocking/Responses/GetHomeTimelineMockResponse.swift"
],
"target_dependencies" : [
"MastodonSwift"
],
"type" : "test"
},
{
"c99name" : "MastodonSwift",
"module_type" : "SwiftTarget",
"name" : "MastodonSwift",
"path" : "Sources/MastodonSwift",
"product_memberships" : [
"MastodonSwift"
],
"sources" : [
"Entities/AccessToken.swift",
"Entities/Account.swift",
"Entities/App.swift",
"Entities/Application.swift",
"Entities/Attachment.swift",
"Entities/Card.swift",
"Entities/Context.swift",
"Entities/Error.swift",
"Entities/Instance.swift",
"Entities/Mention.swift",
"Entities/Notification.swift",
"Entities/Relationship.swift",
"Entities/Report.swift",
"Entities/Result.swift",
"Entities/Status.swift",
"Entities/Tag.swift",
"Extensions/Primitive+AsString.swift",
"Extensions/String+AsURL.swift",
"Extensions/URL+OptionalString.swift",
"MastodonClient+Convenience.swift",
"MastodonClient.swift",
"Networking/MultipartFormData.swift",
"Networking/TargetType.swift",
"Targets/Accounts.swift",
"Targets/Apps.swift",
"Targets/Blocks.swift",
"Targets/Favourites.swift",
"Targets/FollowRequests.swift",
"Targets/Follows.swift",
"Targets/Instances.swift",
"Targets/Mastodon.swift",
"Targets/Media.swift",
"Targets/Mutes.swift",
"Targets/Notifications.swift",
"Targets/OAuth.swift",
"Targets/Reports.swift",
"Targets/Search.swift",
"Targets/Statuses.swift",
"Targets/Timelines.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-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: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 AccessToken.swift
[5/42] Compiling MastodonSwift Account.swift
[6/42] Compiling MastodonSwift App.swift
[7/42] Compiling MastodonSwift Application.swift
[8/42] Compiling MastodonSwift Attachment.swift
[9/42] Compiling MastodonSwift Mastodon.swift
[10/42] Compiling MastodonSwift Media.swift
[11/42] Compiling MastodonSwift Mutes.swift
[12/42] Compiling MastodonSwift Notifications.swift
[13/42] Compiling MastodonSwift OAuth.swift
[14/42] Compiling MastodonSwift Card.swift
[15/42] Compiling MastodonSwift Context.swift
[16/42] Compiling MastodonSwift Error.swift
[17/42] Compiling MastodonSwift Instance.swift
[18/42] Compiling MastodonSwift Mention.swift
[19/42] Compiling MastodonSwift Blocks.swift
[20/42] Compiling MastodonSwift Favourites.swift
[21/42] Compiling MastodonSwift FollowRequests.swift
[22/42] Compiling MastodonSwift Follows.swift
[23/42] Compiling MastodonSwift Instances.swift
[24/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)
[25/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)
[26/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)
[27/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)
[28/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)
[29/42] Compiling MastodonSwift Reports.swift
[30/42] Compiling MastodonSwift Search.swift
[31/42] Compiling MastodonSwift Statuses.swift
[32/42] Compiling MastodonSwift Timelines.swift
[33/42] Compiling MastodonSwift Notification.swift
[34/42] Compiling MastodonSwift Relationship.swift
[35/42] Compiling MastodonSwift Report.swift
[36/42] Compiling MastodonSwift Result.swift
[37/42] Compiling MastodonSwift Status.swift
[38/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: 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)
[39/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: 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)
[40/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: 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)
[41/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: 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)
[42/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: 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)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/37] 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: 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)
[3/37] 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: 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)
[4/37] 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: 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)
[5/37] 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: 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)
[6/37] 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: 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)
[7/41] Compiling MastodonSwift Blocks.swift
[8/41] Compiling MastodonSwift Favourites.swift
[9/41] Compiling MastodonSwift FollowRequests.swift
[10/41] Compiling MastodonSwift Follows.swift
[11/41] Compiling MastodonSwift Instances.swift
[12/41] 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)
[13/41] 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)
[14/41] 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)
[15/41] 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)
[16/41] 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)
[17/41] Compiling MastodonSwift Mastodon.swift
[18/41] Compiling MastodonSwift Media.swift
[19/41] Compiling MastodonSwift Mutes.swift
[20/41] Compiling MastodonSwift Notifications.swift
[21/41] Compiling MastodonSwift OAuth.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[22/41] Compiling MastodonSwift Card.swift
[23/41] Compiling MastodonSwift Context.swift
[24/41] Compiling MastodonSwift Error.swift
[25/41] Compiling MastodonSwift Instance.swift
[26/41] Compiling MastodonSwift Mention.swift
[27/41] Compiling MastodonSwift AccessToken.swift
[28/41] Compiling MastodonSwift Account.swift
[29/41] Compiling MastodonSwift App.swift
[30/41] Compiling MastodonSwift Application.swift
[31/41] Compiling MastodonSwift Attachment.swift
[32/41] 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: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
[33/41] Compiling MastodonSwift Notification.swift
[34/41] Compiling MastodonSwift Relationship.swift
[35/41] Compiling MastodonSwift Report.swift
[36/41] Compiling MastodonSwift Result.swift
[37/41] Compiling MastodonSwift Status.swift
[38/41] Compiling MastodonSwift Reports.swift
[39/41] Compiling MastodonSwift Search.swift
[40/41] Compiling MastodonSwift Statuses.swift
[41/41] Compiling MastodonSwift Timelines.swift
BUILD FAILURE 6.1 wasm