Build Information
Successful build of SessionPlus, reference 2.2.0 (d15b52
), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 07:25:14 UTC.
Swift 6 data race errors: 49
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
51 | static let contentMD5: Self = "Content-MD5"
52 | /// The Content-Type entity header is used to indicate the media type of the resource.
53 | static let contentType: Self = "Content-Type"
| |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'contentType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | /// The Date general HTTP header contains the date and time at which the message was originated.
55 | static let date: Self = "Date"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:48:16: warning: static property 'contentLength' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
46 | static let authorization: Self = "Authorization"
47 | /// The Content-Length entity header is indicating the size of the entity-body, in bytes, sent to the recipient.
48 | static let contentLength: Self = "Content-Length"
| |- warning: static property 'contentLength' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'contentLength' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | /// The Content-MD5 header, may be used as a message integrity check (MIC), to verify that the decoded data are the
50 | /// same data that were initially sent.
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:12:27: warning: static property 'twentyFiveMB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | case gigabytes(Int)
11 |
12 | public static var twentyFiveMB: Capacity = .megabytes(25)
| |- warning: static property 'twentyFiveMB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'twentyFiveMB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'twentyFiveMB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | public static var twoHundredMB: Capacity = .megabytes(200)
14 |
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:13:27: warning: static property 'twoHundredMB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | public static var twentyFiveMB: Capacity = .megabytes(25)
13 | public static var twoHundredMB: Capacity = .megabytes(200)
| |- warning: static property 'twoHundredMB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'twoHundredMB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'twoHundredMB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | public var bytes: Int {
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Extensions/URLSessionDelegate+SessionPlus.swift:12:14: warning: non-final class 'SelfSignedSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
10 | }
11 |
12 | public class SelfSignedSessionDelegate: NSObject, URLSessionDelegate {
| `- warning: non-final class 'SelfSignedSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
13 | public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
14 | guard challenge.previousFailureCount < 1 else {
[23/44] Compiling SessionPlus URLResponse+SessionPlus.swift
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:12:23: warning: static property 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// HTTP Header date formatter; RFC1123
12 | public static var dateFormatter: DateFormatter = {
| |- warning: static property 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dateFormatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | let formatter = DateFormatter()
14 | formatter.dateFormat = "EEE',' dd MMM yyyy HH':'mm':'ss 'GMT'"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:55:16: warning: static property 'date' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
53 | static let contentType: Self = "Content-Type"
54 | /// The Date general HTTP header contains the date and time at which the message was originated.
55 | static let date: Self = "Date"
| |- warning: static property 'date' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'date' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | }
57 |
/Users/admin/builder/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: annotate 'json' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:43:16: warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
41 | public extension Header {
42 | /// The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand.
43 | static let accept: Self = "Accept"
| |- warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'accept' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 | /// The HTTP Authorization request header contains the credentials to authenticate a user agent with a server,
45 | /// usually after the server has responded with a 401 Unauthorized status and the WWW-Authenticate header.
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:53:16: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
51 | static let contentMD5: Self = "Content-MD5"
52 | /// The Content-Type entity header is used to indicate the media type of the resource.
53 | static let contentType: Self = "Content-Type"
| |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'contentType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | /// The Date general HTTP header contains the date and time at which the message was originated.
55 | static let date: Self = "Date"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:48:16: warning: static property 'contentLength' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
46 | static let authorization: Self = "Authorization"
47 | /// The Content-Length entity header is indicating the size of the entity-body, in bytes, sent to the recipient.
48 | static let contentLength: Self = "Content-Length"
| |- warning: static property 'contentLength' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'contentLength' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | /// The Content-MD5 header, may be used as a message integrity check (MIC), to verify that the decoded data are the
50 | /// same data that were initially sent.
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:12:27: warning: static property 'twentyFiveMB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | case gigabytes(Int)
11 |
12 | public static var twentyFiveMB: Capacity = .megabytes(25)
| |- warning: static property 'twentyFiveMB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'twentyFiveMB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'twentyFiveMB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | public static var twoHundredMB: Capacity = .megabytes(200)
14 |
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:13:27: warning: static property 'twoHundredMB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | public static var twentyFiveMB: Capacity = .megabytes(25)
13 | public static var twoHundredMB: Capacity = .megabytes(200)
| |- warning: static property 'twoHundredMB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'twoHundredMB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'twoHundredMB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | public var bytes: Int {
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Extensions/URLSessionDelegate+SessionPlus.swift:12:14: warning: non-final class 'SelfSignedSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
10 | }
11 |
12 | public class SelfSignedSessionDelegate: NSObject, URLSessionDelegate {
| `- warning: non-final class 'SelfSignedSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
13 | public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
14 | guard challenge.previousFailureCount < 1 else {
[24/44] Compiling SessionPlus URLSessionConfiguration+SessionPlus.swift
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:12:23: warning: static property 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// HTTP Header date formatter; RFC1123
12 | public static var dateFormatter: DateFormatter = {
| |- warning: static property 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dateFormatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | let formatter = DateFormatter()
14 | formatter.dateFormat = "EEE',' dd MMM yyyy HH':'mm':'ss 'GMT'"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:55:16: warning: static property 'date' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
53 | static let contentType: Self = "Content-Type"
54 | /// The Date general HTTP header contains the date and time at which the message was originated.
55 | static let date: Self = "Date"
| |- warning: static property 'date' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'date' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | }
57 |
/Users/admin/builder/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: annotate 'json' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:43:16: warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
41 | public extension Header {
42 | /// The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand.
43 | static let accept: Self = "Accept"
| |- warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'accept' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 | /// The HTTP Authorization request header contains the credentials to authenticate a user agent with a server,
45 | /// usually after the server has responded with a 401 Unauthorized status and the WWW-Authenticate header.
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:53:16: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
51 | static let contentMD5: Self = "Content-MD5"
52 | /// The Content-Type entity header is used to indicate the media type of the resource.
53 | static let contentType: Self = "Content-Type"
| |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'contentType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | /// The Date general HTTP header contains the date and time at which the message was originated.
55 | static let date: Self = "Date"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:48:16: warning: static property 'contentLength' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
46 | static let authorization: Self = "Authorization"
47 | /// The Content-Length entity header is indicating the size of the entity-body, in bytes, sent to the recipient.
48 | static let contentLength: Self = "Content-Length"
| |- warning: static property 'contentLength' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'contentLength' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | /// The Content-MD5 header, may be used as a message integrity check (MIC), to verify that the decoded data are the
50 | /// same data that were initially sent.
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:12:27: warning: static property 'twentyFiveMB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | case gigabytes(Int)
11 |
12 | public static var twentyFiveMB: Capacity = .megabytes(25)
| |- warning: static property 'twentyFiveMB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'twentyFiveMB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'twentyFiveMB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | public static var twoHundredMB: Capacity = .megabytes(200)
14 |
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:13:27: warning: static property 'twoHundredMB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | public static var twentyFiveMB: Capacity = .megabytes(25)
13 | public static var twoHundredMB: Capacity = .megabytes(200)
| |- warning: static property 'twoHundredMB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'twoHundredMB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'twoHundredMB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | public var bytes: Int {
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Extensions/URLSessionDelegate+SessionPlus.swift:12:14: warning: non-final class 'SelfSignedSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
10 | }
11 |
12 | public class SelfSignedSessionDelegate: NSObject, URLSessionDelegate {
| `- warning: non-final class 'SelfSignedSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
13 | public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
14 | guard challenge.previousFailureCount < 1 else {
[25/44] Compiling SessionPlus URLSessionDelegate+SessionPlus.swift
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:12:23: warning: static property 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// HTTP Header date formatter; RFC1123
12 | public static var dateFormatter: DateFormatter = {
| |- warning: static property 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dateFormatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | let formatter = DateFormatter()
14 | formatter.dateFormat = "EEE',' dd MMM yyyy HH':'mm':'ss 'GMT'"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:55:16: warning: static property 'date' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
53 | static let contentType: Self = "Content-Type"
54 | /// The Date general HTTP header contains the date and time at which the message was originated.
55 | static let date: Self = "Date"
| |- warning: static property 'date' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'date' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | }
57 |
/Users/admin/builder/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: annotate 'json' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:43:16: warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
41 | public extension Header {
42 | /// The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand.
43 | static let accept: Self = "Accept"
| |- warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'accept' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 | /// The HTTP Authorization request header contains the credentials to authenticate a user agent with a server,
45 | /// usually after the server has responded with a 401 Unauthorized status and the WWW-Authenticate header.
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:53:16: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
51 | static let contentMD5: Self = "Content-MD5"
52 | /// The Content-Type entity header is used to indicate the media type of the resource.
53 | static let contentType: Self = "Content-Type"
| |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'contentType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | /// The Date general HTTP header contains the date and time at which the message was originated.
55 | static let date: Self = "Date"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:48:16: warning: static property 'contentLength' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
46 | static let authorization: Self = "Authorization"
47 | /// The Content-Length entity header is indicating the size of the entity-body, in bytes, sent to the recipient.
48 | static let contentLength: Self = "Content-Length"
| |- warning: static property 'contentLength' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'contentLength' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | /// The Content-MD5 header, may be used as a message integrity check (MIC), to verify that the decoded data are the
50 | /// same data that were initially sent.
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:12:27: warning: static property 'twentyFiveMB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | case gigabytes(Int)
11 |
12 | public static var twentyFiveMB: Capacity = .megabytes(25)
| |- warning: static property 'twentyFiveMB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'twentyFiveMB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'twentyFiveMB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | public static var twoHundredMB: Capacity = .megabytes(200)
14 |
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:13:27: warning: static property 'twoHundredMB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | public static var twentyFiveMB: Capacity = .megabytes(25)
13 | public static var twoHundredMB: Capacity = .megabytes(200)
| |- warning: static property 'twoHundredMB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'twoHundredMB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'twoHundredMB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | public var bytes: Int {
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Extensions/URLSessionDelegate+SessionPlus.swift:12:14: warning: non-final class 'SelfSignedSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
10 | }
11 |
12 | public class SelfSignedSessionDelegate: NSObject, URLSessionDelegate {
| `- warning: non-final class 'SelfSignedSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
13 | public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
14 | guard challenge.previousFailureCount < 1 else {
[26/44] Compiling SessionPlus AbsoluteURLSessionClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:60:17: warning: capture of 'completion' with non-sendable type '(Result<any Response, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | session.dataTask(with: urlRequest) { data, urlResponse, error in
59 | guard error == nil else {
60 | completion(.failure(error!))
| |- warning: capture of 'completion' with non-sendable type '(Result<any Response, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
61 | return
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLWebSocket.swift:8:12: warning: non-final class 'AbsoluteURLWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
6 | #if canImport(ObjectiveC)
7 |
8 | open class AbsoluteURLWebSocket: NSObject, WebSocket {
| `- warning: non-final class 'AbsoluteURLWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
9 |
10 | private typealias ResumeHandler = (Result<Void, Error>) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLWebSocket.swift:16:14: warning: stored property '$__lazy_storage_$_session' of 'Sendable'-conforming class 'AbsoluteURLWebSocket' is mutable; this is an error in the Swift 6 language mode
14 | let keepAliveInterval: Double
15 |
16 | lazy var session: URLSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
| `- warning: stored property '$__lazy_storage_$_session' of 'Sendable'-conforming class 'AbsoluteURLWebSocket' is mutable; this is an error in the Swift 6 language mode
17 | lazy var task = session.webSocketTask(with: urlRequest)
18 |
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:46:16: warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
44 | /// The HTTP Authorization request header contains the credentials to authenticate a user agent with a server,
45 | /// usually after the server has responded with a 401 Unauthorized status and the WWW-Authenticate header.
46 | static let authorization: Self = "Authorization"
| |- warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'authorization' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | /// The Content-Length entity header is indicating the size of the entity-body, in bytes, sent to the recipient.
48 | static let contentLength: Self = "Content-Length"
/Users/admin/builder/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: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/StatusCode.swift:45:16: warning: static property 'ok' 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 |
:
43 |
44 | /// **200** Standard response for successful HTTP requests.
45 | static let ok: Self = 200
| |- warning: static property 'ok' 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: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | /// **201** The request has been fulfilled, resulting in the creation of a new resource.
47 | static let created: Self = 201
[27/44] Compiling SessionPlus AbsoluteURLWebSocket.swift
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:60:17: warning: capture of 'completion' with non-sendable type '(Result<any Response, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | session.dataTask(with: urlRequest) { data, urlResponse, error in
59 | guard error == nil else {
60 | completion(.failure(error!))
| |- warning: capture of 'completion' with non-sendable type '(Result<any Response, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
61 | return
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLWebSocket.swift:8:12: warning: non-final class 'AbsoluteURLWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
6 | #if canImport(ObjectiveC)
7 |
8 | open class AbsoluteURLWebSocket: NSObject, WebSocket {
| `- warning: non-final class 'AbsoluteURLWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
9 |
10 | private typealias ResumeHandler = (Result<Void, Error>) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLWebSocket.swift:16:14: warning: stored property '$__lazy_storage_$_session' of 'Sendable'-conforming class 'AbsoluteURLWebSocket' is mutable; this is an error in the Swift 6 language mode
14 | let keepAliveInterval: Double
15 |
16 | lazy var session: URLSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
| `- warning: stored property '$__lazy_storage_$_session' of 'Sendable'-conforming class 'AbsoluteURLWebSocket' is mutable; this is an error in the Swift 6 language mode
17 | lazy var task = session.webSocketTask(with: urlRequest)
18 |
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:46:16: warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
44 | /// The HTTP Authorization request header contains the credentials to authenticate a user agent with a server,
45 | /// usually after the server has responded with a 401 Unauthorized status and the WWW-Authenticate header.
46 | static let authorization: Self = "Authorization"
| |- warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'authorization' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | /// The Content-Length entity header is indicating the size of the entity-body, in bytes, sent to the recipient.
48 | static let contentLength: Self = "Content-Length"
/Users/admin/builder/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: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/StatusCode.swift:45:16: warning: static property 'ok' 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 |
:
43 |
44 | /// **200** Standard response for successful HTTP requests.
45 | static let ok: Self = 200
| |- warning: static property 'ok' 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: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | /// **201** The request has been fulfilled, resulting in the creation of a new resource.
47 | static let created: Self = 201
[28/44] Compiling SessionPlus AnyRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:60:17: warning: capture of 'completion' with non-sendable type '(Result<any Response, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | session.dataTask(with: urlRequest) { data, urlResponse, error in
59 | guard error == nil else {
60 | completion(.failure(error!))
| |- warning: capture of 'completion' with non-sendable type '(Result<any Response, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
61 | return
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLWebSocket.swift:8:12: warning: non-final class 'AbsoluteURLWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
6 | #if canImport(ObjectiveC)
7 |
8 | open class AbsoluteURLWebSocket: NSObject, WebSocket {
| `- warning: non-final class 'AbsoluteURLWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
9 |
10 | private typealias ResumeHandler = (Result<Void, Error>) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLWebSocket.swift:16:14: warning: stored property '$__lazy_storage_$_session' of 'Sendable'-conforming class 'AbsoluteURLWebSocket' is mutable; this is an error in the Swift 6 language mode
14 | let keepAliveInterval: Double
15 |
16 | lazy var session: URLSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
| `- warning: stored property '$__lazy_storage_$_session' of 'Sendable'-conforming class 'AbsoluteURLWebSocket' is mutable; this is an error in the Swift 6 language mode
17 | lazy var task = session.webSocketTask(with: urlRequest)
18 |
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:46:16: warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
44 | /// The HTTP Authorization request header contains the credentials to authenticate a user agent with a server,
45 | /// usually after the server has responded with a 401 Unauthorized status and the WWW-Authenticate header.
46 | static let authorization: Self = "Authorization"
| |- warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'authorization' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | /// The Content-Length entity header is indicating the size of the entity-body, in bytes, sent to the recipient.
48 | static let contentLength: Self = "Content-Length"
/Users/admin/builder/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: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/StatusCode.swift:45:16: warning: static property 'ok' 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 |
:
43 |
44 | /// **200** Standard response for successful HTTP requests.
45 | static let ok: Self = 200
| |- warning: static property 'ok' 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: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | /// **201** The request has been fulfilled, resulting in the creation of a new resource.
47 | static let created: Self = 201
[29/44] Compiling SessionPlus AnyResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:60:17: warning: capture of 'completion' with non-sendable type '(Result<any Response, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | session.dataTask(with: urlRequest) { data, urlResponse, error in
59 | guard error == nil else {
60 | completion(.failure(error!))
| |- warning: capture of 'completion' with non-sendable type '(Result<any Response, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
61 | return
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLWebSocket.swift:8:12: warning: non-final class 'AbsoluteURLWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
6 | #if canImport(ObjectiveC)
7 |
8 | open class AbsoluteURLWebSocket: NSObject, WebSocket {
| `- warning: non-final class 'AbsoluteURLWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
9 |
10 | private typealias ResumeHandler = (Result<Void, Error>) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Implementation/AbsoluteURLWebSocket.swift:16:14: warning: stored property '$__lazy_storage_$_session' of 'Sendable'-conforming class 'AbsoluteURLWebSocket' is mutable; this is an error in the Swift 6 language mode
14 | let keepAliveInterval: Double
15 |
16 | lazy var session: URLSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
| `- warning: stored property '$__lazy_storage_$_session' of 'Sendable'-conforming class 'AbsoluteURLWebSocket' is mutable; this is an error in the Swift 6 language mode
17 | lazy var task = session.webSocketTask(with: urlRequest)
18 |
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:46:16: warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
44 | /// The HTTP Authorization request header contains the credentials to authenticate a user agent with a server,
45 | /// usually after the server has responded with a 401 Unauthorized status and the WWW-Authenticate header.
46 | static let authorization: Self = "Authorization"
| |- warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'authorization' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | /// The Content-Length entity header is indicating the size of the entity-body, in bytes, sent to the recipient.
48 | static let contentLength: Self = "Content-Length"
/Users/admin/builder/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: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/StatusCode.swift:45:16: warning: static property 'ok' 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 |
:
43 |
44 | /// **200** Standard response for successful HTTP requests.
45 | static let ok: Self = 200
| |- warning: static property 'ok' 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: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | /// **201** The request has been fulfilled, resulting in the creation of a new resource.
47 | static let created: Self = 201
[30/44] Compiling SessionPlus Patch.swift
/Users/admin/builder/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: annotate 'patch' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'put' with '@MainActor' if property should only be accessed from the main actor
| `- 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.
[31/44] Compiling SessionPlus Post.swift
/Users/admin/builder/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: annotate 'patch' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'put' with '@MainActor' if property should only be accessed from the main actor
| `- 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.
[32/44] Compiling SessionPlus Put.swift
/Users/admin/builder/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: annotate 'patch' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'put' with '@MainActor' if property should only be accessed from the main actor
| `- 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.
[33/44] Compiling SessionPlus Address.swift
/Users/admin/builder/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: annotate 'patch' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'put' with '@MainActor' if property should only be accessed from the main actor
| `- 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.
[34/44] Compiling SessionPlus Method.swift
/Users/admin/builder/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: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'put' with '@MainActor' if property should only be accessed from the main actor
| `- 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.
/Users/admin/builder/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: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'patch' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'delete' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | }
49 |
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:46:16: warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
44 | /// The HTTP Authorization request header contains the credentials to authenticate a user agent with a server,
45 | /// usually after the server has responded with a 401 Unauthorized status and the WWW-Authenticate header.
46 | static let authorization: Self = "Authorization"
| |- warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'authorization' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | /// The Content-Length entity header is indicating the size of the entity-body, in bytes, sent to the recipient.
48 | static let contentLength: Self = "Content-Length"
[35/44] Compiling SessionPlus Request.swift
/Users/admin/builder/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: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'put' with '@MainActor' if property should only be accessed from the main actor
| `- 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.
/Users/admin/builder/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: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'patch' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'delete' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | }
49 |
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:46:16: warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
44 | /// The HTTP Authorization request header contains the credentials to authenticate a user agent with a server,
45 | /// usually after the server has responded with a 401 Unauthorized status and the WWW-Authenticate header.
46 | static let authorization: Self = "Authorization"
| |- warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'authorization' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | /// The Content-Length entity header is indicating the size of the entity-body, in bytes, sent to the recipient.
48 | static let contentLength: Self = "Content-Length"
[36/44] Compiling SessionPlus Response.swift
/Users/admin/builder/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: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'put' with '@MainActor' if property should only be accessed from the main actor
| `- 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.
/Users/admin/builder/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: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'patch' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'delete' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | }
49 |
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:46:16: warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
44 | /// The HTTP Authorization request header contains the credentials to authenticate a user agent with a server,
45 | /// usually after the server has responded with a 401 Unauthorized status and the WWW-Authenticate header.
46 | static let authorization: Self = "Authorization"
| |- warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'authorization' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | /// The Content-Length entity header is indicating the size of the entity-body, in bytes, sent to the recipient.
48 | static let contentLength: Self = "Content-Length"
[37/44] Compiling SessionPlus BaseURLSessionClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:65:17: warning: capture of 'completion' with non-sendable type '(Result<any Response, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
63 | session.dataTask(with: urlRequest) { data, urlResponse, error in
64 | guard error == nil else {
65 | completion(.failure(error!))
| |- warning: capture of 'completion' with non-sendable type '(Result<any Response, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
66 | return
67 | }
/Users/admin/builder/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: annotate 'delete' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | }
49 |
/Users/admin/builder/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: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:53:16: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
51 | static let contentMD5: Self = "Content-MD5"
52 | /// The Content-Type entity header is used to indicate the media type of the resource.
53 | static let contentType: Self = "Content-Type"
| |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'contentType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | /// The Date general HTTP header contains the date and time at which the message was originated.
55 | static let date: Self = "Date"
[38/44] Compiling SessionPlus Delete.swift
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:65:17: warning: capture of 'completion' with non-sendable type '(Result<any Response, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
63 | session.dataTask(with: urlRequest) { data, urlResponse, error in
64 | guard error == nil else {
65 | completion(.failure(error!))
| |- warning: capture of 'completion' with non-sendable type '(Result<any Response, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
66 | return
67 | }
/Users/admin/builder/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: annotate 'delete' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | }
49 |
/Users/admin/builder/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: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:53:16: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
51 | static let contentMD5: Self = "Content-MD5"
52 | /// The Content-Type entity header is used to indicate the media type of the resource.
53 | static let contentType: Self = "Content-Type"
| |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'contentType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | /// The Date general HTTP header contains the date and time at which the message was originated.
55 | static let date: Self = "Date"
[39/44] Compiling SessionPlus Get.swift
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:65:17: warning: capture of 'completion' with non-sendable type '(Result<any Response, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
63 | session.dataTask(with: urlRequest) { data, urlResponse, error in
64 | guard error == nil else {
65 | completion(.failure(error!))
| |- warning: capture of 'completion' with non-sendable type '(Result<any Response, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
66 | return
67 | }
/Users/admin/builder/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: annotate 'delete' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | }
49 |
/Users/admin/builder/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: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:53:16: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
51 | static let contentMD5: Self = "Content-MD5"
52 | /// The Content-Type entity header is used to indicate the media type of the resource.
53 | static let contentType: Self = "Content-Type"
| |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'contentType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | /// The Date general HTTP header contains the date and time at which the message was originated.
55 | static let date: Self = "Date"
[40/44] Compiling SessionPlus PNGImageFormDataRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:65:17: warning: capture of 'completion' with non-sendable type '(Result<any Response, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
63 | session.dataTask(with: urlRequest) { data, urlResponse, error in
64 | guard error == nil else {
65 | completion(.failure(error!))
| |- warning: capture of 'completion' with non-sendable type '(Result<any Response, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
66 | return
67 | }
/Users/admin/builder/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: annotate 'delete' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | }
49 |
/Users/admin/builder/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: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:53:16: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
51 | static let contentMD5: Self = "Content-MD5"
52 | /// The Content-Type entity header is used to indicate the media type of the resource.
53 | static let contentType: Self = "Content-Type"
| |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'contentType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | /// The Date general HTTP header contains the date and time at which the message was originated.
55 | static let date: Self = "Date"
[41/44] Compiling SessionPlus Downloader.swift
/Users/admin/builder/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: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Deprecated/Downloader.swift:93:25: warning: capture of 'completion' with non-sendable type 'Downloader.DataCompletion' (aka '(Int, Optional<Data>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
91 | DispatchQueue.main.async(execute: { () -> Void in
92 | guard error == nil else {
93 | completion(0, data, error)
| |- warning: capture of 'completion' with non-sendable type 'Downloader.DataCompletion' (aka '(Int, Optional<Data>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
94 | return
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:48:16: warning: static property 'contentLength' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
46 | static let authorization: Self = "Authorization"
47 | /// The Content-Length entity header is indicating the size of the entity-body, in bytes, sent to the recipient.
48 | static let contentLength: Self = "Content-Length"
| |- warning: static property 'contentLength' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'contentLength' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | /// The Content-MD5 header, may be used as a message integrity check (MIC), to verify that the decoded data are the
50 | /// same data that were initially sent.
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:12:23: warning: static property 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// HTTP Header date formatter; RFC1123
12 | public static var dateFormatter: DateFormatter = {
| |- warning: static property 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dateFormatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | let formatter = DateFormatter()
14 | formatter.dateFormat = "EEE',' dd MMM yyyy HH':'mm':'ss 'GMT'"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:55:16: warning: static property 'date' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
53 | static let contentType: Self = "Content-Type"
54 | /// The Date general HTTP header contains the date and time at which the message was originated.
55 | static let date: Self = "Date"
| |- warning: static property 'date' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'date' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | }
57 |
/Users/admin/builder/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: annotate 'json' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:43:16: warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
41 | public extension Header {
42 | /// The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand.
43 | static let accept: Self = "Accept"
| |- warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'accept' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 | /// The HTTP Authorization request header contains the credentials to authenticate a user agent with a server,
45 | /// usually after the server has responded with a 401 Unauthorized status and the WWW-Authenticate header.
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:53:16: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
51 | static let contentMD5: Self = "Content-MD5"
52 | /// The Content-Type entity header is used to indicate the media type of the resource.
53 | static let contentType: Self = "Content-Type"
| |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'contentType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | /// The Date general HTTP header contains the date and time at which the message was originated.
55 | static let date: Self = "Date"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:46:16: warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
44 | /// The HTTP Authorization request header contains the credentials to authenticate a user agent with a server,
45 | /// usually after the server has responded with a 401 Unauthorized status and the WWW-Authenticate header.
46 | static let authorization: Self = "Authorization"
| |- warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'authorization' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | /// The Content-Length entity header is indicating the size of the entity-body, in bytes, sent to the recipient.
48 | static let contentLength: Self = "Content-Length"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Deprecated/HTTPClient.swift:82:17: warning: capture of 'completion' with non-sendable type 'HTTP.DataTaskCompletion' (aka '(Int, Optional<Dictionary<AnyHashable, Any>>, Optional<Data>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | return session.dataTask(with: request) { (responseData, urlResponse, error) in
81 | guard let httpResponse = urlResponse as? HTTPURLResponse else {
82 | completion(0, nil, responseData, error ?? HTTP.Error.invalidResponse)
| |- warning: capture of 'completion' with non-sendable type 'HTTP.DataTaskCompletion' (aka '(Int, Optional<Dictionary<AnyHashable, Any>>, Optional<Data>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
83 | return
84 | }
/Users/admin/builder/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: annotate 'put' with '@MainActor' if property should only be accessed from the main actor
| `- 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.
/Users/admin/builder/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: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'patch' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'delete' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | }
49 |
[42/44] Compiling SessionPlus HTTP.swift
/Users/admin/builder/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: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Deprecated/Downloader.swift:93:25: warning: capture of 'completion' with non-sendable type 'Downloader.DataCompletion' (aka '(Int, Optional<Data>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
91 | DispatchQueue.main.async(execute: { () -> Void in
92 | guard error == nil else {
93 | completion(0, data, error)
| |- warning: capture of 'completion' with non-sendable type 'Downloader.DataCompletion' (aka '(Int, Optional<Data>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
94 | return
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:48:16: warning: static property 'contentLength' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
46 | static let authorization: Self = "Authorization"
47 | /// The Content-Length entity header is indicating the size of the entity-body, in bytes, sent to the recipient.
48 | static let contentLength: Self = "Content-Length"
| |- warning: static property 'contentLength' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'contentLength' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | /// The Content-MD5 header, may be used as a message integrity check (MIC), to verify that the decoded data are the
50 | /// same data that were initially sent.
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:12:23: warning: static property 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// HTTP Header date formatter; RFC1123
12 | public static var dateFormatter: DateFormatter = {
| |- warning: static property 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dateFormatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | let formatter = DateFormatter()
14 | formatter.dateFormat = "EEE',' dd MMM yyyy HH':'mm':'ss 'GMT'"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:55:16: warning: static property 'date' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
53 | static let contentType: Self = "Content-Type"
54 | /// The Date general HTTP header contains the date and time at which the message was originated.
55 | static let date: Self = "Date"
| |- warning: static property 'date' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'date' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | }
57 |
/Users/admin/builder/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: annotate 'json' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:43:16: warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
41 | public extension Header {
42 | /// The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand.
43 | static let accept: Self = "Accept"
| |- warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'accept' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 | /// The HTTP Authorization request header contains the credentials to authenticate a user agent with a server,
45 | /// usually after the server has responded with a 401 Unauthorized status and the WWW-Authenticate header.
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:53:16: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
51 | static let contentMD5: Self = "Content-MD5"
52 | /// The Content-Type entity header is used to indicate the media type of the resource.
53 | static let contentType: Self = "Content-Type"
| |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'contentType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | /// The Date general HTTP header contains the date and time at which the message was originated.
55 | static let date: Self = "Date"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:46:16: warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
44 | /// The HTTP Authorization request header contains the credentials to authenticate a user agent with a server,
45 | /// usually after the server has responded with a 401 Unauthorized status and the WWW-Authenticate header.
46 | static let authorization: Self = "Authorization"
| |- warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'authorization' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | /// The Content-Length entity header is indicating the size of the entity-body, in bytes, sent to the recipient.
48 | static let contentLength: Self = "Content-Length"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Deprecated/HTTPClient.swift:82:17: warning: capture of 'completion' with non-sendable type 'HTTP.DataTaskCompletion' (aka '(Int, Optional<Dictionary<AnyHashable, Any>>, Optional<Data>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | return session.dataTask(with: request) { (responseData, urlResponse, error) in
81 | guard let httpResponse = urlResponse as? HTTPURLResponse else {
82 | completion(0, nil, responseData, error ?? HTTP.Error.invalidResponse)
| |- warning: capture of 'completion' with non-sendable type 'HTTP.DataTaskCompletion' (aka '(Int, Optional<Dictionary<AnyHashable, Any>>, Optional<Data>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
83 | return
84 | }
/Users/admin/builder/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: annotate 'put' with '@MainActor' if property should only be accessed from the main actor
| `- 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.
/Users/admin/builder/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: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'patch' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'delete' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | }
49 |
[43/44] Compiling SessionPlus HTTPClient.swift
/Users/admin/builder/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: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Deprecated/Downloader.swift:93:25: warning: capture of 'completion' with non-sendable type 'Downloader.DataCompletion' (aka '(Int, Optional<Data>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
91 | DispatchQueue.main.async(execute: { () -> Void in
92 | guard error == nil else {
93 | completion(0, data, error)
| |- warning: capture of 'completion' with non-sendable type 'Downloader.DataCompletion' (aka '(Int, Optional<Data>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
94 | return
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:48:16: warning: static property 'contentLength' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
46 | static let authorization: Self = "Authorization"
47 | /// The Content-Length entity header is indicating the size of the entity-body, in bytes, sent to the recipient.
48 | static let contentLength: Self = "Content-Length"
| |- warning: static property 'contentLength' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'contentLength' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | /// The Content-MD5 header, may be used as a message integrity check (MIC), to verify that the decoded data are the
50 | /// same data that were initially sent.
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:12:23: warning: static property 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// HTTP Header date formatter; RFC1123
12 | public static var dateFormatter: DateFormatter = {
| |- warning: static property 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dateFormatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | let formatter = DateFormatter()
14 | formatter.dateFormat = "EEE',' dd MMM yyyy HH':'mm':'ss 'GMT'"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:55:16: warning: static property 'date' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
53 | static let contentType: Self = "Content-Type"
54 | /// The Date general HTTP header contains the date and time at which the message was originated.
55 | static let date: Self = "Date"
| |- warning: static property 'date' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'date' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | }
57 |
/Users/admin/builder/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: annotate 'json' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:43:16: warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
41 | public extension Header {
42 | /// The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand.
43 | static let accept: Self = "Accept"
| |- warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'accept' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 | /// The HTTP Authorization request header contains the credentials to authenticate a user agent with a server,
45 | /// usually after the server has responded with a 401 Unauthorized status and the WWW-Authenticate header.
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:53:16: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
51 | static let contentMD5: Self = "Content-MD5"
52 | /// The Content-Type entity header is used to indicate the media type of the resource.
53 | static let contentType: Self = "Content-Type"
| |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'contentType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | /// The Date general HTTP header contains the date and time at which the message was originated.
55 | static let date: Self = "Date"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:46:16: warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
44 | /// The HTTP Authorization request header contains the credentials to authenticate a user agent with a server,
45 | /// usually after the server has responded with a 401 Unauthorized status and the WWW-Authenticate header.
46 | static let authorization: Self = "Authorization"
| |- warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'authorization' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | /// The Content-Length entity header is indicating the size of the entity-body, in bytes, sent to the recipient.
48 | static let contentLength: Self = "Content-Length"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Deprecated/HTTPClient.swift:82:17: warning: capture of 'completion' with non-sendable type 'HTTP.DataTaskCompletion' (aka '(Int, Optional<Dictionary<AnyHashable, Any>>, Optional<Data>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | return session.dataTask(with: request) { (responseData, urlResponse, error) in
81 | guard let httpResponse = urlResponse as? HTTPURLResponse else {
82 | completion(0, nil, responseData, error ?? HTTP.Error.invalidResponse)
| |- warning: capture of 'completion' with non-sendable type 'HTTP.DataTaskCompletion' (aka '(Int, Optional<Dictionary<AnyHashable, Any>>, Optional<Data>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
83 | return
84 | }
/Users/admin/builder/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: annotate 'put' with '@MainActor' if property should only be accessed from the main actor
| `- 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.
/Users/admin/builder/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: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'patch' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'delete' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | }
49 |
[44/44] Compiling SessionPlus HTTPCodable.swift
/Users/admin/builder/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: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Deprecated/Downloader.swift:93:25: warning: capture of 'completion' with non-sendable type 'Downloader.DataCompletion' (aka '(Int, Optional<Data>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
91 | DispatchQueue.main.async(execute: { () -> Void in
92 | guard error == nil else {
93 | completion(0, data, error)
| |- warning: capture of 'completion' with non-sendable type 'Downloader.DataCompletion' (aka '(Int, Optional<Data>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
94 | return
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:48:16: warning: static property 'contentLength' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
46 | static let authorization: Self = "Authorization"
47 | /// The Content-Length entity header is indicating the size of the entity-body, in bytes, sent to the recipient.
48 | static let contentLength: Self = "Content-Length"
| |- warning: static property 'contentLength' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'contentLength' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | /// The Content-MD5 header, may be used as a message integrity check (MIC), to verify that the decoded data are the
50 | /// same data that were initially sent.
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:12:23: warning: static property 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// HTTP Header date formatter; RFC1123
12 | public static var dateFormatter: DateFormatter = {
| |- warning: static property 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dateFormatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | let formatter = DateFormatter()
14 | formatter.dateFormat = "EEE',' dd MMM yyyy HH':'mm':'ss 'GMT'"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:55:16: warning: static property 'date' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
53 | static let contentType: Self = "Content-Type"
54 | /// The Date general HTTP header contains the date and time at which the message was originated.
55 | static let date: Self = "Date"
| |- warning: static property 'date' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'date' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | }
57 |
/Users/admin/builder/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: annotate 'json' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:43:16: warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
41 | public extension Header {
42 | /// The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand.
43 | static let accept: Self = "Accept"
| |- warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'accept' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 | /// The HTTP Authorization request header contains the credentials to authenticate a user agent with a server,
45 | /// usually after the server has responded with a 401 Unauthorized status and the WWW-Authenticate header.
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:53:16: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
51 | static let contentMD5: Self = "Content-MD5"
52 | /// The Content-Type entity header is used to indicate the media type of the resource.
53 | static let contentType: Self = "Content-Type"
| |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'contentType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | /// The Date general HTTP header contains the date and time at which the message was originated.
55 | static let date: Self = "Date"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Interface/Header.swift:46:16: warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Command HTTP Header
4 | public struct Header: ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Header' conform to the 'Sendable' protocol
5 | public let rawValue: String
6 |
:
44 | /// The HTTP Authorization request header contains the credentials to authenticate a user agent with a server,
45 | /// usually after the server has responded with a 401 Unauthorized status and the WWW-Authenticate header.
46 | static let authorization: Self = "Authorization"
| |- warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'authorization' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | /// The Content-Length entity header is indicating the size of the entity-body, in bytes, sent to the recipient.
48 | static let contentLength: Self = "Content-Length"
/Users/admin/builder/spi-builder-workspace/Sources/SessionPlus/Deprecated/HTTPClient.swift:82:17: warning: capture of 'completion' with non-sendable type 'HTTP.DataTaskCompletion' (aka '(Int, Optional<Dictionary<AnyHashable, Any>>, Optional<Data>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | return session.dataTask(with: request) { (responseData, urlResponse, error) in
81 | guard let httpResponse = urlResponse as? HTTPURLResponse else {
82 | completion(0, nil, responseData, error ?? HTTP.Error.invalidResponse)
| |- warning: capture of 'completion' with non-sendable type 'HTTP.DataTaskCompletion' (aka '(Int, Optional<Dictionary<AnyHashable, Any>>, Optional<Data>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
83 | return
84 | }
/Users/admin/builder/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: annotate 'put' with '@MainActor' if property should only be accessed from the main actor
| `- 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.
/Users/admin/builder/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: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'patch' with '@MainActor' if property should only be accessed from the main actor
| `- 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"
/Users/admin/builder/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: annotate 'delete' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | }
49 |
[45/46] Compiling SessionPlusEmulation EmulatedClient.swift
[46/46] Emitting module SessionPlusEmulation
Build complete! (13.94s)
Build complete.
{
"dependencies" : [
{
"identity" : "asyncplus",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/richardpiazza/AsyncPlus.git"
}
],
"manifest_display_name" : "SessionPlus",
"name" : "SessionPlus",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "maccatalyst",
"version" : "15.0"
},
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "8.0"
}
],
"products" : [
{
"name" : "SessionPlus",
"targets" : [
"SessionPlus",
"SessionPlusEmulation"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "SessionPlusTests",
"module_type" : "SwiftTarget",
"name" : "SessionPlusTests",
"path" : "Tests/SessionPlusTests",
"sources" : [
"MultipartFormDataTests.swift",
"WebAPITests.swift"
],
"target_dependencies" : [
"SessionPlus",
"SessionPlusEmulation"
],
"type" : "test"
},
{
"c99name" : "SessionPlusEmulation",
"module_type" : "SwiftTarget",
"name" : "SessionPlusEmulation",
"path" : "Sources/SessionPlusEmulation",
"product_memberships" : [
"SessionPlus"
],
"sources" : [
"EmulatedClient.swift"
],
"target_dependencies" : [
"SessionPlus"
],
"type" : "library"
},
{
"c99name" : "SessionPlus",
"module_type" : "SwiftTarget",
"name" : "SessionPlus",
"path" : "Sources/SessionPlus",
"product_dependencies" : [
"AsyncPlus"
],
"product_memberships" : [
"SessionPlus"
],
"sources" : [
"Deprecated/Downloader.swift",
"Deprecated/HTTP.swift",
"Deprecated/HTTPClient.swift",
"Deprecated/HTTPCodable.swift",
"Deprecated/HTTPInjectable.swift",
"Deprecated/WebAPI.swift",
"Extensions/URLCache+SessionPlus.swift",
"Extensions/URLQueryItem+SessionPlus.swift",
"Extensions/URLRequest+SessionPlus.swift",
"Extensions/URLResponse+SessionPlus.swift",
"Extensions/URLSessionConfiguration+SessionPlus.swift",
"Extensions/URLSessionDelegate+SessionPlus.swift",
"Implementation/AbsoluteURLSessionClient.swift",
"Implementation/AbsoluteURLWebSocket.swift",
"Implementation/AnyRequest.swift",
"Implementation/AnyResponse.swift",
"Implementation/BaseURLSessionClient.swift",
"Implementation/Delete.swift",
"Implementation/Get.swift",
"Implementation/PNGImageFormDataRequest.swift",
"Implementation/Patch.swift",
"Implementation/Post.swift",
"Implementation/Put.swift",
"Interface/Address.swift",
"Interface/Authorization.swift",
"Interface/Client+Decoding.swift",
"Interface/Client.swift",
"Interface/Header.swift",
"Interface/Headers.swift",
"Interface/MIMEType.swift",
"Interface/Method.swift",
"Interface/Request.swift",
"Interface/Response.swift",
"Interface/Socket.swift",
"Interface/StatusCode.swift",
"Interface/WebSocket.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Done.