Build Information
Failed to build RealHTTP with Swift 6.0 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/immobiliare/RealHTTP.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/immobiliare/RealHTTP
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at c0ffb26 Merge branch 'main' of https://github.com/immobiliare/RealHTTP
Cloned https://github.com/immobiliare/RealHTTP.git
Revision (git rev-parse @):
c0ffb265eae8684da02ad20cfcc147c23463ad95
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/immobiliare/RealHTTP.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/immobiliare/RealHTTP.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/73] Emitting module RealHTTP
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:28:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HTTPClient' may have shared mutable state; this is an error in the Swift 6 language mode
21 | /// HTTPClient is the place where each request will be executed.
22 | /// It contains the complete configuration, keep cookies and sessions.
23 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public Properties
26 |
27 | /// Shared HTTPClient instance.
28 | public static let shared = HTTPClient(baseURL: nil)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HTTPClient' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
29 |
30 | /// Delegate of the client.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:22:22: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
20 |
21 | public class HTTPRequest: CustomStringConvertible {
22 | public typealias RequestTask = Task<HTTPResponse, Error>
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | public typealias RequestModifier = ((inout URLRequest) throws -> Void)
24 | internal static let DefaultTimeout = TimeInterval(10)
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:25:12: note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
23 | /// This is the raw response received from server. It includes all the
24 | /// data collected from the request including metrics and errors.
25 | open class HTTPResponse: CustomStringConvertible {
| `- note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
26 |
27 | // MARK: - Public Properties
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:48:23: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
46 | public static let connect = HTTPMethod(rawValue: "CONNECT")
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
48 | public static let get = HTTPMethod(rawValue: "GET")
| |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' 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
49 | public static let head = HTTPMethod(rawValue: "HEAD")
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPVersion.swift:33:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | /// Defines the HTTP protocol version used for request.
22 | public struct HTTPVersion: Equatable, Hashable, Codable, RawRepresentable,
| `- note: consider making struct 'HTTPVersion' conform to the 'Sendable' protocol
23 | ExpressibleByFloatLiteral, CustomStringConvertible {
24 |
:
31 | public static let v2_0: Self = 2.0
32 | public static let v3_0: Self = 3.0
33 | public static let `default`: Self = v2_0
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
34 |
35 | // MARK: - Public Properties
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/HTTPBody.swift:29:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'HTTPBody' may have shared mutable state; this is an error in the Swift 6 language mode
22 |
23 | /// Defines the body of a request, including the content's body and additional headers.
24 | public struct HTTPBody {
| `- note: consider making struct 'HTTPBody' conform to the 'Sendable' protocol
25 |
26 | // MARK: - Public Static Properties
27 |
28 | /// No data to send.
29 | public static let empty = HTTPBody(content: Data())
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'HTTPBody' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' 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
30 |
31 | // MARK: - Public Properties
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:24:16: warning: non-final class 'HTTPDataLoader' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
22 | /// URLSessionDelegate which can be used from iOS 13+.
23 | /// This because new `URLSession` methods are introduced and available only starting from iOS 15+.
24 | internal class HTTPDataLoader: NSObject,
| `- warning: non-final class 'HTTPDataLoader' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
25 | URLSessionDelegate, URLSessionDataDelegate,
26 | URLSessionDownloadDelegate,
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:32:18: warning: stored property 'session' of 'Sendable'-conforming class 'HTTPDataLoader' is mutable; this is an error in the Swift 6 language mode
30 |
31 | /// URLSession instance which manage calls.
32 | internal var session: URLSession!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'HTTPDataLoader' is mutable; this is an error in the Swift 6 language mode
33 |
34 | /// Weak references to the parent HTTPClient instance.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:238:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
236 | // MARK: - URL
237 |
238 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
239 |
240 | public init(stringLiteral value: StaticString) {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPError.swift:35:30: warning: stored property 'category' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'HTTPError.ErrorCategory'; this is an error in the Swift 6 language mode
33 |
34 | /// Category of the error.
35 | public internal(set) var category: ErrorCategory
| `- warning: stored property 'category' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'HTTPError.ErrorCategory'; this is an error in the Swift 6 language mode
36 |
37 | /// Additional user info.
:
108 | /// - `validatorFailure`: failure returned by a validator set.
109 | /// - `internal`: internal library error occurred.
110 | enum ErrorCategory: Int {
| `- note: consider making enum 'ErrorCategory' conform to the 'Sendable' protocol
111 | case invalidURL
112 | case multipartInvalidFile
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPError.swift:38:16: warning: stored property 'userInfo' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
36 |
37 | /// Additional user info.
38 | public var userInfo: [String: Any]?
| `- warning: stored property 'userInfo' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
39 |
40 | /// Custom error message.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:42:23: warning: static property 'allCases' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
| |- warning: static property 'allCases' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' 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
43 |
44 | // MARK: - Static Values
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:46:23: warning: static property 'connect' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
44 | // MARK: - Static Values
45 |
46 | public static let connect = HTTPMethod(rawValue: "CONNECT")
| |- warning: static property 'connect' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'connect' 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 | public static let delete = HTTPMethod(rawValue: "DELETE")
48 | public static let get = HTTPMethod(rawValue: "GET")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:47:23: warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
45 |
46 | public static let connect = HTTPMethod(rawValue: "CONNECT")
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
| |- warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' 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 | public static let get = HTTPMethod(rawValue: "GET")
49 | public static let head = HTTPMethod(rawValue: "HEAD")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:49:23: warning: static property 'head' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
48 | public static let get = HTTPMethod(rawValue: "GET")
49 | public static let head = HTTPMethod(rawValue: "HEAD")
| |- warning: static property 'head' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'head' 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
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:50:23: warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
48 | public static let get = HTTPMethod(rawValue: "GET")
49 | public static let head = HTTPMethod(rawValue: "HEAD")
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
| |- warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'options' 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
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
52 | public static let post = HTTPMethod(rawValue: "POST")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:51:23: warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
49 | public static let head = HTTPMethod(rawValue: "HEAD")
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
| |- warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' 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
52 | public static let post = HTTPMethod(rawValue: "POST")
53 | public static let put = HTTPMethod(rawValue: "PUT")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:52:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
52 | public static let post = HTTPMethod(rawValue: "POST")
| |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' 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
53 | public static let put = HTTPMethod(rawValue: "PUT")
54 | public static let trace = HTTPMethod(rawValue: "TRACE")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:53:23: warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
52 | public static let post = HTTPMethod(rawValue: "POST")
53 | public static let put = HTTPMethod(rawValue: "PUT")
| |- warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' 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
54 | public static let trace = HTTPMethod(rawValue: "TRACE")
55 |
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:54:23: warning: static property 'trace' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
52 | public static let post = HTTPMethod(rawValue: "POST")
53 | public static let put = HTTPMethod(rawValue: "PUT")
54 | public static let trace = HTTPMethod(rawValue: "TRACE")
| |- warning: static property 'trace' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'trace' 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
55 |
56 | // MARK: - Public Properties
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPScheme.swift:23:16: warning: static property 'http' is not concurrency-safe because non-'Sendable' type 'HTTPScheme' may have shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | /// Defines the protocol scheme for an URL.
22 | public struct HTTPScheme: Equatable, Hashable, Codable, RawRepresentable, CustomStringConvertible {
| `- note: consider making struct 'HTTPScheme' conform to the 'Sendable' protocol
23 | static let http: Self = "http"
| |- warning: static property 'http' is not concurrency-safe because non-'Sendable' type 'HTTPScheme' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'http' 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
24 | static let https: Self = "https"
25 | static let ftp: Self = "ftp"
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPScheme.swift:24:16: warning: static property 'https' is not concurrency-safe because non-'Sendable' type 'HTTPScheme' may have shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | /// Defines the protocol scheme for an URL.
22 | public struct HTTPScheme: Equatable, Hashable, Codable, RawRepresentable, CustomStringConvertible {
| `- note: consider making struct 'HTTPScheme' conform to the 'Sendable' protocol
23 | static let http: Self = "http"
24 | static let https: Self = "https"
| |- warning: static property 'https' is not concurrency-safe because non-'Sendable' type 'HTTPScheme' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'https' 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
25 | static let ftp: Self = "ftp"
26 | static let sftp: Self = "sftp"
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPScheme.swift:25:16: warning: static property 'ftp' is not concurrency-safe because non-'Sendable' type 'HTTPScheme' may have shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | /// Defines the protocol scheme for an URL.
22 | public struct HTTPScheme: Equatable, Hashable, Codable, RawRepresentable, CustomStringConvertible {
| `- note: consider making struct 'HTTPScheme' conform to the 'Sendable' protocol
23 | static let http: Self = "http"
24 | static let https: Self = "https"
25 | static let ftp: Self = "ftp"
| |- warning: static property 'ftp' is not concurrency-safe because non-'Sendable' type 'HTTPScheme' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ftp' 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
26 | static let sftp: Self = "sftp"
27 | static let tel: Self = "tel"
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPScheme.swift:26:16: warning: static property 'sftp' is not concurrency-safe because non-'Sendable' type 'HTTPScheme' may have shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | /// Defines the protocol scheme for an URL.
22 | public struct HTTPScheme: Equatable, Hashable, Codable, RawRepresentable, CustomStringConvertible {
| `- note: consider making struct 'HTTPScheme' conform to the 'Sendable' protocol
23 | static let http: Self = "http"
24 | static let https: Self = "https"
25 | static let ftp: Self = "ftp"
26 | static let sftp: Self = "sftp"
| |- warning: static property 'sftp' is not concurrency-safe because non-'Sendable' type 'HTTPScheme' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sftp' 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
27 | static let tel: Self = "tel"
28 | static let mailto: Self = "mailto"
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPScheme.swift:27:16: warning: static property 'tel' is not concurrency-safe because non-'Sendable' type 'HTTPScheme' may have shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | /// Defines the protocol scheme for an URL.
22 | public struct HTTPScheme: Equatable, Hashable, Codable, RawRepresentable, CustomStringConvertible {
| `- note: consider making struct 'HTTPScheme' conform to the 'Sendable' protocol
23 | static let http: Self = "http"
24 | static let https: Self = "https"
25 | static let ftp: Self = "ftp"
26 | static let sftp: Self = "sftp"
27 | static let tel: Self = "tel"
| |- warning: static property 'tel' is not concurrency-safe because non-'Sendable' type 'HTTPScheme' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'tel' 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
28 | static let mailto: Self = "mailto"
29 | static let file: Self = "file"
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPScheme.swift:28:16: warning: static property 'mailto' is not concurrency-safe because non-'Sendable' type 'HTTPScheme' may have shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | /// Defines the protocol scheme for an URL.
22 | public struct HTTPScheme: Equatable, Hashable, Codable, RawRepresentable, CustomStringConvertible {
| `- note: consider making struct 'HTTPScheme' conform to the 'Sendable' protocol
23 | static let http: Self = "http"
24 | static let https: Self = "https"
:
26 | static let sftp: Self = "sftp"
27 | static let tel: Self = "tel"
28 | static let mailto: Self = "mailto"
| |- warning: static property 'mailto' is not concurrency-safe because non-'Sendable' type 'HTTPScheme' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mailto' 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
29 | static let file: Self = "file"
30 | static let data: Self = "data"
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPScheme.swift:29:16: warning: static property 'file' is not concurrency-safe because non-'Sendable' type 'HTTPScheme' may have shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | /// Defines the protocol scheme for an URL.
22 | public struct HTTPScheme: Equatable, Hashable, Codable, RawRepresentable, CustomStringConvertible {
| `- note: consider making struct 'HTTPScheme' conform to the 'Sendable' protocol
23 | static let http: Self = "http"
24 | static let https: Self = "https"
:
27 | static let tel: Self = "tel"
28 | static let mailto: Self = "mailto"
29 | static let file: Self = "file"
| |- warning: static property 'file' is not concurrency-safe because non-'Sendable' type 'HTTPScheme' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'file' 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
30 | static let data: Self = "data"
31 |
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPScheme.swift:30:16: warning: static property 'data' is not concurrency-safe because non-'Sendable' type 'HTTPScheme' may have shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | /// Defines the protocol scheme for an URL.
22 | public struct HTTPScheme: Equatable, Hashable, Codable, RawRepresentable, CustomStringConvertible {
| `- note: consider making struct 'HTTPScheme' conform to the 'Sendable' protocol
23 | static let http: Self = "http"
24 | static let https: Self = "https"
:
28 | static let mailto: Self = "mailto"
29 | static let file: Self = "file"
30 | static let data: Self = "data"
| |- warning: static property 'data' is not concurrency-safe because non-'Sendable' type 'HTTPScheme' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'data' 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
31 |
32 | public let rawValue: String
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPVersion.swift:28:23: warning: static property 'v0_9' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | /// Defines the HTTP protocol version used for request.
22 | public struct HTTPVersion: Equatable, Hashable, Codable, RawRepresentable,
| `- note: consider making struct 'HTTPVersion' conform to the 'Sendable' protocol
23 | ExpressibleByFloatLiteral, CustomStringConvertible {
24 |
:
26 |
27 | // swiftlint:disable identifier_name
28 | public static let v0_9: Self = 0.9
| |- warning: static property 'v0_9' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'v0_9' 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
29 | public static let v1_0: Self = 1.0
30 | public static let v1_1: Self = 1.1
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPVersion.swift:29:23: warning: static property 'v1_0' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | /// Defines the HTTP protocol version used for request.
22 | public struct HTTPVersion: Equatable, Hashable, Codable, RawRepresentable,
| `- note: consider making struct 'HTTPVersion' conform to the 'Sendable' protocol
23 | ExpressibleByFloatLiteral, CustomStringConvertible {
24 |
:
27 | // swiftlint:disable identifier_name
28 | public static let v0_9: Self = 0.9
29 | public static let v1_0: Self = 1.0
| |- warning: static property 'v1_0' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'v1_0' 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
30 | public static let v1_1: Self = 1.1
31 | public static let v2_0: Self = 2.0
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPVersion.swift:30:23: warning: static property 'v1_1' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | /// Defines the HTTP protocol version used for request.
22 | public struct HTTPVersion: Equatable, Hashable, Codable, RawRepresentable,
| `- note: consider making struct 'HTTPVersion' conform to the 'Sendable' protocol
23 | ExpressibleByFloatLiteral, CustomStringConvertible {
24 |
:
28 | public static let v0_9: Self = 0.9
29 | public static let v1_0: Self = 1.0
30 | public static let v1_1: Self = 1.1
| |- warning: static property 'v1_1' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'v1_1' 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
31 | public static let v2_0: Self = 2.0
32 | public static let v3_0: Self = 3.0
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPVersion.swift:31:23: warning: static property 'v2_0' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | /// Defines the HTTP protocol version used for request.
22 | public struct HTTPVersion: Equatable, Hashable, Codable, RawRepresentable,
| `- note: consider making struct 'HTTPVersion' conform to the 'Sendable' protocol
23 | ExpressibleByFloatLiteral, CustomStringConvertible {
24 |
:
29 | public static let v1_0: Self = 1.0
30 | public static let v1_1: Self = 1.1
31 | public static let v2_0: Self = 2.0
| |- warning: static property 'v2_0' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'v2_0' 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
32 | public static let v3_0: Self = 3.0
33 | public static let `default`: Self = v2_0
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPVersion.swift:32:23: warning: static property 'v3_0' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | /// Defines the HTTP protocol version used for request.
22 | public struct HTTPVersion: Equatable, Hashable, Codable, RawRepresentable,
| `- note: consider making struct 'HTTPVersion' conform to the 'Sendable' protocol
23 | ExpressibleByFloatLiteral, CustomStringConvertible {
24 |
:
30 | public static let v1_1: Self = 1.1
31 | public static let v2_0: Self = 2.0
32 | public static let v3_0: Self = 3.0
| |- warning: static property 'v3_0' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'v3_0' 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
33 | public static let `default`: Self = v2_0
34 |
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders+Element.swift:37:27: warning: static property 'defaultAcceptEncoding' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders.Element' may have shared mutable state; this is an error in the Swift 6 language mode
22 |
23 | /// A representation of a single HTTP header's name & value pair.
24 | struct Element: Hashable, Equatable, Comparable, CustomStringConvertible {
| `- note: consider making struct 'Element' conform to the 'Sendable' protocol
25 |
26 | // MARK: - Public Properties
:
35 |
36 | /// Create the default `Accept-Encoding` header.
37 | public static let defaultAcceptEncoding: Element = {
| |- warning: static property 'defaultAcceptEncoding' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders.Element' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultAcceptEncoding' 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
38 | .acceptEncoding(["br", "gzip", "deflate"].encodedWithQuality())
39 | }()
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders+Element.swift:43:27: warning: static property 'defaultAcceptLanguage' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders.Element' may have shared mutable state; this is an error in the Swift 6 language mode
22 |
23 | /// A representation of a single HTTP header's name & value pair.
24 | struct Element: Hashable, Equatable, Comparable, CustomStringConvertible {
| `- note: consider making struct 'Element' conform to the 'Sendable' protocol
25 |
26 | // MARK: - Public Properties
:
41 | /// Create the default `Accept-Language` header generated
42 | /// from the current system's locale settings.
43 | public static let defaultAcceptLanguage: Element = {
| |- warning: static property 'defaultAcceptLanguage' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders.Element' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultAcceptLanguage' 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 | let value = Locale.preferredLanguages.prefix(6).encodedWithQuality()
45 | return .acceptLanguage(value)
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders+Element.swift:50:27: warning: static property 'defaultUserAgent' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders.Element' may have shared mutable state; this is an error in the Swift 6 language mode
22 |
23 | /// A representation of a single HTTP header's name & value pair.
24 | struct Element: Hashable, Equatable, Comparable, CustomStringConvertible {
| `- note: consider making struct 'Element' conform to the 'Sendable' protocol
25 |
26 | // MARK: - Public Properties
:
48 | /// Create the default `User-Agent` header.
49 | /// See <https://tools.ietf.org/html/rfc7231#section-5.5.3>.
50 | public static let defaultUserAgent: Element = {
| |- warning: static property 'defaultUserAgent' is not concurrency-safe because non-'Sendable' type 'HTTPHeaders.Element' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultUserAgent' 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
51 | let libraryVersion = "\(RealHTTP.agentIdentifier)/\(RealHTTP.sdkVersion)"
52 | let mainBundle = Bundle.main
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:83:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
:
81 |
82 | /// Include all the options.
83 | public static let `default`: Options = [.ignoreQueryParameters]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
84 |
85 | public init(rawValue: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:77:27: warning: static property 'ignoreQueryParameters' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
76 | /// Ignore query parameters from comparison.
77 | public static let ignoreQueryParameters = Options(rawValue: 1 << 0)
| |- warning: static property 'ignoreQueryParameters' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ignoreQueryParameters' 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
78 |
79 | /// Ignore path (route) components from comparison.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:80:27: warning: static property 'ignorePath' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
:
78 |
79 | /// Ignore path (route) components from comparison.
80 | public static let ignorePath = Options(rawValue: 1 << 1)
| |- warning: static property 'ignorePath' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ignorePath' 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
81 |
82 | /// Include all the options.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:26:23: warning: static property 'shared' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Singleton instance.
26 | public static var shared = HTTPStubber()
| |- warning: static property 'shared' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' 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
27 |
28 | /// Is the stubber running and intercepting request?
[4/80] Compiling RealHTTP HTTPStubDataConvertible.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:26:23: warning: static property 'shared' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Singleton instance.
26 | public static var shared = HTTPStubber()
| |- warning: static property 'shared' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' 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
27 |
28 | /// Is the stubber running and intercepting request?
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:83:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
:
81 |
82 | /// Include all the options.
83 | public static let `default`: Options = [.ignoreQueryParameters]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
84 |
85 | public init(rawValue: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:17: warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import Foundation
20 |
21 | public class HTTPStubURLProtocol: URLProtocol {
| `- note: class 'HTTPStubURLProtocol' does not conform to the 'Sendable' protocol
22 |
23 | /// This class support only certain common type of schemes.
:
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:33: warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
Foundation.InputStream:1:12: note: class 'InputStream' does not conform to the 'Sendable' protocol
1 | open class InputStream : Stream {
| `- note: class 'InputStream' does not conform to the 'Sendable' protocol
2 | open func read(_ buffer: UnsafeMutablePointer<UInt8>, maxLength len: Int) -> Int
3 | open func getBuffer(_ buffer: UnsafeMutablePointer<UnsafeMutablePointer<UInt8>?>, length len: UnsafeMutablePointer<Int>) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:76: warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:21:12: note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
19 | import Foundation
20 |
21 | open class HTTPStubResponse {
| `- note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
22 |
23 | /// The HTTP status code to return with the response.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:89: warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:90:13: note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
88 |
89 | /// Simulate a connection speed.
90 | public enum HTTPConnectionSpeed {
| `- note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
91 | case speed1kbps
92 | case speedSlow
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:108: warning: capture of 'completion' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '((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'
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:176:21: warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import Foundation
20 |
21 | public class HTTPStubURLProtocol: URLProtocol {
| `- note: class 'HTTPStubURLProtocol' does not conform to the 'Sendable' protocol
22 |
23 | /// This class support only certain common type of schemes.
:
174 | // adjust slotTime proportionally to the bytes remaining
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
| `- warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
178 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:37: warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | }
179 | } else {
Foundation.InputStream:1:12: note: class 'InputStream' does not conform to the 'Sendable' protocol
1 | open class InputStream : Stream {
| `- note: class 'InputStream' does not conform to the 'Sendable' protocol
2 | open func read(_ buffer: UnsafeMutablePointer<UInt8>, maxLength len: Int) -> Int
3 | open func getBuffer(_ buffer: UnsafeMutablePointer<UnsafeMutablePointer<UInt8>?>, length len: UnsafeMutablePointer<Int>) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:80: warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | }
179 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:21:12: note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
19 | import Foundation
20 |
21 | open class HTTPStubResponse {
| `- note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
22 |
23 | /// The HTTP status code to return with the response.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:93: warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | }
179 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:90:13: note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
88 |
89 | /// Simulate a connection speed.
90 | public enum HTTPConnectionSpeed {
| `- note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
91 | case speed1kbps
92 | case speedSlow
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:112: warning: capture of 'completion' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '((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'
178 | }
179 | } else {
[5/80] Compiling RealHTTP HTTPStubber.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:26:23: warning: static property 'shared' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Singleton instance.
26 | public static var shared = HTTPStubber()
| |- warning: static property 'shared' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' 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
27 |
28 | /// Is the stubber running and intercepting request?
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:83:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
:
81 |
82 | /// Include all the options.
83 | public static let `default`: Options = [.ignoreQueryParameters]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
84 |
85 | public init(rawValue: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:17: warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import Foundation
20 |
21 | public class HTTPStubURLProtocol: URLProtocol {
| `- note: class 'HTTPStubURLProtocol' does not conform to the 'Sendable' protocol
22 |
23 | /// This class support only certain common type of schemes.
:
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:33: warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
Foundation.InputStream:1:12: note: class 'InputStream' does not conform to the 'Sendable' protocol
1 | open class InputStream : Stream {
| `- note: class 'InputStream' does not conform to the 'Sendable' protocol
2 | open func read(_ buffer: UnsafeMutablePointer<UInt8>, maxLength len: Int) -> Int
3 | open func getBuffer(_ buffer: UnsafeMutablePointer<UnsafeMutablePointer<UInt8>?>, length len: UnsafeMutablePointer<Int>) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:76: warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:21:12: note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
19 | import Foundation
20 |
21 | open class HTTPStubResponse {
| `- note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
22 |
23 | /// The HTTP status code to return with the response.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:89: warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:90:13: note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
88 |
89 | /// Simulate a connection speed.
90 | public enum HTTPConnectionSpeed {
| `- note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
91 | case speed1kbps
92 | case speedSlow
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:108: warning: capture of 'completion' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '((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'
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:176:21: warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import Foundation
20 |
21 | public class HTTPStubURLProtocol: URLProtocol {
| `- note: class 'HTTPStubURLProtocol' does not conform to the 'Sendable' protocol
22 |
23 | /// This class support only certain common type of schemes.
:
174 | // adjust slotTime proportionally to the bytes remaining
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
| `- warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
178 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:37: warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | }
179 | } else {
Foundation.InputStream:1:12: note: class 'InputStream' does not conform to the 'Sendable' protocol
1 | open class InputStream : Stream {
| `- note: class 'InputStream' does not conform to the 'Sendable' protocol
2 | open func read(_ buffer: UnsafeMutablePointer<UInt8>, maxLength len: Int) -> Int
3 | open func getBuffer(_ buffer: UnsafeMutablePointer<UnsafeMutablePointer<UInt8>?>, length len: UnsafeMutablePointer<Int>) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:80: warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | }
179 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:21:12: note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
19 | import Foundation
20 |
21 | open class HTTPStubResponse {
| `- note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
22 |
23 | /// The HTTP status code to return with the response.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:93: warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | }
179 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:90:13: note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
88 |
89 | /// Simulate a connection speed.
90 | public enum HTTPConnectionSpeed {
| `- note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
91 | case speed1kbps
92 | case speedSlow
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:112: warning: capture of 'completion' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '((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'
178 | }
179 | } else {
[6/80] Compiling RealHTTP HTTPStubberErrors.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:26:23: warning: static property 'shared' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Singleton instance.
26 | public static var shared = HTTPStubber()
| |- warning: static property 'shared' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' 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
27 |
28 | /// Is the stubber running and intercepting request?
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:83:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
:
81 |
82 | /// Include all the options.
83 | public static let `default`: Options = [.ignoreQueryParameters]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
84 |
85 | public init(rawValue: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:17: warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import Foundation
20 |
21 | public class HTTPStubURLProtocol: URLProtocol {
| `- note: class 'HTTPStubURLProtocol' does not conform to the 'Sendable' protocol
22 |
23 | /// This class support only certain common type of schemes.
:
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:33: warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
Foundation.InputStream:1:12: note: class 'InputStream' does not conform to the 'Sendable' protocol
1 | open class InputStream : Stream {
| `- note: class 'InputStream' does not conform to the 'Sendable' protocol
2 | open func read(_ buffer: UnsafeMutablePointer<UInt8>, maxLength len: Int) -> Int
3 | open func getBuffer(_ buffer: UnsafeMutablePointer<UnsafeMutablePointer<UInt8>?>, length len: UnsafeMutablePointer<Int>) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:76: warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:21:12: note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
19 | import Foundation
20 |
21 | open class HTTPStubResponse {
| `- note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
22 |
23 | /// The HTTP status code to return with the response.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:89: warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:90:13: note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
88 |
89 | /// Simulate a connection speed.
90 | public enum HTTPConnectionSpeed {
| `- note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
91 | case speed1kbps
92 | case speedSlow
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:108: warning: capture of 'completion' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '((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'
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:176:21: warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import Foundation
20 |
21 | public class HTTPStubURLProtocol: URLProtocol {
| `- note: class 'HTTPStubURLProtocol' does not conform to the 'Sendable' protocol
22 |
23 | /// This class support only certain common type of schemes.
:
174 | // adjust slotTime proportionally to the bytes remaining
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
| `- warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
178 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:37: warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | }
179 | } else {
Foundation.InputStream:1:12: note: class 'InputStream' does not conform to the 'Sendable' protocol
1 | open class InputStream : Stream {
| `- note: class 'InputStream' does not conform to the 'Sendable' protocol
2 | open func read(_ buffer: UnsafeMutablePointer<UInt8>, maxLength len: Int) -> Int
3 | open func getBuffer(_ buffer: UnsafeMutablePointer<UnsafeMutablePointer<UInt8>?>, length len: UnsafeMutablePointer<Int>) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:80: warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | }
179 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:21:12: note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
19 | import Foundation
20 |
21 | open class HTTPStubResponse {
| `- note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
22 |
23 | /// The HTTP status code to return with the response.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:93: warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | }
179 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:90:13: note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
88 |
89 | /// Simulate a connection speed.
90 | public enum HTTPConnectionSpeed {
| `- note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
91 | case speed1kbps
92 | case speedSlow
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:112: warning: capture of 'completion' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '((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'
178 | }
179 | } else {
[7/80] Compiling RealHTTP HTTPStubHookProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:26:23: warning: static property 'shared' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Singleton instance.
26 | public static var shared = HTTPStubber()
| |- warning: static property 'shared' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' 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
27 |
28 | /// Is the stubber running and intercepting request?
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:83:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
:
81 |
82 | /// Include all the options.
83 | public static let `default`: Options = [.ignoreQueryParameters]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
84 |
85 | public init(rawValue: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:17: warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import Foundation
20 |
21 | public class HTTPStubURLProtocol: URLProtocol {
| `- note: class 'HTTPStubURLProtocol' does not conform to the 'Sendable' protocol
22 |
23 | /// This class support only certain common type of schemes.
:
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:33: warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
Foundation.InputStream:1:12: note: class 'InputStream' does not conform to the 'Sendable' protocol
1 | open class InputStream : Stream {
| `- note: class 'InputStream' does not conform to the 'Sendable' protocol
2 | open func read(_ buffer: UnsafeMutablePointer<UInt8>, maxLength len: Int) -> Int
3 | open func getBuffer(_ buffer: UnsafeMutablePointer<UnsafeMutablePointer<UInt8>?>, length len: UnsafeMutablePointer<Int>) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:76: warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:21:12: note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
19 | import Foundation
20 |
21 | open class HTTPStubResponse {
| `- note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
22 |
23 | /// The HTTP status code to return with the response.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:89: warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:90:13: note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
88 |
89 | /// Simulate a connection speed.
90 | public enum HTTPConnectionSpeed {
| `- note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
91 | case speed1kbps
92 | case speedSlow
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:108: warning: capture of 'completion' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '((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'
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:176:21: warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import Foundation
20 |
21 | public class HTTPStubURLProtocol: URLProtocol {
| `- note: class 'HTTPStubURLProtocol' does not conform to the 'Sendable' protocol
22 |
23 | /// This class support only certain common type of schemes.
:
174 | // adjust slotTime proportionally to the bytes remaining
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
| `- warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
178 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:37: warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | }
179 | } else {
Foundation.InputStream:1:12: note: class 'InputStream' does not conform to the 'Sendable' protocol
1 | open class InputStream : Stream {
| `- note: class 'InputStream' does not conform to the 'Sendable' protocol
2 | open func read(_ buffer: UnsafeMutablePointer<UInt8>, maxLength len: Int) -> Int
3 | open func getBuffer(_ buffer: UnsafeMutablePointer<UnsafeMutablePointer<UInt8>?>, length len: UnsafeMutablePointer<Int>) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:80: warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | }
179 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:21:12: note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
19 | import Foundation
20 |
21 | open class HTTPStubResponse {
| `- note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
22 |
23 | /// The HTTP status code to return with the response.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:93: warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | }
179 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:90:13: note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
88 |
89 | /// Simulate a connection speed.
90 | public enum HTTPConnectionSpeed {
| `- note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
91 | case speed1kbps
92 | case speedSlow
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:112: warning: capture of 'completion' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '((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'
178 | }
179 | } else {
[8/80] Compiling RealHTTP HTTPStubURLProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:26:23: warning: static property 'shared' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Singleton instance.
26 | public static var shared = HTTPStubber()
| |- warning: static property 'shared' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' 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
27 |
28 | /// Is the stubber running and intercepting request?
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:83:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
:
81 |
82 | /// Include all the options.
83 | public static let `default`: Options = [.ignoreQueryParameters]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
84 |
85 | public init(rawValue: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:17: warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import Foundation
20 |
21 | public class HTTPStubURLProtocol: URLProtocol {
| `- note: class 'HTTPStubURLProtocol' does not conform to the 'Sendable' protocol
22 |
23 | /// This class support only certain common type of schemes.
:
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:33: warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
Foundation.InputStream:1:12: note: class 'InputStream' does not conform to the 'Sendable' protocol
1 | open class InputStream : Stream {
| `- note: class 'InputStream' does not conform to the 'Sendable' protocol
2 | open func read(_ buffer: UnsafeMutablePointer<UInt8>, maxLength len: Int) -> Int
3 | open func getBuffer(_ buffer: UnsafeMutablePointer<UnsafeMutablePointer<UInt8>?>, length len: UnsafeMutablePointer<Int>) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:76: warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:21:12: note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
19 | import Foundation
20 |
21 | open class HTTPStubResponse {
| `- note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
22 |
23 | /// The HTTP status code to return with the response.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:89: warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:90:13: note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
88 |
89 | /// Simulate a connection speed.
90 | public enum HTTPConnectionSpeed {
| `- note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
91 | case speed1kbps
92 | case speedSlow
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:108: warning: capture of 'completion' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '((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'
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:176:21: warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import Foundation
20 |
21 | public class HTTPStubURLProtocol: URLProtocol {
| `- note: class 'HTTPStubURLProtocol' does not conform to the 'Sendable' protocol
22 |
23 | /// This class support only certain common type of schemes.
:
174 | // adjust slotTime proportionally to the bytes remaining
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
| `- warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
178 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:37: warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | }
179 | } else {
Foundation.InputStream:1:12: note: class 'InputStream' does not conform to the 'Sendable' protocol
1 | open class InputStream : Stream {
| `- note: class 'InputStream' does not conform to the 'Sendable' protocol
2 | open func read(_ buffer: UnsafeMutablePointer<UInt8>, maxLength len: Int) -> Int
3 | open func getBuffer(_ buffer: UnsafeMutablePointer<UnsafeMutablePointer<UInt8>?>, length len: UnsafeMutablePointer<Int>) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:80: warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | }
179 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:21:12: note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
19 | import Foundation
20 |
21 | open class HTTPStubResponse {
| `- note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
22 |
23 | /// The HTTP status code to return with the response.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:93: warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | }
179 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:90:13: note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
88 |
89 | /// Simulate a connection speed.
90 | public enum HTTPConnectionSpeed {
| `- note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
91 | case speed1kbps
92 | case speedSlow
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:112: warning: capture of 'completion' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '((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'
178 | }
179 | } else {
[9/80] Compiling RealHTTP URLHook.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:26:23: warning: static property 'shared' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Singleton instance.
26 | public static var shared = HTTPStubber()
| |- warning: static property 'shared' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' 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
27 |
28 | /// Is the stubber running and intercepting request?
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:83:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
:
81 |
82 | /// Include all the options.
83 | public static let `default`: Options = [.ignoreQueryParameters]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
84 |
85 | public init(rawValue: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:17: warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import Foundation
20 |
21 | public class HTTPStubURLProtocol: URLProtocol {
| `- note: class 'HTTPStubURLProtocol' does not conform to the 'Sendable' protocol
22 |
23 | /// This class support only certain common type of schemes.
:
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:33: warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
Foundation.InputStream:1:12: note: class 'InputStream' does not conform to the 'Sendable' protocol
1 | open class InputStream : Stream {
| `- note: class 'InputStream' does not conform to the 'Sendable' protocol
2 | open func read(_ buffer: UnsafeMutablePointer<UInt8>, maxLength len: Int) -> Int
3 | open func getBuffer(_ buffer: UnsafeMutablePointer<UnsafeMutablePointer<UInt8>?>, length len: UnsafeMutablePointer<Int>) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:76: warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:21:12: note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
19 | import Foundation
20 |
21 | open class HTTPStubResponse {
| `- note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
22 |
23 | /// The HTTP status code to return with the response.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:89: warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:90:13: note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
88 |
89 | /// Simulate a connection speed.
90 | public enum HTTPConnectionSpeed {
| `- note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
91 | case speed1kbps
92 | case speedSlow
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:108: warning: capture of 'completion' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '((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'
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:176:21: warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import Foundation
20 |
21 | public class HTTPStubURLProtocol: URLProtocol {
| `- note: class 'HTTPStubURLProtocol' does not conform to the 'Sendable' protocol
22 |
23 | /// This class support only certain common type of schemes.
:
174 | // adjust slotTime proportionally to the bytes remaining
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
| `- warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
178 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:37: warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | }
179 | } else {
Foundation.InputStream:1:12: note: class 'InputStream' does not conform to the 'Sendable' protocol
1 | open class InputStream : Stream {
| `- note: class 'InputStream' does not conform to the 'Sendable' protocol
2 | open func read(_ buffer: UnsafeMutablePointer<UInt8>, maxLength len: Int) -> Int
3 | open func getBuffer(_ buffer: UnsafeMutablePointer<UnsafeMutablePointer<UInt8>?>, length len: UnsafeMutablePointer<Int>) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:80: warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | }
179 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:21:12: note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
19 | import Foundation
20 |
21 | open class HTTPStubResponse {
| `- note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
22 |
23 | /// The HTTP status code to return with the response.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:93: warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | }
179 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:90:13: note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
88 |
89 | /// Simulate a connection speed.
90 | public enum HTTPConnectionSpeed {
| `- note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
91 | case speed1kbps
92 | case speedSlow
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:112: warning: capture of 'completion' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '((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'
178 | }
179 | } else {
[10/80] Compiling RealHTTP URLSessionHook.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift:26:23: warning: static property 'shared' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Singleton instance.
26 | public static var shared = HTTPStubber()
| |- warning: static property 'shared' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' 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
27 |
28 | /// Is the stubber running and intercepting request?
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:83:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
:
81 |
82 | /// Include all the options.
83 | public static let `default`: Options = [.ignoreQueryParameters]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
84 |
85 | public init(rawValue: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:17: warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import Foundation
20 |
21 | public class HTTPStubURLProtocol: URLProtocol {
| `- note: class 'HTTPStubURLProtocol' does not conform to the 'Sendable' protocol
22 |
23 | /// This class support only certain common type of schemes.
:
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:33: warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
Foundation.InputStream:1:12: note: class 'InputStream' does not conform to the 'Sendable' protocol
1 | open class InputStream : Stream {
| `- note: class 'InputStream' does not conform to the 'Sendable' protocol
2 | open func read(_ buffer: UnsafeMutablePointer<UInt8>, maxLength len: Int) -> Int
3 | open func getBuffer(_ buffer: UnsafeMutablePointer<UnsafeMutablePointer<UInt8>?>, length len: UnsafeMutablePointer<Int>) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:76: warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:21:12: note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
19 | import Foundation
20 |
21 | open class HTTPStubResponse {
| `- note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
22 |
23 | /// The HTTP status code to return with the response.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:89: warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:90:13: note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
88 |
89 | /// Simulate a connection speed.
90 | public enum HTTPConnectionSpeed {
| `- note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
91 | case speed1kbps
92 | case speedSlow
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:158:108: warning: capture of 'completion' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | if chunkSizeToRead == 0 { // Nothing to read at this pass, but probably later
157 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
158 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '((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'
159 | }
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:176:21: warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import Foundation
20 |
21 | public class HTTPStubURLProtocol: URLProtocol {
| `- note: class 'HTTPStubURLProtocol' does not conform to the 'Sendable' protocol
22 |
23 | /// This class support only certain common type of schemes.
:
174 | // adjust slotTime proportionally to the bytes remaining
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
| `- warning: capture of 'self' with non-sendable type 'HTTPStubURLProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
178 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:37: warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'inputStream' with non-sendable type 'InputStream' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | }
179 | } else {
Foundation.InputStream:1:12: note: class 'InputStream' does not conform to the 'Sendable' protocol
1 | open class InputStream : Stream {
| `- note: class 'InputStream' does not conform to the 'Sendable' protocol
2 | open func read(_ buffer: UnsafeMutablePointer<UInt8>, maxLength len: Int) -> Int
3 | open func getBuffer(_ buffer: UnsafeMutablePointer<UnsafeMutablePointer<UInt8>?>, length len: UnsafeMutablePointer<Int>) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:80: warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'stub' with non-sendable type 'HTTPStubResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | }
179 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:21:12: note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
19 | import Foundation
20 |
21 | open class HTTPStubResponse {
| `- note: class 'HTTPStubResponse' does not conform to the 'Sendable' protocol
22 |
23 | /// The HTTP status code to return with the response.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:93: warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| `- warning: capture of 'speed' with non-sendable type 'HTTPConnectionSpeed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | }
179 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:90:13: note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
88 |
89 | /// Simulate a connection speed.
90 | public enum HTTPConnectionSpeed {
| `- note: consider making enum 'HTTPConnectionSpeed' conform to the 'Sendable' protocol
91 | case speed1kbps
92 | case speedSlow
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift:177:112: warning: capture of 'completion' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + timingInfo.slotTime) {
176 | self.client?.urlProtocol(self, didLoad: data)
177 | self.streamData(inputStream, forRequest: request, forStub: stub, speed: speed, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '((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'
178 | }
179 | } else {
[11/80] Compiling RealHTTP HTTPStubCustomMatcher.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:77:27: warning: static property 'ignoreQueryParameters' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
76 | /// Ignore query parameters from comparison.
77 | public static let ignoreQueryParameters = Options(rawValue: 1 << 0)
| |- warning: static property 'ignoreQueryParameters' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ignoreQueryParameters' 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
78 |
79 | /// Ignore path (route) components from comparison.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:80:27: warning: static property 'ignorePath' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
:
78 |
79 | /// Ignore path (route) components from comparison.
80 | public static let ignorePath = Options(rawValue: 1 << 1)
| |- warning: static property 'ignorePath' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ignorePath' 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
81 |
82 | /// Include all the options.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:83:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
:
81 |
82 | /// Include all the options.
83 | public static let `default`: Options = [.ignoreQueryParameters]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
84 |
85 | public init(rawValue: Int) {
[12/80] Compiling RealHTTP HTTPStubJSONMatcher.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:77:27: warning: static property 'ignoreQueryParameters' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
76 | /// Ignore query parameters from comparison.
77 | public static let ignoreQueryParameters = Options(rawValue: 1 << 0)
| |- warning: static property 'ignoreQueryParameters' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ignoreQueryParameters' 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
78 |
79 | /// Ignore path (route) components from comparison.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:80:27: warning: static property 'ignorePath' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
:
78 |
79 | /// Ignore path (route) components from comparison.
80 | public static let ignorePath = Options(rawValue: 1 << 1)
| |- warning: static property 'ignorePath' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ignorePath' 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
81 |
82 | /// Include all the options.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:83:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
:
81 |
82 | /// Include all the options.
83 | public static let `default`: Options = [.ignoreQueryParameters]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
84 |
85 | public init(rawValue: Int) {
[13/80] Compiling RealHTTP HTTPStubRegExMatcher.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:77:27: warning: static property 'ignoreQueryParameters' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
76 | /// Ignore query parameters from comparison.
77 | public static let ignoreQueryParameters = Options(rawValue: 1 << 0)
| |- warning: static property 'ignoreQueryParameters' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ignoreQueryParameters' 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
78 |
79 | /// Ignore path (route) components from comparison.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:80:27: warning: static property 'ignorePath' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
:
78 |
79 | /// Ignore path (route) components from comparison.
80 | public static let ignorePath = Options(rawValue: 1 << 1)
| |- warning: static property 'ignorePath' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ignorePath' 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
81 |
82 | /// Include all the options.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:83:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
:
81 |
82 | /// Include all the options.
83 | public static let `default`: Options = [.ignoreQueryParameters]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
84 |
85 | public init(rawValue: Int) {
[14/80] Compiling RealHTTP HTTPStubURITemplateMatcher.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:77:27: warning: static property 'ignoreQueryParameters' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
76 | /// Ignore query parameters from comparison.
77 | public static let ignoreQueryParameters = Options(rawValue: 1 << 0)
| |- warning: static property 'ignoreQueryParameters' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ignoreQueryParameters' 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
78 |
79 | /// Ignore path (route) components from comparison.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:80:27: warning: static property 'ignorePath' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
:
78 |
79 | /// Ignore path (route) components from comparison.
80 | public static let ignorePath = Options(rawValue: 1 << 1)
| |- warning: static property 'ignorePath' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ignorePath' 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
81 |
82 | /// Include all the options.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:83:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
:
81 |
82 | /// Include all the options.
83 | public static let `default`: Options = [.ignoreQueryParameters]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
84 |
85 | public init(rawValue: Int) {
[15/80] Compiling RealHTTP HTTPStubURLMatcher.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:77:27: warning: static property 'ignoreQueryParameters' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
76 | /// Ignore query parameters from comparison.
77 | public static let ignoreQueryParameters = Options(rawValue: 1 << 0)
| |- warning: static property 'ignoreQueryParameters' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ignoreQueryParameters' 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
78 |
79 | /// Ignore path (route) components from comparison.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:80:27: warning: static property 'ignorePath' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
:
78 |
79 | /// Ignore path (route) components from comparison.
80 | public static let ignorePath = Options(rawValue: 1 << 1)
| |- warning: static property 'ignorePath' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ignorePath' 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
81 |
82 | /// Include all the options.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:83:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
:
81 |
82 | /// Include all the options.
83 | public static let `default`: Options = [.ignoreQueryParameters]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
84 |
85 | public init(rawValue: Int) {
[16/80] Compiling RealHTTP HTTPStubMatcher.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:77:27: warning: static property 'ignoreQueryParameters' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
76 | /// Ignore query parameters from comparison.
77 | public static let ignoreQueryParameters = Options(rawValue: 1 << 0)
| |- warning: static property 'ignoreQueryParameters' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ignoreQueryParameters' 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
78 |
79 | /// Ignore path (route) components from comparison.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:80:27: warning: static property 'ignorePath' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
:
78 |
79 | /// Ignore path (route) components from comparison.
80 | public static let ignorePath = Options(rawValue: 1 << 1)
| |- warning: static property 'ignorePath' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ignorePath' 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
81 |
82 | /// Include all the options.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:83:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
:
81 |
82 | /// Include all the options.
83 | public static let `default`: Options = [.ignoreQueryParameters]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
84 |
85 | public init(rawValue: Int) {
[17/80] Compiling RealHTTP HTTPDynamicStubResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:77:27: warning: static property 'ignoreQueryParameters' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
76 | /// Ignore query parameters from comparison.
77 | public static let ignoreQueryParameters = Options(rawValue: 1 << 0)
| |- warning: static property 'ignoreQueryParameters' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ignoreQueryParameters' 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
78 |
79 | /// Ignore path (route) components from comparison.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:80:27: warning: static property 'ignorePath' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
:
78 |
79 | /// Ignore path (route) components from comparison.
80 | public static let ignorePath = Options(rawValue: 1 << 1)
| |- warning: static property 'ignorePath' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ignorePath' 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
81 |
82 | /// Include all the options.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:83:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | /// Defines the options for url matching.
73 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
74 | public let rawValue: Int
75 |
:
81 |
82 | /// Include all the options.
83 | public static let `default`: Options = [.ignoreQueryParameters]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPStubURLMatcher.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
84 |
85 | public init(rawValue: Int) {
error: compile command failed due to signal 6 (use -v to see invocation)
Assertion failed: (otherCtor->isFailable() || otherCtor->hasThrows()), function visitRebindSelfInConstructorExpr, file SILGenExpr.cpp, line 4802.
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0. Program arguments: /Library/Developer/Toolchains/swift-6.0-DEVELOPMENT-SNAPSHOT-2024-05-26-a.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest+Combine.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/HTTPBody.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/HTTPSerializableBody.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/JSON/HTTPBody+JSON.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/JSON/JSONEncodable.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/JSON/JSONSerializable.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Multipart/HTTPBody+FormValues.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Multipart/HTTPBody+Multipart.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Multipart/Support/MultipartForm+Boundary.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Multipart/Support/MultipartForm+Item.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Multipart/Support/MultipartForm.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Stream/HTTPBody+Stream.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Stream/StreamContent.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/URLParametersData/HTTPBody+QueryString.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/URLParametersData/URLParametersData.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPResponseTransform/HTTPResponseTransform.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPResponseValidator/HTTPAltRequestValidator.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPResponseValidator/HTTPDefaultValidator.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPResponseValidator/HTTPValidator.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/HTTPSecurity.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/HTTPSecurityService.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/SSLCertificate.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift -primary-file "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/HTTPFormattable.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPCacheControl.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPContentType.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPError.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPRequestPriority.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPScheme.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPVersion.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaderElement+Name.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders+Element.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/MIMEType.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetricsRender.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/URITemplate.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift" /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/RealHTTP.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURITemplateMatcher.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest+Matchers.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest+Stub.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPEchoResponse.swift" "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift" /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Support/Foundation+Stubber.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Support/HTTPStub+Extension.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Support/HTTPStubDataConvertible.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubber.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/HTTPStubberErrors.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubHookProtocol.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/HTTPStubURLProtocol.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLHook.swift /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Stubber/Hooks/URLSessionHook.swift -supplementary-output-file-map /var/folders/fs/0w3t9t1d28xc3bj0tgb8hcrw0000gn/T/TemporaryDirectory.8IrlqD/supplementaryOutputs-4 -target arm64-apple-macosx10.15 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk -I /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/Modules -I /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/ModuleCache -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -stats-output-dir .stats -strict-concurrency=complete -empty-abi-descriptor -resource-dir /Library/Developer/Toolchains/swift-6.0-DEVELOPMENT-SNAPSHOT-2024-05-26-a.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace -Xcc -isysroot -Xcc /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk -Xcc -F -Xcc /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -Xcc -fPIC -Xcc -g -module-name RealHTTP -plugin-path /Library/Developer/Toolchains/swift-6.0-DEVELOPMENT-SNAPSHOT-2024-05-26-a.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Library/Developer/Toolchains/swift-6.0-DEVELOPMENT-SNAPSHOT-2024-05-26-a.xctoolchain/usr/local/lib/swift/host/plugins -target-sdk-version 14.4 -target-sdk-name macosx14.4 -external-plugin-path /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins#/Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/lib/swift/host/plugins#/Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/RealHTTP.build/HTTPValidator.swift.o -o /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/RealHTTP.build/HTTPSecurity.swift.o -o /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/RealHTTP.build/HTTPSecurityService.swift.o -o /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/RealHTTP.build/CertificatesSecurity.swift.o -o /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/RealHTTP.build/SSLCertificate.swift.o -o /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/RealHTTP.build/CredentialSecurity.swift.o -o /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/RealHTTP.build/SelfSignedCertsSecurity.swift.o -o /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/RealHTTP.build/Foundation+Extension.swift.o -index-store-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/index/store -index-system-modules
1. Apple Swift version 6.0-dev (LLVM 4b0b1f9e1a69523, Swift 91a3abcf816bc36)
2. Compiling with effective version 5.10
3. While evaluating request ASTLoweringRequest(Lowering AST to SIL for file "/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/SSLCertificate.swift")
4. While silgen emitValueConstructor SIL function "@$s8RealHTTP14SSLCertificateC7fileURLACSg10Foundation0E0V_tcfC".
for 'init(fileURL:)' (at /Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/SSLCertificate.swift:51:24)
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 swift-frontend 0x000000010a4a3bf0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1 swift-frontend 0x000000010a4a23bc llvm::sys::RunSignalHandlers() + 112
2 swift-frontend 0x000000010a4a4238 SignalHandler(int) + 304
3 libsystem_platform.dylib 0x00000001870b1a24 _sigtramp + 56
4 libsystem_pthread.dylib 0x0000000187081cc0 pthread_kill + 288
5 libsystem_c.dylib 0x0000000186f8da40 abort + 180
6 libsystem_c.dylib 0x0000000186f8cd30 err + 0
7 swift-frontend 0x000000010a5bea14 (anonymous namespace)::RValueEmitter::visitRebindSelfInConstructorExpr(swift::RebindSelfInConstructorExpr*, swift::Lowering::SGFContext) (.cold.13) + 0
8 swift-frontend 0x00000001056aa17c (anonymous namespace)::RValueEmitter::visitRebindSelfInConstructorExpr(swift::RebindSelfInConstructorExpr*, swift::Lowering::SGFContext) + 2368
9 swift-frontend 0x000000010569af88 swift::Lowering::SILGenFunction::emitIgnoredExpr(swift::Expr*) + 912
10 swift-frontend 0x000000010572e324 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) + 4340
11 swift-frontend 0x000000010572d224 swift::Lowering::SILGenFunction::emitStmt(swift::Stmt*) + 24
12 swift-frontend 0x00000001056771e0 swift::Lowering::SILGenFunction::emitValueConstructor(swift::ConstructorDecl*) + 7312
13 swift-frontend 0x000000010562f118 swift::Lowering::SILGenModule::emitFunctionDefinition(swift::SILDeclRef, swift::SILFunction*) + 5636
14 swift-frontend 0x000000010563025c swift::Lowering::SILGenModule::emitOrDelayFunction(swift::SILDeclRef) + 252
15 swift-frontend 0x00000001056310d4 swift::Lowering::SILGenModule::emitConstructor(swift::ConstructorDecl*) + 388
16 swift-frontend 0x000000010573eec4 (anonymous namespace)::SILGenType::emitType() + 336
17 swift-frontend 0x000000010573ed68 swift::Lowering::SILGenModule::visitNominalTypeDecl(swift::NominalTypeDecl*) + 24
18 swift-frontend 0x0000000105632b74 swift::ASTLoweringRequest::evaluate(swift::Evaluator&, swift::ASTLoweringDescriptor) const + 880
19 swift-frontend 0x000000010572cc7c swift::SimpleRequest<swift::ASTLoweringRequest, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>> (swift::ASTLoweringDescriptor), (swift::RequestFlags)9>::evaluateRequest(swift::ASTLoweringRequest const&, swift::Evaluator&) + 148
20 swift-frontend 0x0000000105638468 swift::ASTLoweringRequest::OutputType swift::Evaluator::getResultUncached<swift::ASTLoweringRequest, swift::ASTLoweringRequest::OutputType swift::evaluateOrFatal<swift::ASTLoweringRequest>(swift::Evaluator&, swift::ASTLoweringRequest)::'lambda'()>(swift::ASTLoweringRequest const&, swift::ASTLoweringRequest::OutputType swift::evaluateOrFatal<swift::ASTLoweringRequest>(swift::Evaluator&, swift::ASTLoweringRequest)::'lambda'()) + 340
21 swift-frontend 0x0000000105633478 swift::performASTLowering(swift::FileUnit&, swift::Lowering::TypeConverter&, swift::SILOptions const&, swift::IRGenOptions const*) + 96
22 swift-frontend 0x000000010501cf00 swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 604
23 swift-frontend 0x000000010502e248 withSemanticAnalysis(swift::CompilerInstance&, swift::FrontendObserver*, llvm::function_ref<bool (swift::CompilerInstance&)>, bool) + 160
24 swift-frontend 0x000000010501f590 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 708
25 swift-frontend 0x000000010501e4fc swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2388
26 swift-frontend 0x0000000104e383b0 swift::mainEntry(int, char const**) + 3096
27 dyld 0x0000000186d010e0 start + 2360
BUILD FAILURE 6.0 macosSpm