Build Information
Failed to build SessionPlus, reference main (820928
), with Swift 6.1 for Wasm on 28 May 2025 13:14:35 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
69 | static let forbidden: Self = 403
| |- warning: static property 'forbidden' is not concurrency-safe because non-'Sendable' type 'StatusCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'forbidden' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | /// **404** The requested resource could not be found but may be available in the future.
71 | static let notFound: Self = 404
/host/spi-builder-workspace/Sources/SessionPlus/Interface/StatusCode.swift:71:16: warning: static property 'notFound' is not concurrency-safe because non-'Sendable' type 'StatusCode' may have shared mutable state; this is an error in the Swift 6 language mode
7 | /// * 4xx Client Error: The request contains bad syntax or cannot be fulfilled.
8 | /// * 5xx Server Error: The server failed to fulfill an apparently valid request.
9 | public struct StatusCode: ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'StatusCode' conform to the 'Sendable' protocol
10 | public let rawValue: Int
11 |
:
69 | static let forbidden: Self = 403
70 | /// **404** The requested resource could not be found but may be available in the future.
71 | static let notFound: Self = 404
| |- warning: static property 'notFound' is not concurrency-safe because non-'Sendable' type 'StatusCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'notFound' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 | /// **408** The server timed out waiting for the request.
73 | static let requestTimeout: Self = 408
/host/spi-builder-workspace/Sources/SessionPlus/Interface/StatusCode.swift:73:16: warning: static property 'requestTimeout' is not concurrency-safe because non-'Sendable' type 'StatusCode' may have shared mutable state; this is an error in the Swift 6 language mode
7 | /// * 4xx Client Error: The request contains bad syntax or cannot be fulfilled.
8 | /// * 5xx Server Error: The server failed to fulfill an apparently valid request.
9 | public struct StatusCode: ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'StatusCode' conform to the 'Sendable' protocol
10 | public let rawValue: Int
11 |
:
71 | static let notFound: Self = 404
72 | /// **408** The server timed out waiting for the request.
73 | static let requestTimeout: Self = 408
| |- warning: static property 'requestTimeout' is not concurrency-safe because non-'Sendable' type 'StatusCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'requestTimeout' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
74 | /// **409** Indicates that the request could not be processed because of conflict in the current state of the resource, such as an edit conflict between multiple simultaneous updates.
75 | static let conflict: Self = 409
/host/spi-builder-workspace/Sources/SessionPlus/Interface/StatusCode.swift:75:16: warning: static property 'conflict' is not concurrency-safe because non-'Sendable' type 'StatusCode' may have shared mutable state; this is an error in the Swift 6 language mode
7 | /// * 4xx Client Error: The request contains bad syntax or cannot be fulfilled.
8 | /// * 5xx Server Error: The server failed to fulfill an apparently valid request.
9 | public struct StatusCode: ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'StatusCode' conform to the 'Sendable' protocol
10 | public let rawValue: Int
11 |
:
73 | static let requestTimeout: Self = 408
74 | /// **409** Indicates that the request could not be processed because of conflict in the current state of the resource, such as an edit conflict between multiple simultaneous updates.
75 | static let conflict: Self = 409
| |- warning: static property 'conflict' is not concurrency-safe because non-'Sendable' type 'StatusCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'conflict' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | /// **418** RFC 2324 specifies this code should be returned by teapots requested to brew coffee.
77 | static let iAmATeapot: Self = 418
/host/spi-builder-workspace/Sources/SessionPlus/Interface/StatusCode.swift:77:16: warning: static property 'iAmATeapot' is not concurrency-safe because non-'Sendable' type 'StatusCode' may have shared mutable state; this is an error in the Swift 6 language mode
7 | /// * 4xx Client Error: The request contains bad syntax or cannot be fulfilled.
8 | /// * 5xx Server Error: The server failed to fulfill an apparently valid request.
9 | public struct StatusCode: ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'StatusCode' conform to the 'Sendable' protocol
10 | public let rawValue: Int
11 |
:
75 | static let conflict: Self = 409
76 | /// **418** RFC 2324 specifies this code should be returned by teapots requested to brew coffee.
77 | static let iAmATeapot: Self = 418
| |- warning: static property 'iAmATeapot' is not concurrency-safe because non-'Sendable' type 'StatusCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'iAmATeapot' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
78 | /// **429** The user has sent too many requests in a given amount of time.
79 | static let tooManyRequests: Self = 429
/host/spi-builder-workspace/Sources/SessionPlus/Interface/StatusCode.swift:79:16: warning: static property 'tooManyRequests' is not concurrency-safe because non-'Sendable' type 'StatusCode' may have shared mutable state; this is an error in the Swift 6 language mode
7 | /// * 4xx Client Error: The request contains bad syntax or cannot be fulfilled.
8 | /// * 5xx Server Error: The server failed to fulfill an apparently valid request.
9 | public struct StatusCode: ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'StatusCode' conform to the 'Sendable' protocol
10 | public let rawValue: Int
11 |
:
77 | static let iAmATeapot: Self = 418
78 | /// **429** The user has sent too many requests in a given amount of time.
79 | static let tooManyRequests: Self = 429
| |- warning: static property 'tooManyRequests' is not concurrency-safe because non-'Sendable' type 'StatusCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'tooManyRequests' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
80 |
81 | // MARK: - Server Errors
/host/spi-builder-workspace/Sources/SessionPlus/Interface/StatusCode.swift:84:16: warning: static property 'internalServerError' is not concurrency-safe because non-'Sendable' type 'StatusCode' may have shared mutable state; this is an error in the Swift 6 language mode
7 | /// * 4xx Client Error: The request contains bad syntax or cannot be fulfilled.
8 | /// * 5xx Server Error: The server failed to fulfill an apparently valid request.
9 | public struct StatusCode: ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'StatusCode' conform to the 'Sendable' protocol
10 | public let rawValue: Int
11 |
:
82 |
83 | /// **500** A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.
84 | static let internalServerError: Self = 500
| |- warning: static property 'internalServerError' is not concurrency-safe because non-'Sendable' type 'StatusCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'internalServerError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
85 | /// **501** The server either does not recognize the request method, or it lacks the ability to fulfill the request.
86 | static let notImplemented: Self = 501
/host/spi-builder-workspace/Sources/SessionPlus/Interface/StatusCode.swift:86:16: warning: static property 'notImplemented' is not concurrency-safe because non-'Sendable' type 'StatusCode' may have shared mutable state; this is an error in the Swift 6 language mode
7 | /// * 4xx Client Error: The request contains bad syntax or cannot be fulfilled.
8 | /// * 5xx Server Error: The server failed to fulfill an apparently valid request.
9 | public struct StatusCode: ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'StatusCode' conform to the 'Sendable' protocol
10 | public let rawValue: Int
11 |
:
84 | static let internalServerError: Self = 500
85 | /// **501** The server either does not recognize the request method, or it lacks the ability to fulfill the request.
86 | static let notImplemented: Self = 501
| |- warning: static property 'notImplemented' is not concurrency-safe because non-'Sendable' type 'StatusCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'notImplemented' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 | /// **502** The server was acting as a gateway or proxy and received an invalid response from the upstream server.
88 | static let badGateway: Self = 502
/host/spi-builder-workspace/Sources/SessionPlus/Interface/StatusCode.swift:88:16: warning: static property 'badGateway' is not concurrency-safe because non-'Sendable' type 'StatusCode' may have shared mutable state; this is an error in the Swift 6 language mode
7 | /// * 4xx Client Error: The request contains bad syntax or cannot be fulfilled.
8 | /// * 5xx Server Error: The server failed to fulfill an apparently valid request.
9 | public struct StatusCode: ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'StatusCode' conform to the 'Sendable' protocol
10 | public let rawValue: Int
11 |
:
86 | static let notImplemented: Self = 501
87 | /// **502** The server was acting as a gateway or proxy and received an invalid response from the upstream server.
88 | static let badGateway: Self = 502
| |- warning: static property 'badGateway' is not concurrency-safe because non-'Sendable' type 'StatusCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'badGateway' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 | /// **503** The server cannot handle the request (because it is overloaded or down for maintenance).
90 | static let serviceUnavailable: Self = 503
/host/spi-builder-workspace/Sources/SessionPlus/Interface/StatusCode.swift:90:16: warning: static property 'serviceUnavailable' is not concurrency-safe because non-'Sendable' type 'StatusCode' may have shared mutable state; this is an error in the Swift 6 language mode
7 | /// * 4xx Client Error: The request contains bad syntax or cannot be fulfilled.
8 | /// * 5xx Server Error: The server failed to fulfill an apparently valid request.
9 | public struct StatusCode: ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'StatusCode' conform to the 'Sendable' protocol
10 | public let rawValue: Int
11 |
:
88 | static let badGateway: Self = 502
89 | /// **503** The server cannot handle the request (because it is overloaded or down for maintenance).
90 | static let serviceUnavailable: Self = 503
| |- warning: static property 'serviceUnavailable' is not concurrency-safe because non-'Sendable' type 'StatusCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'serviceUnavailable' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
91 | /// **504** The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.
92 | static let gatewayTimeout: Self = 504
/host/spi-builder-workspace/Sources/SessionPlus/Interface/StatusCode.swift:92:16: warning: static property 'gatewayTimeout' is not concurrency-safe because non-'Sendable' type 'StatusCode' may have shared mutable state; this is an error in the Swift 6 language mode
7 | /// * 4xx Client Error: The request contains bad syntax or cannot be fulfilled.
8 | /// * 5xx Server Error: The server failed to fulfill an apparently valid request.
9 | public struct StatusCode: ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'StatusCode' conform to the 'Sendable' protocol
10 | public let rawValue: Int
11 |
:
90 | static let serviceUnavailable: Self = 503
91 | /// **504** The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.
92 | static let gatewayTimeout: Self = 504
| |- warning: static property 'gatewayTimeout' is not concurrency-safe because non-'Sendable' type 'StatusCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'gatewayTimeout' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
93 | }
94 |
[41/52] Compiling SessionPlus MIMEType.swift
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:34:16: warning: static property 'bin' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
32 | public extension MIMEType {
33 | /// Any kind of binary data
34 | static let bin: Self = "application/octet-stream"
| |- warning: static property 'bin' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bin' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | /// Graphics Interchange Format (GIF)
36 | static let gif: Self = "image/gif"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:36:16: warning: static property 'gif' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
34 | static let bin: Self = "application/octet-stream"
35 | /// Graphics Interchange Format (GIF)
36 | static let gif: Self = "image/gif"
| |- warning: static property 'gif' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'gif' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | /// HyperText Markup Language
38 | static let html: Self = "text/html"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:38:16: warning: static property 'html' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
36 | static let gif: Self = "image/gif"
37 | /// HyperText Markup Language
38 | static let html: Self = "text/html"
| |- warning: static property 'html' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'html' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | /// JPEG images
40 | static let jpeg: Self = "image/jpeg"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:40:16: warning: static property 'jpeg' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
38 | static let html: Self = "text/html"
39 | /// JPEG images
40 | static let jpeg: Self = "image/jpeg"
| |- warning: static property 'jpeg' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'jpeg' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | /// JavaScript
42 | static let js: Self = "text/javascript"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:42:16: warning: static property 'js' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
40 | static let jpeg: Self = "image/jpeg"
41 | /// JavaScript
42 | static let js: Self = "text/javascript"
| |- warning: static property 'js' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'js' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | /// JSON Document
44 | static let json: Self = "application/json"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:44:16: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
42 | static let js: Self = "text/javascript"
43 | /// JSON Document
44 | static let json: Self = "application/json"
| |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'json' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | /// JSON-LD Document
46 | static let jsonld: Self = "application/ld+json"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:46:16: warning: static property 'jsonld' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
44 | static let json: Self = "application/json"
45 | /// JSON-LD Document
46 | static let jsonld: Self = "application/ld+json"
| |- warning: static property 'jsonld' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'jsonld' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | /// Portable Network Graphics
48 | static let png: Self = "image/png"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:48:16: warning: static property 'png' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
46 | static let jsonld: Self = "application/ld+json"
47 | /// Portable Network Graphics
48 | static let png: Self = "image/png"
| |- warning: static property 'png' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'png' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | /// Adobe Portable Document Format
50 | static let pdf: Self = "application/pdf"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:50:16: warning: static property 'pdf' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
48 | static let png: Self = "image/png"
49 | /// Adobe Portable Document Format
50 | static let pdf: Self = "application/pdf"
| |- warning: static property 'pdf' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'pdf' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | /// Scalable Vector Graphics
52 | static let svg: Self = "image/svg+xml"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:52:16: warning: static property 'svg' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
50 | static let pdf: Self = "application/pdf"
51 | /// Scalable Vector Graphics
52 | static let svg: Self = "image/svg+xml"
| |- warning: static property 'svg' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'svg' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | /// Text
54 | static let txt: Self = "text/plain"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:54:16: warning: static property 'txt' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
52 | static let svg: Self = "image/svg+xml"
53 | /// Text
54 | static let txt: Self = "text/plain"
| |- warning: static property 'txt' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'txt' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | /// XML
56 | static let xml: Self = "application/xml"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:56:16: warning: static property 'xml' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
54 | static let txt: Self = "text/plain"
55 | /// XML
56 | static let xml: Self = "application/xml"
| |- warning: static property 'xml' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'xml' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | }
58 |
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:38:16: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
:
36 | ///
37 | /// Requests using GET should only retrieve data.
38 | static let get: Self = "GET"
| |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'get' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | /// The PUT method replaces all current representations of the target resource with the request payload.
40 | static let put: Self = "PUT"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:40:16: warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
:
38 | static let get: Self = "GET"
39 | /// The PUT method replaces all current representations of the target resource with the request payload.
40 | static let put: Self = "PUT"
| |- warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'put' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | /// The POST method is used to submit an entity to the specified resource, often causing a change in state or side
42 | /// effects on the server.
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:43:16: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
:
41 | /// The POST method is used to submit an entity to the specified resource, often causing a change in state or side
42 | /// effects on the server.
43 | static let post: Self = "POST"
| |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'post' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 | /// The PATCH method is used to apply partial modifications to a resource.
45 | static let patch: Self = "PATCH"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:45:16: warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
:
43 | static let post: Self = "POST"
44 | /// The PATCH method is used to apply partial modifications to a resource.
45 | static let patch: Self = "PATCH"
| |- warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'patch' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | /// The DELETE method deletes the specified resource.
47 | static let delete: Self = "DELETE"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:47:16: warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
:
45 | static let patch: Self = "PATCH"
46 | /// The DELETE method deletes the specified resource.
47 | static let delete: Self = "DELETE"
| |- warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'delete' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | }
49 |
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Request.swift:56:43: warning: type 'Address' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
54 | var metadata: Logger.Metadata {
55 | [
56 | "address": .stringConvertible(address),
| `- warning: type 'Address' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
57 | "method": .stringConvertible(method),
58 | "bytes": .stringConvertible((body ?? Data()).count),
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Address.swift:7:13: note: consider making enum 'Address' conform to the 'Sendable' protocol
5 |
6 | /// The method in which a `Request` URL is described and constructed.
7 | public enum Address: Codable {
| `- note: consider making enum 'Address' conform to the 'Sendable' protocol
8 | /// The full URL including any query components.
9 | case absolute(URL)
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Request.swift:57:42: warning: type 'Method' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | [
56 | "address": .stringConvertible(address),
57 | "method": .stringConvertible(method),
| `- warning: type 'Method' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
58 | "bytes": .stringConvertible((body ?? Data()).count),
59 | ]
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:6:15: note: consider making struct 'Method' conform to the 'Sendable' protocol
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Request.swift:64:43: warning: type 'Address' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
62 | var verboseMetadata: Logger.Metadata {
63 | [
64 | "address": .stringConvertible(address),
| `- warning: type 'Address' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
65 | "method": .stringConvertible(method),
66 | "bytes": .stringConvertible((body ?? Data()).count),
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Address.swift:7:13: note: consider making enum 'Address' conform to the 'Sendable' protocol
5 |
6 | /// The method in which a `Request` URL is described and constructed.
7 | public enum Address: Codable {
| `- note: consider making enum 'Address' conform to the 'Sendable' protocol
8 | /// The full URL including any query components.
9 | case absolute(URL)
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Request.swift:65:42: warning: type 'Method' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
63 | [
64 | "address": .stringConvertible(address),
65 | "method": .stringConvertible(method),
| `- warning: type 'Method' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
66 | "bytes": .stringConvertible((body ?? Data()).count),
67 | "body": .string(String(decoding: body ?? Data(), as: UTF8.self)),
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:6:15: note: consider making struct 'Method' conform to the 'Sendable' protocol
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
[42/52] Compiling SessionPlus Method.swift
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:34:16: warning: static property 'bin' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
32 | public extension MIMEType {
33 | /// Any kind of binary data
34 | static let bin: Self = "application/octet-stream"
| |- warning: static property 'bin' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bin' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | /// Graphics Interchange Format (GIF)
36 | static let gif: Self = "image/gif"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:36:16: warning: static property 'gif' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
34 | static let bin: Self = "application/octet-stream"
35 | /// Graphics Interchange Format (GIF)
36 | static let gif: Self = "image/gif"
| |- warning: static property 'gif' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'gif' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | /// HyperText Markup Language
38 | static let html: Self = "text/html"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:38:16: warning: static property 'html' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
36 | static let gif: Self = "image/gif"
37 | /// HyperText Markup Language
38 | static let html: Self = "text/html"
| |- warning: static property 'html' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'html' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | /// JPEG images
40 | static let jpeg: Self = "image/jpeg"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:40:16: warning: static property 'jpeg' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
38 | static let html: Self = "text/html"
39 | /// JPEG images
40 | static let jpeg: Self = "image/jpeg"
| |- warning: static property 'jpeg' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'jpeg' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | /// JavaScript
42 | static let js: Self = "text/javascript"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:42:16: warning: static property 'js' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
40 | static let jpeg: Self = "image/jpeg"
41 | /// JavaScript
42 | static let js: Self = "text/javascript"
| |- warning: static property 'js' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'js' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | /// JSON Document
44 | static let json: Self = "application/json"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:44:16: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
42 | static let js: Self = "text/javascript"
43 | /// JSON Document
44 | static let json: Self = "application/json"
| |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'json' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | /// JSON-LD Document
46 | static let jsonld: Self = "application/ld+json"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:46:16: warning: static property 'jsonld' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
44 | static let json: Self = "application/json"
45 | /// JSON-LD Document
46 | static let jsonld: Self = "application/ld+json"
| |- warning: static property 'jsonld' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'jsonld' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | /// Portable Network Graphics
48 | static let png: Self = "image/png"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:48:16: warning: static property 'png' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
46 | static let jsonld: Self = "application/ld+json"
47 | /// Portable Network Graphics
48 | static let png: Self = "image/png"
| |- warning: static property 'png' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'png' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | /// Adobe Portable Document Format
50 | static let pdf: Self = "application/pdf"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:50:16: warning: static property 'pdf' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
48 | static let png: Self = "image/png"
49 | /// Adobe Portable Document Format
50 | static let pdf: Self = "application/pdf"
| |- warning: static property 'pdf' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'pdf' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | /// Scalable Vector Graphics
52 | static let svg: Self = "image/svg+xml"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:52:16: warning: static property 'svg' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
50 | static let pdf: Self = "application/pdf"
51 | /// Scalable Vector Graphics
52 | static let svg: Self = "image/svg+xml"
| |- warning: static property 'svg' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'svg' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | /// Text
54 | static let txt: Self = "text/plain"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:54:16: warning: static property 'txt' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
52 | static let svg: Self = "image/svg+xml"
53 | /// Text
54 | static let txt: Self = "text/plain"
| |- warning: static property 'txt' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'txt' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | /// XML
56 | static let xml: Self = "application/xml"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:56:16: warning: static property 'xml' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
54 | static let txt: Self = "text/plain"
55 | /// XML
56 | static let xml: Self = "application/xml"
| |- warning: static property 'xml' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'xml' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | }
58 |
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:38:16: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
:
36 | ///
37 | /// Requests using GET should only retrieve data.
38 | static let get: Self = "GET"
| |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'get' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | /// The PUT method replaces all current representations of the target resource with the request payload.
40 | static let put: Self = "PUT"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:40:16: warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
:
38 | static let get: Self = "GET"
39 | /// The PUT method replaces all current representations of the target resource with the request payload.
40 | static let put: Self = "PUT"
| |- warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'put' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | /// The POST method is used to submit an entity to the specified resource, often causing a change in state or side
42 | /// effects on the server.
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:43:16: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
:
41 | /// The POST method is used to submit an entity to the specified resource, often causing a change in state or side
42 | /// effects on the server.
43 | static let post: Self = "POST"
| |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'post' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 | /// The PATCH method is used to apply partial modifications to a resource.
45 | static let patch: Self = "PATCH"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:45:16: warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
:
43 | static let post: Self = "POST"
44 | /// The PATCH method is used to apply partial modifications to a resource.
45 | static let patch: Self = "PATCH"
| |- warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'patch' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | /// The DELETE method deletes the specified resource.
47 | static let delete: Self = "DELETE"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:47:16: warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
:
45 | static let patch: Self = "PATCH"
46 | /// The DELETE method deletes the specified resource.
47 | static let delete: Self = "DELETE"
| |- warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'delete' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | }
49 |
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Request.swift:56:43: warning: type 'Address' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
54 | var metadata: Logger.Metadata {
55 | [
56 | "address": .stringConvertible(address),
| `- warning: type 'Address' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
57 | "method": .stringConvertible(method),
58 | "bytes": .stringConvertible((body ?? Data()).count),
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Address.swift:7:13: note: consider making enum 'Address' conform to the 'Sendable' protocol
5 |
6 | /// The method in which a `Request` URL is described and constructed.
7 | public enum Address: Codable {
| `- note: consider making enum 'Address' conform to the 'Sendable' protocol
8 | /// The full URL including any query components.
9 | case absolute(URL)
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Request.swift:57:42: warning: type 'Method' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | [
56 | "address": .stringConvertible(address),
57 | "method": .stringConvertible(method),
| `- warning: type 'Method' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
58 | "bytes": .stringConvertible((body ?? Data()).count),
59 | ]
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:6:15: note: consider making struct 'Method' conform to the 'Sendable' protocol
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Request.swift:64:43: warning: type 'Address' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
62 | var verboseMetadata: Logger.Metadata {
63 | [
64 | "address": .stringConvertible(address),
| `- warning: type 'Address' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
65 | "method": .stringConvertible(method),
66 | "bytes": .stringConvertible((body ?? Data()).count),
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Address.swift:7:13: note: consider making enum 'Address' conform to the 'Sendable' protocol
5 |
6 | /// The method in which a `Request` URL is described and constructed.
7 | public enum Address: Codable {
| `- note: consider making enum 'Address' conform to the 'Sendable' protocol
8 | /// The full URL including any query components.
9 | case absolute(URL)
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Request.swift:65:42: warning: type 'Method' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
63 | [
64 | "address": .stringConvertible(address),
65 | "method": .stringConvertible(method),
| `- warning: type 'Method' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
66 | "bytes": .stringConvertible((body ?? Data()).count),
67 | "body": .string(String(decoding: body ?? Data(), as: UTF8.self)),
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:6:15: note: consider making struct 'Method' conform to the 'Sendable' protocol
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
[43/52] Compiling SessionPlus QueryItem.swift
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:34:16: warning: static property 'bin' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
32 | public extension MIMEType {
33 | /// Any kind of binary data
34 | static let bin: Self = "application/octet-stream"
| |- warning: static property 'bin' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bin' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | /// Graphics Interchange Format (GIF)
36 | static let gif: Self = "image/gif"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:36:16: warning: static property 'gif' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
34 | static let bin: Self = "application/octet-stream"
35 | /// Graphics Interchange Format (GIF)
36 | static let gif: Self = "image/gif"
| |- warning: static property 'gif' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'gif' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | /// HyperText Markup Language
38 | static let html: Self = "text/html"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:38:16: warning: static property 'html' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
36 | static let gif: Self = "image/gif"
37 | /// HyperText Markup Language
38 | static let html: Self = "text/html"
| |- warning: static property 'html' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'html' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | /// JPEG images
40 | static let jpeg: Self = "image/jpeg"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:40:16: warning: static property 'jpeg' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
38 | static let html: Self = "text/html"
39 | /// JPEG images
40 | static let jpeg: Self = "image/jpeg"
| |- warning: static property 'jpeg' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'jpeg' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | /// JavaScript
42 | static let js: Self = "text/javascript"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:42:16: warning: static property 'js' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
40 | static let jpeg: Self = "image/jpeg"
41 | /// JavaScript
42 | static let js: Self = "text/javascript"
| |- warning: static property 'js' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'js' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | /// JSON Document
44 | static let json: Self = "application/json"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:44:16: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
42 | static let js: Self = "text/javascript"
43 | /// JSON Document
44 | static let json: Self = "application/json"
| |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'json' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | /// JSON-LD Document
46 | static let jsonld: Self = "application/ld+json"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:46:16: warning: static property 'jsonld' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
44 | static let json: Self = "application/json"
45 | /// JSON-LD Document
46 | static let jsonld: Self = "application/ld+json"
| |- warning: static property 'jsonld' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'jsonld' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | /// Portable Network Graphics
48 | static let png: Self = "image/png"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:48:16: warning: static property 'png' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
46 | static let jsonld: Self = "application/ld+json"
47 | /// Portable Network Graphics
48 | static let png: Self = "image/png"
| |- warning: static property 'png' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'png' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | /// Adobe Portable Document Format
50 | static let pdf: Self = "application/pdf"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:50:16: warning: static property 'pdf' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
48 | static let png: Self = "image/png"
49 | /// Adobe Portable Document Format
50 | static let pdf: Self = "application/pdf"
| |- warning: static property 'pdf' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'pdf' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | /// Scalable Vector Graphics
52 | static let svg: Self = "image/svg+xml"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:52:16: warning: static property 'svg' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
50 | static let pdf: Self = "application/pdf"
51 | /// Scalable Vector Graphics
52 | static let svg: Self = "image/svg+xml"
| |- warning: static property 'svg' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'svg' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | /// Text
54 | static let txt: Self = "text/plain"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:54:16: warning: static property 'txt' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
52 | static let svg: Self = "image/svg+xml"
53 | /// Text
54 | static let txt: Self = "text/plain"
| |- warning: static property 'txt' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'txt' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | /// XML
56 | static let xml: Self = "application/xml"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:56:16: warning: static property 'xml' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
54 | static let txt: Self = "text/plain"
55 | /// XML
56 | static let xml: Self = "application/xml"
| |- warning: static property 'xml' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'xml' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | }
58 |
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:38:16: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
:
36 | ///
37 | /// Requests using GET should only retrieve data.
38 | static let get: Self = "GET"
| |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'get' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | /// The PUT method replaces all current representations of the target resource with the request payload.
40 | static let put: Self = "PUT"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:40:16: warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
:
38 | static let get: Self = "GET"
39 | /// The PUT method replaces all current representations of the target resource with the request payload.
40 | static let put: Self = "PUT"
| |- warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'put' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | /// The POST method is used to submit an entity to the specified resource, often causing a change in state or side
42 | /// effects on the server.
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:43:16: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
:
41 | /// The POST method is used to submit an entity to the specified resource, often causing a change in state or side
42 | /// effects on the server.
43 | static let post: Self = "POST"
| |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'post' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 | /// The PATCH method is used to apply partial modifications to a resource.
45 | static let patch: Self = "PATCH"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:45:16: warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
:
43 | static let post: Self = "POST"
44 | /// The PATCH method is used to apply partial modifications to a resource.
45 | static let patch: Self = "PATCH"
| |- warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'patch' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | /// The DELETE method deletes the specified resource.
47 | static let delete: Self = "DELETE"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:47:16: warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
:
45 | static let patch: Self = "PATCH"
46 | /// The DELETE method deletes the specified resource.
47 | static let delete: Self = "DELETE"
| |- warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'delete' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | }
49 |
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Request.swift:56:43: warning: type 'Address' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
54 | var metadata: Logger.Metadata {
55 | [
56 | "address": .stringConvertible(address),
| `- warning: type 'Address' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
57 | "method": .stringConvertible(method),
58 | "bytes": .stringConvertible((body ?? Data()).count),
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Address.swift:7:13: note: consider making enum 'Address' conform to the 'Sendable' protocol
5 |
6 | /// The method in which a `Request` URL is described and constructed.
7 | public enum Address: Codable {
| `- note: consider making enum 'Address' conform to the 'Sendable' protocol
8 | /// The full URL including any query components.
9 | case absolute(URL)
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Request.swift:57:42: warning: type 'Method' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | [
56 | "address": .stringConvertible(address),
57 | "method": .stringConvertible(method),
| `- warning: type 'Method' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
58 | "bytes": .stringConvertible((body ?? Data()).count),
59 | ]
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:6:15: note: consider making struct 'Method' conform to the 'Sendable' protocol
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Request.swift:64:43: warning: type 'Address' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
62 | var verboseMetadata: Logger.Metadata {
63 | [
64 | "address": .stringConvertible(address),
| `- warning: type 'Address' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
65 | "method": .stringConvertible(method),
66 | "bytes": .stringConvertible((body ?? Data()).count),
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Address.swift:7:13: note: consider making enum 'Address' conform to the 'Sendable' protocol
5 |
6 | /// The method in which a `Request` URL is described and constructed.
7 | public enum Address: Codable {
| `- note: consider making enum 'Address' conform to the 'Sendable' protocol
8 | /// The full URL including any query components.
9 | case absolute(URL)
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Request.swift:65:42: warning: type 'Method' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
63 | [
64 | "address": .stringConvertible(address),
65 | "method": .stringConvertible(method),
| `- warning: type 'Method' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
66 | "bytes": .stringConvertible((body ?? Data()).count),
67 | "body": .string(String(decoding: body ?? Data(), as: UTF8.self)),
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:6:15: note: consider making struct 'Method' conform to the 'Sendable' protocol
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
[44/52] Compiling SessionPlus Request.swift
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:34:16: warning: static property 'bin' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
32 | public extension MIMEType {
33 | /// Any kind of binary data
34 | static let bin: Self = "application/octet-stream"
| |- warning: static property 'bin' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bin' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | /// Graphics Interchange Format (GIF)
36 | static let gif: Self = "image/gif"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:36:16: warning: static property 'gif' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
34 | static let bin: Self = "application/octet-stream"
35 | /// Graphics Interchange Format (GIF)
36 | static let gif: Self = "image/gif"
| |- warning: static property 'gif' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'gif' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | /// HyperText Markup Language
38 | static let html: Self = "text/html"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:38:16: warning: static property 'html' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
36 | static let gif: Self = "image/gif"
37 | /// HyperText Markup Language
38 | static let html: Self = "text/html"
| |- warning: static property 'html' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'html' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | /// JPEG images
40 | static let jpeg: Self = "image/jpeg"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:40:16: warning: static property 'jpeg' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
38 | static let html: Self = "text/html"
39 | /// JPEG images
40 | static let jpeg: Self = "image/jpeg"
| |- warning: static property 'jpeg' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'jpeg' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | /// JavaScript
42 | static let js: Self = "text/javascript"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:42:16: warning: static property 'js' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
40 | static let jpeg: Self = "image/jpeg"
41 | /// JavaScript
42 | static let js: Self = "text/javascript"
| |- warning: static property 'js' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'js' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | /// JSON Document
44 | static let json: Self = "application/json"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:44:16: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
42 | static let js: Self = "text/javascript"
43 | /// JSON Document
44 | static let json: Self = "application/json"
| |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'json' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | /// JSON-LD Document
46 | static let jsonld: Self = "application/ld+json"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:46:16: warning: static property 'jsonld' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
44 | static let json: Self = "application/json"
45 | /// JSON-LD Document
46 | static let jsonld: Self = "application/ld+json"
| |- warning: static property 'jsonld' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'jsonld' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | /// Portable Network Graphics
48 | static let png: Self = "image/png"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:48:16: warning: static property 'png' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
46 | static let jsonld: Self = "application/ld+json"
47 | /// Portable Network Graphics
48 | static let png: Self = "image/png"
| |- warning: static property 'png' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'png' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | /// Adobe Portable Document Format
50 | static let pdf: Self = "application/pdf"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:50:16: warning: static property 'pdf' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
48 | static let png: Self = "image/png"
49 | /// Adobe Portable Document Format
50 | static let pdf: Self = "application/pdf"
| |- warning: static property 'pdf' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'pdf' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | /// Scalable Vector Graphics
52 | static let svg: Self = "image/svg+xml"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:52:16: warning: static property 'svg' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
50 | static let pdf: Self = "application/pdf"
51 | /// Scalable Vector Graphics
52 | static let svg: Self = "image/svg+xml"
| |- warning: static property 'svg' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'svg' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | /// Text
54 | static let txt: Self = "text/plain"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:54:16: warning: static property 'txt' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
52 | static let svg: Self = "image/svg+xml"
53 | /// Text
54 | static let txt: Self = "text/plain"
| |- warning: static property 'txt' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'txt' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | /// XML
56 | static let xml: Self = "application/xml"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/MIMEType.swift:56:16: warning: static property 'xml' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// MIME Types used in the API
4 | public struct MIMEType: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'MIMEType' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
54 | static let txt: Self = "text/plain"
55 | /// XML
56 | static let xml: Self = "application/xml"
| |- warning: static property 'xml' is not concurrency-safe because non-'Sendable' type 'MIMEType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'xml' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | }
58 |
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:38:16: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
:
36 | ///
37 | /// Requests using GET should only retrieve data.
38 | static let get: Self = "GET"
| |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'get' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | /// The PUT method replaces all current representations of the target resource with the request payload.
40 | static let put: Self = "PUT"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:40:16: warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
:
38 | static let get: Self = "GET"
39 | /// The PUT method replaces all current representations of the target resource with the request payload.
40 | static let put: Self = "PUT"
| |- warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'put' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | /// The POST method is used to submit an entity to the specified resource, often causing a change in state or side
42 | /// effects on the server.
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:43:16: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
:
41 | /// The POST method is used to submit an entity to the specified resource, often causing a change in state or side
42 | /// effects on the server.
43 | static let post: Self = "POST"
| |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'post' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 | /// The PATCH method is used to apply partial modifications to a resource.
45 | static let patch: Self = "PATCH"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:45:16: warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
:
43 | static let post: Self = "POST"
44 | /// The PATCH method is used to apply partial modifications to a resource.
45 | static let patch: Self = "PATCH"
| |- warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'patch' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | /// The DELETE method deletes the specified resource.
47 | static let delete: Self = "DELETE"
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:47:16: warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
:
45 | static let patch: Self = "PATCH"
46 | /// The DELETE method deletes the specified resource.
47 | static let delete: Self = "DELETE"
| |- warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'Method' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'delete' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | }
49 |
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Request.swift:56:43: warning: type 'Address' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
54 | var metadata: Logger.Metadata {
55 | [
56 | "address": .stringConvertible(address),
| `- warning: type 'Address' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
57 | "method": .stringConvertible(method),
58 | "bytes": .stringConvertible((body ?? Data()).count),
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Address.swift:7:13: note: consider making enum 'Address' conform to the 'Sendable' protocol
5 |
6 | /// The method in which a `Request` URL is described and constructed.
7 | public enum Address: Codable {
| `- note: consider making enum 'Address' conform to the 'Sendable' protocol
8 | /// The full URL including any query components.
9 | case absolute(URL)
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Request.swift:57:42: warning: type 'Method' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | [
56 | "address": .stringConvertible(address),
57 | "method": .stringConvertible(method),
| `- warning: type 'Method' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
58 | "bytes": .stringConvertible((body ?? Data()).count),
59 | ]
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:6:15: note: consider making struct 'Method' conform to the 'Sendable' protocol
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Request.swift:64:43: warning: type 'Address' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
62 | var verboseMetadata: Logger.Metadata {
63 | [
64 | "address": .stringConvertible(address),
| `- warning: type 'Address' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
65 | "method": .stringConvertible(method),
66 | "bytes": .stringConvertible((body ?? Data()).count),
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Address.swift:7:13: note: consider making enum 'Address' conform to the 'Sendable' protocol
5 |
6 | /// The method in which a `Request` URL is described and constructed.
7 | public enum Address: Codable {
| `- note: consider making enum 'Address' conform to the 'Sendable' protocol
8 | /// The full URL including any query components.
9 | case absolute(URL)
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Request.swift:65:42: warning: type 'Method' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
63 | [
64 | "address": .stringConvertible(address),
65 | "method": .stringConvertible(method),
| `- warning: type 'Method' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
66 | "bytes": .stringConvertible((body ?? Data()).count),
67 | "body": .string(String(decoding: body ?? Data(), as: UTF8.self)),
/host/spi-builder-workspace/Sources/SessionPlus/Interface/Method.swift:6:15: note: consider making struct 'Method' conform to the 'Sendable' protocol
4 | ///
5 | /// Although they can also be nouns, these request methods are sometimes referred as HTTP verbs.
6 | public struct Method: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Method' conform to the 'Sendable' protocol
7 | public let rawValue: String
8 |
[45/52] Compiling SessionPlus AbsoluteURLWebSocket.swift
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:12:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | open var baseURL: URL
11 | public var verboseLogging: Bool = false
12 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | private let logger: Logger = .sessionPlus
14 |
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/SessionPlus/Implementation/BaseURLSessionClient.swift:18:26: error: cannot find type 'URLSessionDelegate' in scope
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
18 | sessionDelegate: URLSessionDelegate? = nil
| `- error: cannot find type 'URLSessionDelegate' in scope
19 | ) {
20 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:17:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | public init(
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | sessionDelegate: URLSessionDelegate? = nil
19 | ) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:17:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | public init(
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
18 | sessionDelegate: URLSessionDelegate? = nil
19 | ) {
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:21:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | ) {
20 | self.baseURL = baseURL
21 | session = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | configuration: sessionConfiguration,
23 | delegate: sessionDelegate,
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:24:28: error: 'nil' requires a contextual type
22 | configuration: sessionConfiguration,
23 | delegate: sessionDelegate,
24 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
25 | )
26 | }
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:35:30: error: cannot find 'URLRequest' in scope
33 | }
34 |
35 | let urlRequest = try URLRequest(request: request, baseUrl: baseURL)
| `- error: cannot find 'URLRequest' in scope
36 |
37 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:50:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | }
49 | #else
50 | let (data, urlResponse) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | #endif
52 |
[46/52] Compiling SessionPlus AnyRequest.swift
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:12:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | open var baseURL: URL
11 | public var verboseLogging: Bool = false
12 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | private let logger: Logger = .sessionPlus
14 |
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/SessionPlus/Implementation/BaseURLSessionClient.swift:18:26: error: cannot find type 'URLSessionDelegate' in scope
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
18 | sessionDelegate: URLSessionDelegate? = nil
| `- error: cannot find type 'URLSessionDelegate' in scope
19 | ) {
20 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:17:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | public init(
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | sessionDelegate: URLSessionDelegate? = nil
19 | ) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:17:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | public init(
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
18 | sessionDelegate: URLSessionDelegate? = nil
19 | ) {
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:21:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | ) {
20 | self.baseURL = baseURL
21 | session = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | configuration: sessionConfiguration,
23 | delegate: sessionDelegate,
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:24:28: error: 'nil' requires a contextual type
22 | configuration: sessionConfiguration,
23 | delegate: sessionDelegate,
24 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
25 | )
26 | }
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:35:30: error: cannot find 'URLRequest' in scope
33 | }
34 |
35 | let urlRequest = try URLRequest(request: request, baseUrl: baseURL)
| `- error: cannot find 'URLRequest' in scope
36 |
37 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:50:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | }
49 | #else
50 | let (data, urlResponse) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | #endif
52 |
[47/52] Compiling SessionPlus AnyResponse.swift
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:12:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | open var baseURL: URL
11 | public var verboseLogging: Bool = false
12 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | private let logger: Logger = .sessionPlus
14 |
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/SessionPlus/Implementation/BaseURLSessionClient.swift:18:26: error: cannot find type 'URLSessionDelegate' in scope
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
18 | sessionDelegate: URLSessionDelegate? = nil
| `- error: cannot find type 'URLSessionDelegate' in scope
19 | ) {
20 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:17:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | public init(
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | sessionDelegate: URLSessionDelegate? = nil
19 | ) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:17:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | public init(
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
18 | sessionDelegate: URLSessionDelegate? = nil
19 | ) {
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:21:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | ) {
20 | self.baseURL = baseURL
21 | session = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | configuration: sessionConfiguration,
23 | delegate: sessionDelegate,
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:24:28: error: 'nil' requires a contextual type
22 | configuration: sessionConfiguration,
23 | delegate: sessionDelegate,
24 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
25 | )
26 | }
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:35:30: error: cannot find 'URLRequest' in scope
33 | }
34 |
35 | let urlRequest = try URLRequest(request: request, baseUrl: baseURL)
| `- error: cannot find 'URLRequest' in scope
36 |
37 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:50:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | }
49 | #else
50 | let (data, urlResponse) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | #endif
52 |
[48/52] Compiling SessionPlus BaseURLSessionClient.swift
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:12:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | open var baseURL: URL
11 | public var verboseLogging: Bool = false
12 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | private let logger: Logger = .sessionPlus
14 |
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/SessionPlus/Implementation/BaseURLSessionClient.swift:18:26: error: cannot find type 'URLSessionDelegate' in scope
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
18 | sessionDelegate: URLSessionDelegate? = nil
| `- error: cannot find type 'URLSessionDelegate' in scope
19 | ) {
20 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:17:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | public init(
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | sessionDelegate: URLSessionDelegate? = nil
19 | ) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:17:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | public init(
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
18 | sessionDelegate: URLSessionDelegate? = nil
19 | ) {
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:21:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | ) {
20 | self.baseURL = baseURL
21 | session = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | configuration: sessionConfiguration,
23 | delegate: sessionDelegate,
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:24:28: error: 'nil' requires a contextual type
22 | configuration: sessionConfiguration,
23 | delegate: sessionDelegate,
24 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
25 | )
26 | }
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:35:30: error: cannot find 'URLRequest' in scope
33 | }
34 |
35 | let urlRequest = try URLRequest(request: request, baseUrl: baseURL)
| `- error: cannot find 'URLRequest' in scope
36 |
37 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:50:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | }
49 | #else
50 | let (data, urlResponse) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | #endif
52 |
[49/52] Compiling SessionPlus Delete.swift
[50/52] Compiling SessionPlus FormData.swift
[51/52] Compiling SessionPlus Get.swift
[52/52] Compiling SessionPlus PNGImageFormDataRequest.swift
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/13] Compiling Logging MetadataProvider.swift
[3/13] Compiling AsyncPlus PassthroughAsyncSequence.swift
[4/13] Compiling AsyncPlus PassthroughAsyncSubject.swift
[5/13] Compiling AsyncPlus PassthroughAsyncThrowingSequence.swift
[6/13] Compiling AsyncPlus PassthroughAsyncThrowingSubject.swift
[7/13] Emitting module AsyncPlus
[8/13] Compiling AsyncPlus CurrentValueAsyncSubject.swift
[9/13] Compiling AsyncPlus CurrentValueAsyncThrowingSubject.swift
[11/14] Compiling Logging LogHandler.swift
[12/14] Compiling Logging Locks.swift
[13/14] Emitting module Logging
[14/14] Compiling Logging Logging.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/44] Emitting module SessionPlus
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:6:8: error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | public extension URLCache {
| `- error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended
7 | enum Capacity {
8 | case bytes(Int)
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLRequest+SessionPlus.swift:6:18: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 | /// Initialize a `URLRequest` appropriate for JSON apis.
8 | ///
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLResponse+SessionPlus.swift:6:1: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
7 | /// `StatusCode` from the `HTTPURLResponse` interpreted response.
8 | var statusCode: StatusCode {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:6:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | public extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
7 | /// A `URLSessionConfiguration` which includes a `URLCache` and has the `.returnCacheDataElseLoad` policy applied.
8 | static func cachingElseLoad(
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:11:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | public var verboseLogging: Bool = false
11 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private let logger: Logger = .sessionPlus
13 |
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/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:14:92: error: cannot find type 'URLSessionDelegate' in scope
12 | private let logger: Logger = .sessionPlus
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: cannot find type 'URLSessionDelegate' in scope
15 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
16 | }
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:14:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private let logger: Logger = .sessionPlus
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
16 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:14:66: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
12 | private let logger: Logger = .sessionPlus
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
16 | }
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:12:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | open var baseURL: URL
11 | public var verboseLogging: Bool = false
12 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | private let logger: Logger = .sessionPlus
14 |
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/SessionPlus/Implementation/BaseURLSessionClient.swift:18:26: error: cannot find type 'URLSessionDelegate' in scope
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
18 | sessionDelegate: URLSessionDelegate? = nil
| `- error: cannot find type 'URLSessionDelegate' in scope
19 | ) {
20 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:17:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | public init(
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | sessionDelegate: URLSessionDelegate? = nil
19 | ) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:17:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | public init(
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
18 | sessionDelegate: URLSessionDelegate? = nil
19 | ) {
[17/48] Compiling SessionPlus AbsoluteURLWebSocket.swift
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:12:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | open var baseURL: URL
11 | public var verboseLogging: Bool = false
12 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | private let logger: Logger = .sessionPlus
14 |
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/SessionPlus/Implementation/BaseURLSessionClient.swift:18:26: error: cannot find type 'URLSessionDelegate' in scope
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
18 | sessionDelegate: URLSessionDelegate? = nil
| `- error: cannot find type 'URLSessionDelegate' in scope
19 | ) {
20 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:17:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | public init(
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | sessionDelegate: URLSessionDelegate? = nil
19 | ) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:17:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | public init(
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
18 | sessionDelegate: URLSessionDelegate? = nil
19 | ) {
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:21:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | ) {
20 | self.baseURL = baseURL
21 | session = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | configuration: sessionConfiguration,
23 | delegate: sessionDelegate,
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:24:28: error: 'nil' requires a contextual type
22 | configuration: sessionConfiguration,
23 | delegate: sessionDelegate,
24 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
25 | )
26 | }
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:35:30: error: cannot find 'URLRequest' in scope
33 | }
34 |
35 | let urlRequest = try URLRequest(request: request, baseUrl: baseURL)
| `- error: cannot find 'URLRequest' in scope
36 |
37 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:50:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | }
49 | #else
50 | let (data, urlResponse) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | #endif
52 |
[18/48] Compiling SessionPlus AnyRequest.swift
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:12:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | open var baseURL: URL
11 | public var verboseLogging: Bool = false
12 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | private let logger: Logger = .sessionPlus
14 |
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/SessionPlus/Implementation/BaseURLSessionClient.swift:18:26: error: cannot find type 'URLSessionDelegate' in scope
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
18 | sessionDelegate: URLSessionDelegate? = nil
| `- error: cannot find type 'URLSessionDelegate' in scope
19 | ) {
20 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:17:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | public init(
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | sessionDelegate: URLSessionDelegate? = nil
19 | ) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:17:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | public init(
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
18 | sessionDelegate: URLSessionDelegate? = nil
19 | ) {
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:21:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | ) {
20 | self.baseURL = baseURL
21 | session = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | configuration: sessionConfiguration,
23 | delegate: sessionDelegate,
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:24:28: error: 'nil' requires a contextual type
22 | configuration: sessionConfiguration,
23 | delegate: sessionDelegate,
24 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
25 | )
26 | }
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:35:30: error: cannot find 'URLRequest' in scope
33 | }
34 |
35 | let urlRequest = try URLRequest(request: request, baseUrl: baseURL)
| `- error: cannot find 'URLRequest' in scope
36 |
37 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:50:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | }
49 | #else
50 | let (data, urlResponse) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | #endif
52 |
[19/48] Compiling SessionPlus AnyResponse.swift
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:12:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | open var baseURL: URL
11 | public var verboseLogging: Bool = false
12 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | private let logger: Logger = .sessionPlus
14 |
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/SessionPlus/Implementation/BaseURLSessionClient.swift:18:26: error: cannot find type 'URLSessionDelegate' in scope
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
18 | sessionDelegate: URLSessionDelegate? = nil
| `- error: cannot find type 'URLSessionDelegate' in scope
19 | ) {
20 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:17:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | public init(
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | sessionDelegate: URLSessionDelegate? = nil
19 | ) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:17:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | public init(
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
18 | sessionDelegate: URLSessionDelegate? = nil
19 | ) {
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:21:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | ) {
20 | self.baseURL = baseURL
21 | session = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | configuration: sessionConfiguration,
23 | delegate: sessionDelegate,
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:24:28: error: 'nil' requires a contextual type
22 | configuration: sessionConfiguration,
23 | delegate: sessionDelegate,
24 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
25 | )
26 | }
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:35:30: error: cannot find 'URLRequest' in scope
33 | }
34 |
35 | let urlRequest = try URLRequest(request: request, baseUrl: baseURL)
| `- error: cannot find 'URLRequest' in scope
36 |
37 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:50:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | }
49 | #else
50 | let (data, urlResponse) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | #endif
52 |
[20/48] Compiling SessionPlus BaseURLSessionClient.swift
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:12:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | open var baseURL: URL
11 | public var verboseLogging: Bool = false
12 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | private let logger: Logger = .sessionPlus
14 |
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/SessionPlus/Implementation/BaseURLSessionClient.swift:18:26: error: cannot find type 'URLSessionDelegate' in scope
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
18 | sessionDelegate: URLSessionDelegate? = nil
| `- error: cannot find type 'URLSessionDelegate' in scope
19 | ) {
20 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:17:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | public init(
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | sessionDelegate: URLSessionDelegate? = nil
19 | ) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:17:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | public init(
16 | baseURL: URL,
17 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
18 | sessionDelegate: URLSessionDelegate? = nil
19 | ) {
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:21:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | ) {
20 | self.baseURL = baseURL
21 | session = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | configuration: sessionConfiguration,
23 | delegate: sessionDelegate,
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:24:28: error: 'nil' requires a contextual type
22 | configuration: sessionConfiguration,
23 | delegate: sessionDelegate,
24 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
25 | )
26 | }
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:35:30: error: cannot find 'URLRequest' in scope
33 | }
34 |
35 | let urlRequest = try URLRequest(request: request, baseUrl: baseURL)
| `- error: cannot find 'URLRequest' in scope
36 |
37 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:50:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | }
49 | #else
50 | let (data, urlResponse) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | #endif
52 |
[21/48] Compiling SessionPlus MIMEType.swift
[22/48] Compiling SessionPlus Method.swift
[23/48] Compiling SessionPlus QueryItem.swift
[24/48] Compiling SessionPlus Request.swift
[25/48] Compiling SessionPlus Response.swift
[26/48] Compiling SessionPlus Socket.swift
[27/48] Compiling SessionPlus StatusCode.swift
[28/48] Compiling SessionPlus WebSocket.swift
[29/48] Compiling SessionPlus Patch.swift
[30/48] Compiling SessionPlus Post.swift
[31/48] Compiling SessionPlus Put.swift
[32/48] Compiling SessionPlus Address.swift
[33/48] Compiling SessionPlus URLResponse+SessionPlus.swift
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLResponse+SessionPlus.swift:6:1: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
7 | /// `StatusCode` from the `HTTPURLResponse` interpreted response.
8 | var statusCode: StatusCode {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:6:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | public extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
7 | /// A `URLSessionConfiguration` which includes a `URLCache` and has the `.returnCacheDataElseLoad` policy applied.
8 | static func cachingElseLoad(
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:11:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | public var verboseLogging: Bool = false
11 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private let logger: Logger = .sessionPlus
13 |
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/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:14:92: error: cannot find type 'URLSessionDelegate' in scope
12 | private let logger: Logger = .sessionPlus
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: cannot find type 'URLSessionDelegate' in scope
15 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
16 | }
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:14:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private let logger: Logger = .sessionPlus
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
16 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:14:66: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
12 | private let logger: Logger = .sessionPlus
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
16 | }
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:15:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
15 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
16 | }
17 |
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:15:109: error: 'nil' requires a contextual type
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
15 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
16 | }
17 |
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:25:30: error: cannot find 'URLRequest' in scope
23 | }
24 |
25 | let urlRequest = try URLRequest(request: request)
| `- error: cannot find 'URLRequest' in scope
26 |
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:40:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
38 | }
39 | #else
40 | let (data, urlResponse) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
41 | #endif
42 |
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:9:34: error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
7 | /// A `URLSessionConfiguration` which includes a `URLCache` and has the `.returnCacheDataElseLoad` policy applied.
8 | static func cachingElseLoad(
9 | memoryCapacity: URLCache.Capacity = .twentyFiveMB,
| `- error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
10 | diskCapacity: URLCache.Capacity = .twoHundredMB
11 | ) -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:10:32: error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
8 | static func cachingElseLoad(
9 | memoryCapacity: URLCache.Capacity = .twentyFiveMB,
10 | diskCapacity: URLCache.Capacity = .twoHundredMB
| `- error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
11 | ) -> URLSessionConfiguration {
12 | let configuration: URLSessionConfiguration = .default
[34/48] Compiling SessionPlus URLSessionConfiguration+SessionPlus.swift
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLResponse+SessionPlus.swift:6:1: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
7 | /// `StatusCode` from the `HTTPURLResponse` interpreted response.
8 | var statusCode: StatusCode {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:6:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | public extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
7 | /// A `URLSessionConfiguration` which includes a `URLCache` and has the `.returnCacheDataElseLoad` policy applied.
8 | static func cachingElseLoad(
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:11:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | public var verboseLogging: Bool = false
11 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private let logger: Logger = .sessionPlus
13 |
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/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:14:92: error: cannot find type 'URLSessionDelegate' in scope
12 | private let logger: Logger = .sessionPlus
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: cannot find type 'URLSessionDelegate' in scope
15 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
16 | }
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:14:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private let logger: Logger = .sessionPlus
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
16 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:14:66: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
12 | private let logger: Logger = .sessionPlus
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
16 | }
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:15:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
15 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
16 | }
17 |
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:15:109: error: 'nil' requires a contextual type
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
15 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
16 | }
17 |
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:25:30: error: cannot find 'URLRequest' in scope
23 | }
24 |
25 | let urlRequest = try URLRequest(request: request)
| `- error: cannot find 'URLRequest' in scope
26 |
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:40:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
38 | }
39 | #else
40 | let (data, urlResponse) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
41 | #endif
42 |
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:9:34: error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
7 | /// A `URLSessionConfiguration` which includes a `URLCache` and has the `.returnCacheDataElseLoad` policy applied.
8 | static func cachingElseLoad(
9 | memoryCapacity: URLCache.Capacity = .twentyFiveMB,
| `- error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
10 | diskCapacity: URLCache.Capacity = .twoHundredMB
11 | ) -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:10:32: error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
8 | static func cachingElseLoad(
9 | memoryCapacity: URLCache.Capacity = .twentyFiveMB,
10 | diskCapacity: URLCache.Capacity = .twoHundredMB
| `- error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
11 | ) -> URLSessionConfiguration {
12 | let configuration: URLSessionConfiguration = .default
[35/48] Compiling SessionPlus URLSessionDelegate+SessionPlus.swift
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLResponse+SessionPlus.swift:6:1: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
7 | /// `StatusCode` from the `HTTPURLResponse` interpreted response.
8 | var statusCode: StatusCode {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:6:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | public extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
7 | /// A `URLSessionConfiguration` which includes a `URLCache` and has the `.returnCacheDataElseLoad` policy applied.
8 | static func cachingElseLoad(
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:11:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | public var verboseLogging: Bool = false
11 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private let logger: Logger = .sessionPlus
13 |
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/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:14:92: error: cannot find type 'URLSessionDelegate' in scope
12 | private let logger: Logger = .sessionPlus
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: cannot find type 'URLSessionDelegate' in scope
15 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
16 | }
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:14:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private let logger: Logger = .sessionPlus
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
16 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:14:66: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
12 | private let logger: Logger = .sessionPlus
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
16 | }
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:15:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
15 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
16 | }
17 |
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:15:109: error: 'nil' requires a contextual type
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
15 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
16 | }
17 |
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:25:30: error: cannot find 'URLRequest' in scope
23 | }
24 |
25 | let urlRequest = try URLRequest(request: request)
| `- error: cannot find 'URLRequest' in scope
26 |
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:40:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
38 | }
39 | #else
40 | let (data, urlResponse) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
41 | #endif
42 |
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:9:34: error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
7 | /// A `URLSessionConfiguration` which includes a `URLCache` and has the `.returnCacheDataElseLoad` policy applied.
8 | static func cachingElseLoad(
9 | memoryCapacity: URLCache.Capacity = .twentyFiveMB,
| `- error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
10 | diskCapacity: URLCache.Capacity = .twoHundredMB
11 | ) -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:10:32: error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
8 | static func cachingElseLoad(
9 | memoryCapacity: URLCache.Capacity = .twentyFiveMB,
10 | diskCapacity: URLCache.Capacity = .twoHundredMB
| `- error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
11 | ) -> URLSessionConfiguration {
12 | let configuration: URLSessionConfiguration = .default
[36/48] Compiling SessionPlus AbsoluteURLSessionClient.swift
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLResponse+SessionPlus.swift:6:1: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
7 | /// `StatusCode` from the `HTTPURLResponse` interpreted response.
8 | var statusCode: StatusCode {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:6:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | public extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
7 | /// A `URLSessionConfiguration` which includes a `URLCache` and has the `.returnCacheDataElseLoad` policy applied.
8 | static func cachingElseLoad(
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:11:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | public var verboseLogging: Bool = false
11 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private let logger: Logger = .sessionPlus
13 |
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/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:14:92: error: cannot find type 'URLSessionDelegate' in scope
12 | private let logger: Logger = .sessionPlus
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: cannot find type 'URLSessionDelegate' in scope
15 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
16 | }
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:14:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private let logger: Logger = .sessionPlus
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
16 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:14:66: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
12 | private let logger: Logger = .sessionPlus
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
16 | }
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:15:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
15 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
16 | }
17 |
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:15:109: error: 'nil' requires a contextual type
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
15 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
16 | }
17 |
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:25:30: error: cannot find 'URLRequest' in scope
23 | }
24 |
25 | let urlRequest = try URLRequest(request: request)
| `- error: cannot find 'URLRequest' in scope
26 |
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:40:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
38 | }
39 | #else
40 | let (data, urlResponse) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
41 | #endif
42 |
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:9:34: error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
7 | /// A `URLSessionConfiguration` which includes a `URLCache` and has the `.returnCacheDataElseLoad` policy applied.
8 | static func cachingElseLoad(
9 | memoryCapacity: URLCache.Capacity = .twentyFiveMB,
| `- error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
10 | diskCapacity: URLCache.Capacity = .twoHundredMB
11 | ) -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:10:32: error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
8 | static func cachingElseLoad(
9 | memoryCapacity: URLCache.Capacity = .twentyFiveMB,
10 | diskCapacity: URLCache.Capacity = .twoHundredMB
| `- error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
11 | ) -> URLSessionConfiguration {
12 | let configuration: URLSessionConfiguration = .default
[37/48] Compiling SessionPlus Delete.swift
[38/48] Compiling SessionPlus FormData.swift
[39/48] Compiling SessionPlus Get.swift
[40/48] Compiling SessionPlus PNGImageFormDataRequest.swift
[41/48] Compiling SessionPlus Authorization.swift
[42/48] Compiling SessionPlus Client.swift
[43/48] Compiling SessionPlus Header.swift
[44/48] Compiling SessionPlus Headers.swift
[45/48] Compiling SessionPlus Logger+SessionPlus.swift
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:6:8: error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | public extension URLCache {
| `- error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended
7 | enum Capacity {
8 | case bytes(Int)
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLRequest+SessionPlus.swift:6:18: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 | /// Initialize a `URLRequest` appropriate for JSON apis.
8 | ///
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:12:41: error: cannot find type 'Capacity' in scope
10 | case gigabytes(Int)
11 |
12 | public static var twentyFiveMB: Capacity = .megabytes(25)
| `- error: cannot find type 'Capacity' in scope
13 | public static var twoHundredMB: Capacity = .megabytes(200)
14 |
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:13:41: error: cannot find type 'Capacity' in scope
11 |
12 | public static var twentyFiveMB: Capacity = .megabytes(25)
13 | public static var twoHundredMB: Capacity = .megabytes(200)
| `- error: cannot find type 'Capacity' in scope
14 |
15 | public var bytes: Int {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:27:38: error: cannot find type 'Capacity' in scope
25 | }
26 |
27 | convenience init(memoryCapacity: Capacity = .twentyFiveMB, diskCapacity: Capacity = .twoHundredMB) {
| `- error: cannot find type 'Capacity' in scope
28 | #if canImport(FoundationNetworking)
29 | self.init(memoryCapacity: memoryCapacity.bytes, diskCapacity: diskCapacity.bytes, diskPath: "SessionPlusCache")
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:27:78: error: cannot find type 'Capacity' in scope
25 | }
26 |
27 | convenience init(memoryCapacity: Capacity = .twentyFiveMB, diskCapacity: Capacity = .twoHundredMB) {
| `- error: cannot find type 'Capacity' in scope
28 | #if canImport(FoundationNetworking)
29 | self.init(memoryCapacity: memoryCapacity.bytes, diskCapacity: diskCapacity.bytes, diskPath: "SessionPlusCache")
[46/48] Compiling SessionPlus URLCache+SessionPlus.swift
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:6:8: error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | public extension URLCache {
| `- error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended
7 | enum Capacity {
8 | case bytes(Int)
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLRequest+SessionPlus.swift:6:18: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 | /// Initialize a `URLRequest` appropriate for JSON apis.
8 | ///
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:12:41: error: cannot find type 'Capacity' in scope
10 | case gigabytes(Int)
11 |
12 | public static var twentyFiveMB: Capacity = .megabytes(25)
| `- error: cannot find type 'Capacity' in scope
13 | public static var twoHundredMB: Capacity = .megabytes(200)
14 |
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:13:41: error: cannot find type 'Capacity' in scope
11 |
12 | public static var twentyFiveMB: Capacity = .megabytes(25)
13 | public static var twoHundredMB: Capacity = .megabytes(200)
| `- error: cannot find type 'Capacity' in scope
14 |
15 | public var bytes: Int {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:27:38: error: cannot find type 'Capacity' in scope
25 | }
26 |
27 | convenience init(memoryCapacity: Capacity = .twentyFiveMB, diskCapacity: Capacity = .twoHundredMB) {
| `- error: cannot find type 'Capacity' in scope
28 | #if canImport(FoundationNetworking)
29 | self.init(memoryCapacity: memoryCapacity.bytes, diskCapacity: diskCapacity.bytes, diskPath: "SessionPlusCache")
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:27:78: error: cannot find type 'Capacity' in scope
25 | }
26 |
27 | convenience init(memoryCapacity: Capacity = .twentyFiveMB, diskCapacity: Capacity = .twoHundredMB) {
| `- error: cannot find type 'Capacity' in scope
28 | #if canImport(FoundationNetworking)
29 | self.init(memoryCapacity: memoryCapacity.bytes, diskCapacity: diskCapacity.bytes, diskPath: "SessionPlusCache")
[47/48] Compiling SessionPlus URLQueryItem+SessionPlus.swift
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:6:8: error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | public extension URLCache {
| `- error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended
7 | enum Capacity {
8 | case bytes(Int)
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLRequest+SessionPlus.swift:6:18: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 | /// Initialize a `URLRequest` appropriate for JSON apis.
8 | ///
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:12:41: error: cannot find type 'Capacity' in scope
10 | case gigabytes(Int)
11 |
12 | public static var twentyFiveMB: Capacity = .megabytes(25)
| `- error: cannot find type 'Capacity' in scope
13 | public static var twoHundredMB: Capacity = .megabytes(200)
14 |
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:13:41: error: cannot find type 'Capacity' in scope
11 |
12 | public static var twentyFiveMB: Capacity = .megabytes(25)
13 | public static var twoHundredMB: Capacity = .megabytes(200)
| `- error: cannot find type 'Capacity' in scope
14 |
15 | public var bytes: Int {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:27:38: error: cannot find type 'Capacity' in scope
25 | }
26 |
27 | convenience init(memoryCapacity: Capacity = .twentyFiveMB, diskCapacity: Capacity = .twoHundredMB) {
| `- error: cannot find type 'Capacity' in scope
28 | #if canImport(FoundationNetworking)
29 | self.init(memoryCapacity: memoryCapacity.bytes, diskCapacity: diskCapacity.bytes, diskPath: "SessionPlusCache")
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:27:78: error: cannot find type 'Capacity' in scope
25 | }
26 |
27 | convenience init(memoryCapacity: Capacity = .twentyFiveMB, diskCapacity: Capacity = .twoHundredMB) {
| `- error: cannot find type 'Capacity' in scope
28 | #if canImport(FoundationNetworking)
29 | self.init(memoryCapacity: memoryCapacity.bytes, diskCapacity: diskCapacity.bytes, diskPath: "SessionPlusCache")
[48/48] Compiling SessionPlus URLRequest+SessionPlus.swift
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:6:8: error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | public extension URLCache {
| `- error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended
7 | enum Capacity {
8 | case bytes(Int)
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLRequest+SessionPlus.swift:6:18: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 | /// Initialize a `URLRequest` appropriate for JSON apis.
8 | ///
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:12:41: error: cannot find type 'Capacity' in scope
10 | case gigabytes(Int)
11 |
12 | public static var twentyFiveMB: Capacity = .megabytes(25)
| `- error: cannot find type 'Capacity' in scope
13 | public static var twoHundredMB: Capacity = .megabytes(200)
14 |
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:13:41: error: cannot find type 'Capacity' in scope
11 |
12 | public static var twentyFiveMB: Capacity = .megabytes(25)
13 | public static var twoHundredMB: Capacity = .megabytes(200)
| `- error: cannot find type 'Capacity' in scope
14 |
15 | public var bytes: Int {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:27:38: error: cannot find type 'Capacity' in scope
25 | }
26 |
27 | convenience init(memoryCapacity: Capacity = .twentyFiveMB, diskCapacity: Capacity = .twoHundredMB) {
| `- error: cannot find type 'Capacity' in scope
28 | #if canImport(FoundationNetworking)
29 | self.init(memoryCapacity: memoryCapacity.bytes, diskCapacity: diskCapacity.bytes, diskPath: "SessionPlusCache")
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:27:78: error: cannot find type 'Capacity' in scope
25 | }
26 |
27 | convenience init(memoryCapacity: Capacity = .twentyFiveMB, diskCapacity: Capacity = .twoHundredMB) {
| `- error: cannot find type 'Capacity' in scope
28 | #if canImport(FoundationNetworking)
29 | self.init(memoryCapacity: memoryCapacity.bytes, diskCapacity: diskCapacity.bytes, diskPath: "SessionPlusCache")
BUILD FAILURE 6.1 wasm