The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build HTTPMock, reference 0.9.3 (526655), with Swift 6.0 for Linux on 2 Nov 2024 00:16:47 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

15 |         return predicate.evaluate(request)
16 |     }
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:64:29: error: incorrect argument label in call (have 'for:assetProvider:', expected 'for:assetBuilder:')
62 |     func registerEntry(for predicate: HTTPRequestPredicate,
63 |                        assetBuilder: HTTPResponseAssetBuilder) -> StubEntry {
64 |         return registerEntry(for: predicate, assetProvider: { _ in assetBuilder.asset })
   |                             `- error: incorrect argument label in call (have 'for:assetProvider:', expected 'for:assetBuilder:')
65 |     }
66 | }
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:64:61: error: closure passed to parameter of type 'HTTPResponseAssetBuilder' that does not accept a closure
60 | public extension StubRegistry {
61 |     @discardableResult
62 |     func registerEntry(for predicate: HTTPRequestPredicate,
   |          `- note: 'registerEntry(for:assetBuilder:)' declared here
63 |                        assetBuilder: HTTPResponseAssetBuilder) -> StubEntry {
64 |         return registerEntry(for: predicate, assetProvider: { _ in assetBuilder.asset })
   |                                                             `- error: closure passed to parameter of type 'HTTPResponseAssetBuilder' that does not accept a closure
65 |     }
66 | }
[6/16] Compiling HTTPMock InputStreamGenerator.swift
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:6:33: error: cannot find type 'URLRequest' in scope
 4 |     public let id: String = UUID().uuidString
 5 |     public let predicate: HTTPRequestPredicate
 6 |     private let assetProvider: (URLRequest) -> HTTPResponseAsset
   |                                 `- error: cannot find type 'URLRequest' in scope
 7 |
 8 |     public init(predicate: HTTPRequestPredicate,
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:9:43: error: cannot find type 'URLRequest' in scope
 7 |
 8 |     public init(predicate: HTTPRequestPredicate,
 9 |                 assetProvider: @escaping (URLRequest) -> HTTPResponseAsset) {
   |                                           `- error: cannot find type 'URLRequest' in scope
10 |         self.predicate = predicate
11 |         self.assetProvider = assetProvider
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:14:38: error: cannot find type 'URLRequest' in scope
12 |     }
13 |
14 |     public func responds(to request: URLRequest) -> Bool {
   |                                      `- error: cannot find type 'URLRequest' in scope
15 |         return predicate.evaluate(request)
16 |     }
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:18:44: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func responseAsset(for request: URLRequest) -> HTTPResponseAsset {
   |                                            `- error: cannot find type 'URLRequest' in scope
19 |         var result = assetProvider(request)
20 |         if result.bodyStreamGenerator != nil && result.headerFields[HTTPHeaderName.eTag] == nil {
/host/spi-builder-workspace/Sources/HTTPMock/HTTPRequestPredicate.swift:5:27: error: cannot find type 'URLRequest' in scope
  3 | public struct HTTPRequestPredicate: CustomStringConvertible {
  4 |     public let description: String
  5 |     public let evaluate: (URLRequest) -> Bool
    |                           `- error: cannot find type 'URLRequest' in scope
  6 | }
  7 |
[7/16] Compiling HTTPMock StubEntry.swift
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:6:33: error: cannot find type 'URLRequest' in scope
 4 |     public let id: String = UUID().uuidString
 5 |     public let predicate: HTTPRequestPredicate
 6 |     private let assetProvider: (URLRequest) -> HTTPResponseAsset
   |                                 `- error: cannot find type 'URLRequest' in scope
 7 |
 8 |     public init(predicate: HTTPRequestPredicate,
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:9:43: error: cannot find type 'URLRequest' in scope
 7 |
 8 |     public init(predicate: HTTPRequestPredicate,
 9 |                 assetProvider: @escaping (URLRequest) -> HTTPResponseAsset) {
   |                                           `- error: cannot find type 'URLRequest' in scope
10 |         self.predicate = predicate
11 |         self.assetProvider = assetProvider
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:14:38: error: cannot find type 'URLRequest' in scope
12 |     }
13 |
14 |     public func responds(to request: URLRequest) -> Bool {
   |                                      `- error: cannot find type 'URLRequest' in scope
15 |         return predicate.evaluate(request)
16 |     }
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:18:44: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func responseAsset(for request: URLRequest) -> HTTPResponseAsset {
   |                                            `- error: cannot find type 'URLRequest' in scope
19 |         var result = assetProvider(request)
20 |         if result.bodyStreamGenerator != nil && result.headerFields[HTTPHeaderName.eTag] == nil {
/host/spi-builder-workspace/Sources/HTTPMock/HTTPRequestPredicate.swift:5:27: error: cannot find type 'URLRequest' in scope
  3 | public struct HTTPRequestPredicate: CustomStringConvertible {
  4 |     public let description: String
  5 |     public let evaluate: (URLRequest) -> Bool
    |                           `- error: cannot find type 'URLRequest' in scope
  6 | }
  7 |
[8/16] Compiling HTTPMock URLProtocolService.swift
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:32:48: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     }
 31 |
 32 |     static func registerStub(in configuration: URLSessionConfiguration) {
    |                                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |         let classes = configuration.protocolClasses ?? []
 34 |         if !classes.contains(where: { $0 == URLProtocolStub.self }) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:39:52: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     }
 38 |
 39 |     static func unregisterStub(from configuration: URLSessionConfiguration) {
    |                                                    `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         guard var classes = configuration.protocolClasses else { return }
 41 |         classes.removeAll(where: { $0 == URLProtocolStub.self })
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:63:24: warning: static property 'defaultMethodItem' is not concurrency-safe because non-'Sendable' type 'URLSessionConfigurationSwizzler.MethodItem' may have shared mutable state; this is an error in the Swift 6 language mode
 61 |     }
 62 |
 63 |     private static let defaultMethodItem: MethodItem = {
    |                        |- warning: static property 'defaultMethodItem' is not concurrency-safe because non-'Sendable' type 'URLSessionConfigurationSwizzler.MethodItem' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'defaultMethodItem' 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
 64 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.default))
 65 |     }()
    :
 81 |
 82 | extension URLSessionConfigurationSwizzler {
 83 |     private class MethodItem: NSObject {
    |                   `- note: class 'MethodItem' does not conform to the 'Sendable' protocol
 84 |         private typealias CreationFunction = @convention(c)
 85 |             (AnyClass, Selector) -> URLSessionConfiguration
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:64:37: error: '#selector' can only be used with the Objective-C runtime
 62 |
 63 |     private static let defaultMethodItem: MethodItem = {
 64 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.default))
    |                                     `- error: '#selector' can only be used with the Objective-C runtime
 65 |     }()
 66 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:64:37: error: '#selector' can only be used with the Objective-C runtime
 62 |
 63 |     private static let defaultMethodItem: MethodItem = {
 64 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.default))
    |                                     `- error: '#selector' can only be used with the Objective-C runtime
 65 |     }()
 66 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:63:56: error: type of expression is ambiguous without a type annotation
 61 |     }
 62 |
 63 |     private static let defaultMethodItem: MethodItem = {
    |                                                        `- error: type of expression is ambiguous without a type annotation
 64 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.default))
 65 |     }()
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:67:24: warning: static property 'ephemeralMethodItem' is not concurrency-safe because non-'Sendable' type 'URLSessionConfigurationSwizzler.MethodItem' may have shared mutable state; this is an error in the Swift 6 language mode
 65 |     }()
 66 |
 67 |     private static let ephemeralMethodItem: MethodItem = {
    |                        |- warning: static property 'ephemeralMethodItem' is not concurrency-safe because non-'Sendable' type 'URLSessionConfigurationSwizzler.MethodItem' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'ephemeralMethodItem' 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
 68 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.ephemeral))
 69 |     }()
    :
 81 |
 82 | extension URLSessionConfigurationSwizzler {
 83 |     private class MethodItem: NSObject {
    |                   `- note: class 'MethodItem' does not conform to the 'Sendable' protocol
 84 |         private typealias CreationFunction = @convention(c)
 85 |             (AnyClass, Selector) -> URLSessionConfiguration
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:68:37: error: '#selector' can only be used with the Objective-C runtime
 66 |
 67 |     private static let ephemeralMethodItem: MethodItem = {
 68 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.ephemeral))
    |                                     `- error: '#selector' can only be used with the Objective-C runtime
 69 |     }()
 70 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:68:37: error: '#selector' can only be used with the Objective-C runtime
 66 |
 67 |     private static let ephemeralMethodItem: MethodItem = {
 68 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.ephemeral))
    |                                     `- error: '#selector' can only be used with the Objective-C runtime
 69 |     }()
 70 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:67:58: error: type of expression is ambiguous without a type annotation
 65 |     }()
 66 |
 67 |     private static let ephemeralMethodItem: MethodItem = {
    |                                                          `- error: type of expression is ambiguous without a type annotation
 68 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.ephemeral))
 69 |     }()
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:71:6: error: Objective-C interoperability is disabled
 69 |     }()
 70 |
 71 |     @objc(defaultSessionConfiguration)
    |      `- error: Objective-C interoperability is disabled
 72 |     private class var `default`: URLSessionConfiguration {
 73 |         return defaultMethodItem.makeStubRegisteredConfiguration()
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:72:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |
 71 |     @objc(defaultSessionConfiguration)
 72 |     private class var `default`: URLSessionConfiguration {
    |                                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |         return defaultMethodItem.makeStubRegisteredConfiguration()
 74 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:76:6: error: Objective-C interoperability is disabled
 74 |     }
 75 |
 76 |     @objc(ephemeralSessionConfiguration)
    |      `- error: Objective-C interoperability is disabled
 77 |     private class var ephemeral: URLSessionConfiguration {
 78 |         return ephemeralMethodItem.makeStubRegisteredConfiguration()
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:77:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |
 76 |     @objc(ephemeralSessionConfiguration)
 77 |     private class var ephemeral: URLSessionConfiguration {
    |                                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |         return ephemeralMethodItem.makeStubRegisteredConfiguration()
 79 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:100:24: error: cannot find type 'Selector' in scope
 98 |         }
 99 |
100 |         init(selector: Selector) {
    |                        `- error: cannot find type 'Selector' in scope
101 |             let originalClass = URLSessionConfiguration.self
102 |             let swizzlerClass = URLSessionConfigurationSwizzler.self
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:85:24: error: cannot find type 'Selector' in scope
 83 |     private class MethodItem: NSObject {
 84 |         private typealias CreationFunction = @convention(c)
 85 |             (AnyClass, Selector) -> URLSessionConfiguration
    |                        `- error: cannot find type 'Selector' in scope
 86 |
 87 |         private let selector: Selector
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:87:31: error: cannot find type 'Selector' in scope
 85 |             (AnyClass, Selector) -> URLSessionConfiguration
 86 |
 87 |         private let selector: Selector
    |                               `- error: cannot find type 'Selector' in scope
 88 |         private let originalMethod: Method
 89 |         private let originalImplementation: IMP
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:88:37: error: cannot find type 'Method' in scope
 86 |
 87 |         private let selector: Selector
 88 |         private let originalMethod: Method
    |                                     `- error: cannot find type 'Method' in scope
 89 |         private let originalImplementation: IMP
 90 |         private let swizzlerImplementation: IMP
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:89:45: error: cannot find type 'IMP' in scope
 87 |         private let selector: Selector
 88 |         private let originalMethod: Method
 89 |         private let originalImplementation: IMP
    |                                             `- error: cannot find type 'IMP' in scope
 90 |         private let swizzlerImplementation: IMP
 91 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:90:45: error: cannot find type 'IMP' in scope
 88 |         private let originalMethod: Method
 89 |         private let originalImplementation: IMP
 90 |         private let swizzlerImplementation: IMP
    |                                             `- error: cannot find type 'IMP' in scope
 91 |
 92 |         var isSwizzled: Bool = false {
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:96:17: error: cannot find 'method_setImplementation' in scope
 94 |                 if isSwizzled == oldValue { return }
 95 |                 let implementation = isSwizzled ? swizzlerImplementation : originalImplementation
 96 |                 method_setImplementation(originalMethod, implementation)
    |                 `- error: cannot find 'method_setImplementation' in scope
 97 |             }
 98 |         }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:116:51: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |         }
115 |
116 |         func makeStubRegisteredConfiguration() -> URLSessionConfiguration {
    |                                                   `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 |             let result = makeOriginalConfiguration()
118 |             URLProtocolService.registerStub(in: result)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:122:53: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |         }
121 |
122 |         private func makeOriginalConfiguration() -> URLSessionConfiguration {
    |                                                     `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |             return originalFunction(URLSessionConfiguration.self, selector)
124 |         }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:7:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
  5 | public extension URLProtocolService {
  6 |     static func registerStubInSharedSession() {
  7 |         URLProtocol.registerClass(URLProtocolStub.self)
    |                     `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
  8 |     }
  9 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:11:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'unregisterClass'
  9 |
 10 |     static func unregisterStubFromSharedSession() {
 11 |         URLProtocol.unregisterClass(URLProtocolStub.self)
    |                     `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'unregisterClass'
 12 |     }
 13 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:33:37: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
 31 |
 32 |     static func registerStub(in configuration: URLSessionConfiguration) {
 33 |         let classes = configuration.protocolClasses ?? []
    |                                     `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
 34 |         if !classes.contains(where: { $0 == URLProtocolStub.self }) {
 35 |             configuration.protocolClasses = [URLProtocolStub.self] + classes
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:35:27: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
 33 |         let classes = configuration.protocolClasses ?? []
 34 |         if !classes.contains(where: { $0 == URLProtocolStub.self }) {
 35 |             configuration.protocolClasses = [URLProtocolStub.self] + classes
    |                           `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
 36 |         }
 37 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:40:43: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
 38 |
 39 |     static func unregisterStub(from configuration: URLSessionConfiguration) {
 40 |         guard var classes = configuration.protocolClasses else { return }
    |                                           `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
 41 |         classes.removeAll(where: { $0 == URLProtocolStub.self })
 42 |         configuration.protocolClasses = classes
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:42:23: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
 40 |         guard var classes = configuration.protocolClasses else { return }
 41 |         classes.removeAll(where: { $0 == URLProtocolStub.self })
 42 |         configuration.protocolClasses = classes
    |                       `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
 43 |     }
 44 | }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:101:17: warning: constant 'originalClass' inferred to have type '(any URLSessionConfiguration).Type' (aka '(any AnyObject).Type'), which may be unexpected
 99 |
100 |         init(selector: Selector) {
101 |             let originalClass = URLSessionConfiguration.self
    |                 |- warning: constant 'originalClass' inferred to have type '(any URLSessionConfiguration).Type' (aka '(any AnyObject).Type'), which may be unexpected
    |                 `- note: add an explicit type annotation to silence this warning
102 |             let swizzlerClass = URLSessionConfigurationSwizzler.self
103 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:101:33: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 |
100 |         init(selector: Selector) {
101 |             let originalClass = URLSessionConfiguration.self
    |                                 `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 |             let swizzlerClass = URLSessionConfigurationSwizzler.self
103 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:104:40: error: cannot find 'class_getClassMethod' in scope
102 |             let swizzlerClass = URLSessionConfigurationSwizzler.self
103 |
104 |             guard let originalMethod = class_getClassMethod(originalClass, selector),
    |                                        `- error: cannot find 'class_getClassMethod' in scope
105 |                 let swizzlerMethod = class_getClassMethod(swizzlerClass, selector)
106 |                 else { fatalError("Failed to get class method \(selector)") }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:105:38: error: cannot find 'class_getClassMethod' in scope
103 |
104 |             guard let originalMethod = class_getClassMethod(originalClass, selector),
105 |                 let swizzlerMethod = class_getClassMethod(swizzlerClass, selector)
    |                                      `- error: cannot find 'class_getClassMethod' in scope
106 |                 else { fatalError("Failed to get class method \(selector)") }
107 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:110:43: error: cannot find 'method_getImplementation' in scope
108 |             self.selector = selector
109 |             self.originalMethod = originalMethod
110 |             self.originalImplementation = method_getImplementation(originalMethod)
    |                                           `- error: cannot find 'method_getImplementation' in scope
111 |             self.swizzlerImplementation = method_getImplementation(swizzlerMethod)
112 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:111:43: error: cannot find 'method_getImplementation' in scope
109 |             self.originalMethod = originalMethod
110 |             self.originalImplementation = method_getImplementation(originalMethod)
111 |             self.swizzlerImplementation = method_getImplementation(swizzlerMethod)
    |                                           `- error: cannot find 'method_getImplementation' in scope
112 |
113 |             super.init()
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/16] Emitting module HTTPMock
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:31:16: warning: static property 'javascript' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
29 |
30 | public extension HTTPMediaType {
31 |     static let javascript: HTTPMediaType = "application/javascript"
   |                |- warning: static property 'javascript' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'javascript' 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 |     static let json: HTTPMediaType = "application/json"
33 |     static let urlEncodedForm: HTTPMediaType = "application/x-www-form-urlencoded"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:32:16: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
30 | public extension HTTPMediaType {
31 |     static let javascript: HTTPMediaType = "application/javascript"
32 |     static let json: HTTPMediaType = "application/json"
   |                |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'json' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |     static let urlEncodedForm: HTTPMediaType = "application/x-www-form-urlencoded"
34 |     static let xml: HTTPMediaType = "application/xml"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:33:16: warning: static property 'urlEncodedForm' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
31 |     static let javascript: HTTPMediaType = "application/javascript"
32 |     static let json: HTTPMediaType = "application/json"
33 |     static let urlEncodedForm: HTTPMediaType = "application/x-www-form-urlencoded"
   |                |- warning: static property 'urlEncodedForm' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'urlEncodedForm' 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 |     static let xml: HTTPMediaType = "application/xml"
35 |     static let zip: HTTPMediaType = "application/zip"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:34:16: warning: static property 'xml' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
32 |     static let json: HTTPMediaType = "application/json"
33 |     static let urlEncodedForm: HTTPMediaType = "application/x-www-form-urlencoded"
34 |     static let xml: HTTPMediaType = "application/xml"
   |                |- warning: static property 'xml' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'xml' 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
35 |     static let zip: HTTPMediaType = "application/zip"
36 |     static let gzip: HTTPMediaType = "application/x-gzip"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:35:16: warning: static property 'zip' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
33 |     static let urlEncodedForm: HTTPMediaType = "application/x-www-form-urlencoded"
34 |     static let xml: HTTPMediaType = "application/xml"
35 |     static let zip: HTTPMediaType = "application/zip"
   |                |- warning: static property 'zip' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'zip' 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
36 |     static let gzip: HTTPMediaType = "application/x-gzip"
37 |     static let tar: HTTPMediaType = "application/x-tar"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:36:16: warning: static property 'gzip' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
34 |     static let xml: HTTPMediaType = "application/xml"
35 |     static let zip: HTTPMediaType = "application/zip"
36 |     static let gzip: HTTPMediaType = "application/x-gzip"
   |                |- warning: static property 'gzip' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'gzip' 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
37 |     static let tar: HTTPMediaType = "application/x-tar"
38 |     static let pdf: HTTPMediaType = "application/pdf"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:37:16: warning: static property 'tar' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
35 |     static let zip: HTTPMediaType = "application/zip"
36 |     static let gzip: HTTPMediaType = "application/x-gzip"
37 |     static let tar: HTTPMediaType = "application/x-tar"
   |                |- warning: static property 'tar' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'tar' 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 |     static let pdf: HTTPMediaType = "application/pdf"
39 |     static let binary: HTTPMediaType = "application/octet-stream"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:38:16: warning: static property 'pdf' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
36 |     static let gzip: HTTPMediaType = "application/x-gzip"
37 |     static let tar: HTTPMediaType = "application/x-tar"
38 |     static let pdf: HTTPMediaType = "application/pdf"
   |                |- warning: static property 'pdf' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'pdf' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |     static let binary: HTTPMediaType = "application/octet-stream"
40 |     static let mp3: HTTPMediaType = "audio/mpeg"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:39:16: warning: static property 'binary' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
37 |     static let tar: HTTPMediaType = "application/x-tar"
38 |     static let pdf: HTTPMediaType = "application/pdf"
39 |     static let binary: HTTPMediaType = "application/octet-stream"
   |                |- warning: static property 'binary' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'binary' 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
40 |     static let mp3: HTTPMediaType = "audio/mpeg"
41 |     static let ogg: HTTPMediaType = "audio/ogg"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:40:16: warning: static property 'mp3' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
38 |     static let pdf: HTTPMediaType = "application/pdf"
39 |     static let binary: HTTPMediaType = "application/octet-stream"
40 |     static let mp3: HTTPMediaType = "audio/mpeg"
   |                |- warning: static property 'mp3' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'mp3' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 |     static let ogg: HTTPMediaType = "audio/ogg"
42 |     static let avi: HTTPMediaType = "video/avi"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:41:16: warning: static property 'ogg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
39 |     static let binary: HTTPMediaType = "application/octet-stream"
40 |     static let mp3: HTTPMediaType = "audio/mpeg"
41 |     static let ogg: HTTPMediaType = "audio/ogg"
   |                |- warning: static property 'ogg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'ogg' 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
42 |     static let avi: HTTPMediaType = "video/avi"
43 |     static let mpeg: HTTPMediaType = "video/mpeg"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:42:16: warning: static property 'avi' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
40 |     static let mp3: HTTPMediaType = "audio/mpeg"
41 |     static let ogg: HTTPMediaType = "audio/ogg"
42 |     static let avi: HTTPMediaType = "video/avi"
   |                |- warning: static property 'avi' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'avi' 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 |     static let mpeg: HTTPMediaType = "video/mpeg"
44 |     static let mp4: HTTPMediaType = "video/mp4"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:43:16: warning: static property 'mpeg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
41 |     static let ogg: HTTPMediaType = "audio/ogg"
42 |     static let avi: HTTPMediaType = "video/avi"
43 |     static let mpeg: HTTPMediaType = "video/mpeg"
   |                |- warning: static property 'mpeg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'mpeg' 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 |     static let mp4: HTTPMediaType = "video/mp4"
45 |     static let quicktime: HTTPMediaType = "video/quicktime"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:44:16: warning: static property 'mp4' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
42 |     static let avi: HTTPMediaType = "video/avi"
43 |     static let mpeg: HTTPMediaType = "video/mpeg"
44 |     static let mp4: HTTPMediaType = "video/mp4"
   |                |- warning: static property 'mp4' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'mp4' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |     static let quicktime: HTTPMediaType = "video/quicktime"
46 |     static let png: HTTPMediaType = "image/png"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:45:16: warning: static property 'quicktime' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
43 |     static let mpeg: HTTPMediaType = "video/mpeg"
44 |     static let mp4: HTTPMediaType = "video/mp4"
45 |     static let quicktime: HTTPMediaType = "video/quicktime"
   |                |- warning: static property 'quicktime' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'quicktime' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 |     static let png: HTTPMediaType = "image/png"
47 |     static let jpeg: HTTPMediaType = "image/jpeg"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:46:16: warning: static property 'png' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
44 |     static let mp4: HTTPMediaType = "video/mp4"
45 |     static let quicktime: HTTPMediaType = "video/quicktime"
46 |     static let png: HTTPMediaType = "image/png"
   |                |- warning: static property 'png' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'png' 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 |     static let jpeg: HTTPMediaType = "image/jpeg"
48 |     static let gif: HTTPMediaType = "image/gif"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:47:16: warning: static property 'jpeg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
45 |     static let quicktime: HTTPMediaType = "video/quicktime"
46 |     static let png: HTTPMediaType = "image/png"
47 |     static let jpeg: HTTPMediaType = "image/jpeg"
   |                |- warning: static property 'jpeg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'jpeg' 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 |     static let gif: HTTPMediaType = "image/gif"
49 |     static let tiff: HTTPMediaType = "image/tiff"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:48:16: warning: static property 'gif' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
46 |     static let png: HTTPMediaType = "image/png"
47 |     static let jpeg: HTTPMediaType = "image/jpeg"
48 |     static let gif: HTTPMediaType = "image/gif"
   |                |- warning: static property 'gif' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'gif' 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 |     static let tiff: HTTPMediaType = "image/tiff"
50 |     static let svg: HTTPMediaType = "image/svg+xml"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:49:16: warning: static property 'tiff' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
47 |     static let jpeg: HTTPMediaType = "image/jpeg"
48 |     static let gif: HTTPMediaType = "image/gif"
49 |     static let tiff: HTTPMediaType = "image/tiff"
   |                |- warning: static property 'tiff' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'tiff' 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 |     static let svg: HTTPMediaType = "image/svg+xml"
51 |     static let plainText: HTTPMediaType = "text/plain"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:50:16: warning: static property 'svg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
48 |     static let gif: HTTPMediaType = "image/gif"
49 |     static let tiff: HTTPMediaType = "image/tiff"
50 |     static let svg: HTTPMediaType = "image/svg+xml"
   |                |- warning: static property 'svg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'svg' 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 |     static let plainText: HTTPMediaType = "text/plain"
52 |     static let css: HTTPMediaType = "text/css"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:51:16: warning: static property 'plainText' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
49 |     static let tiff: HTTPMediaType = "image/tiff"
50 |     static let svg: HTTPMediaType = "image/svg+xml"
51 |     static let plainText: HTTPMediaType = "text/plain"
   |                |- warning: static property 'plainText' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'plainText' 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 |     static let css: HTTPMediaType = "text/css"
53 |     static let html: HTTPMediaType = "text/html"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:52:16: warning: static property 'css' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
50 |     static let svg: HTTPMediaType = "image/svg+xml"
51 |     static let plainText: HTTPMediaType = "text/plain"
52 |     static let css: HTTPMediaType = "text/css"
   |                |- warning: static property 'css' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'css' 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 |     static let html: HTTPMediaType = "text/html"
54 |     static let csv: HTTPMediaType = "text/csv"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:53:16: warning: static property 'html' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
51 |     static let plainText: HTTPMediaType = "text/plain"
52 |     static let css: HTTPMediaType = "text/css"
53 |     static let html: HTTPMediaType = "text/html"
   |                |- warning: static property 'html' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'html' 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 |     static let csv: HTTPMediaType = "text/csv"
55 | }
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:54:16: warning: static property 'csv' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
52 |     static let css: HTTPMediaType = "text/css"
53 |     static let html: HTTPMediaType = "text/html"
54 |     static let csv: HTTPMediaType = "text/csv"
   |                |- warning: static property 'csv' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'csv' 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 |
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:58:24: warning: static property 'mediaTypesByFileExtension' is not concurrency-safe because non-'Sendable' type '[String : HTTPMediaType]' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
56 |
57 | extension HTTPMediaType {
58 |     private static let mediaTypesByFileExtension: [String: HTTPMediaType] = [
   |                        |- warning: static property 'mediaTypesByFileExtension' is not concurrency-safe because non-'Sendable' type '[String : HTTPMediaType]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: annotate 'mediaTypesByFileExtension' 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
59 |         "js": .javascript,
60 |         "json": .json,
/host/spi-builder-workspace/Sources/HTTPMock/HTTPRequestPredicate.swift:5:27: error: cannot find type 'URLRequest' in scope
  3 | public struct HTTPRequestPredicate: CustomStringConvertible {
  4 |     public let description: String
  5 |     public let evaluate: (URLRequest) -> Bool
    |                           `- error: cannot find type 'URLRequest' in scope
  6 | }
  7 |
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:6:33: error: cannot find type 'URLRequest' in scope
 4 |     public let id: String = UUID().uuidString
 5 |     public let predicate: HTTPRequestPredicate
 6 |     private let assetProvider: (URLRequest) -> HTTPResponseAsset
   |                                 `- error: cannot find type 'URLRequest' in scope
 7 |
 8 |     public init(predicate: HTTPRequestPredicate,
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:9:43: error: cannot find type 'URLRequest' in scope
 7 |
 8 |     public init(predicate: HTTPRequestPredicate,
 9 |                 assetProvider: @escaping (URLRequest) -> HTTPResponseAsset) {
   |                                           `- error: cannot find type 'URLRequest' in scope
10 |         self.predicate = predicate
11 |         self.assetProvider = assetProvider
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:14:38: error: cannot find type 'URLRequest' in scope
12 |     }
13 |
14 |     public func responds(to request: URLRequest) -> Bool {
   |                                      `- error: cannot find type 'URLRequest' in scope
15 |         return predicate.evaluate(request)
16 |     }
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:18:44: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func responseAsset(for request: URLRequest) -> HTTPResponseAsset {
   |                                            `- error: cannot find type 'URLRequest' in scope
19 |         var result = assetProvider(request)
20 |         if result.bodyStreamGenerator != nil && result.headerFields[HTTPHeaderName.eTag] == nil {
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:5:49: error: cannot find type 'URLRequest' in scope
 3 | @discardableResult
 4 | public func stub(when predicate: HTTPRequestPredicate,
 5 |                  then assetProvider: @escaping (URLRequest) -> HTTPResponseAsset) -> StubEntry {
   |                                                 `- error: cannot find type 'URLRequest' in scope
 6 |     return StubRegistry.shared.registerEntry(for: predicate, assetProvider: assetProvider)
 7 | }
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:16:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'StubRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
13 | }
14 |
15 | public class StubRegistry {
   |              `- note: class 'StubRegistry' does not conform to the 'Sendable' protocol
16 |     public static let shared: StubRegistry = StubRegistry()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'StubRegistry' 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
17 |
18 |     private var entries: [StubEntry] = []
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:34:35: error: cannot find type 'URLRequest' in scope
32 |     public func registerEntry(
33 |         for predicate: HTTPRequestPredicate,
34 |         assetProvider: @escaping (URLRequest) -> HTTPResponseAsset
   |                                   `- error: cannot find type 'URLRequest' in scope
35 |     ) -> StubEntry {
36 |         let entry = StubEntry(predicate: predicate, assetProvider: assetProvider)
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:53:36: error: cannot find type 'URLRequest' in scope
51 |     }
52 |
53 |     public func entry(for request: URLRequest) -> StubEntry? {
   |                                    `- error: cannot find type 'URLRequest' in scope
54 |         return syncQueue.sync(execute: {
55 |             return entries.last(where: { $0.responds(to: request) })
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:32:48: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     }
 31 |
 32 |     static func registerStub(in configuration: URLSessionConfiguration) {
    |                                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |         let classes = configuration.protocolClasses ?? []
 34 |         if !classes.contains(where: { $0 == URLProtocolStub.self }) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:39:52: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     }
 38 |
 39 |     static func unregisterStub(from configuration: URLSessionConfiguration) {
    |                                                    `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         guard var classes = configuration.protocolClasses else { return }
 41 |         classes.removeAll(where: { $0 == URLProtocolStub.self })
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:63:24: warning: static property 'defaultMethodItem' is not concurrency-safe because non-'Sendable' type 'URLSessionConfigurationSwizzler.MethodItem' may have shared mutable state; this is an error in the Swift 6 language mode
 61 |     }
 62 |
 63 |     private static let defaultMethodItem: MethodItem = {
    |                        |- warning: static property 'defaultMethodItem' is not concurrency-safe because non-'Sendable' type 'URLSessionConfigurationSwizzler.MethodItem' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'defaultMethodItem' 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
 64 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.default))
 65 |     }()
    :
 81 |
 82 | extension URLSessionConfigurationSwizzler {
 83 |     private class MethodItem: NSObject {
    |                   `- note: class 'MethodItem' does not conform to the 'Sendable' protocol
 84 |         private typealias CreationFunction = @convention(c)
 85 |             (AnyClass, Selector) -> URLSessionConfiguration
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:64:37: error: '#selector' can only be used with the Objective-C runtime
 62 |
 63 |     private static let defaultMethodItem: MethodItem = {
 64 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.default))
    |                                     `- error: '#selector' can only be used with the Objective-C runtime
 65 |     }()
 66 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:64:37: error: '#selector' can only be used with the Objective-C runtime
 62 |
 63 |     private static let defaultMethodItem: MethodItem = {
 64 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.default))
    |                                     `- error: '#selector' can only be used with the Objective-C runtime
 65 |     }()
 66 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:63:56: error: type of expression is ambiguous without a type annotation
 61 |     }
 62 |
 63 |     private static let defaultMethodItem: MethodItem = {
    |                                                        `- error: type of expression is ambiguous without a type annotation
 64 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.default))
 65 |     }()
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:67:24: warning: static property 'ephemeralMethodItem' is not concurrency-safe because non-'Sendable' type 'URLSessionConfigurationSwizzler.MethodItem' may have shared mutable state; this is an error in the Swift 6 language mode
 65 |     }()
 66 |
 67 |     private static let ephemeralMethodItem: MethodItem = {
    |                        |- warning: static property 'ephemeralMethodItem' is not concurrency-safe because non-'Sendable' type 'URLSessionConfigurationSwizzler.MethodItem' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'ephemeralMethodItem' 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
 68 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.ephemeral))
 69 |     }()
    :
 81 |
 82 | extension URLSessionConfigurationSwizzler {
 83 |     private class MethodItem: NSObject {
    |                   `- note: class 'MethodItem' does not conform to the 'Sendable' protocol
 84 |         private typealias CreationFunction = @convention(c)
 85 |             (AnyClass, Selector) -> URLSessionConfiguration
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:68:37: error: '#selector' can only be used with the Objective-C runtime
 66 |
 67 |     private static let ephemeralMethodItem: MethodItem = {
 68 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.ephemeral))
    |                                     `- error: '#selector' can only be used with the Objective-C runtime
 69 |     }()
 70 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:68:37: error: '#selector' can only be used with the Objective-C runtime
 66 |
 67 |     private static let ephemeralMethodItem: MethodItem = {
 68 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.ephemeral))
    |                                     `- error: '#selector' can only be used with the Objective-C runtime
 69 |     }()
 70 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:67:58: error: type of expression is ambiguous without a type annotation
 65 |     }()
 66 |
 67 |     private static let ephemeralMethodItem: MethodItem = {
    |                                                          `- error: type of expression is ambiguous without a type annotation
 68 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.ephemeral))
 69 |     }()
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:71:6: error: Objective-C interoperability is disabled
 69 |     }()
 70 |
 71 |     @objc(defaultSessionConfiguration)
    |      `- error: Objective-C interoperability is disabled
 72 |     private class var `default`: URLSessionConfiguration {
 73 |         return defaultMethodItem.makeStubRegisteredConfiguration()
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:72:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |
 71 |     @objc(defaultSessionConfiguration)
 72 |     private class var `default`: URLSessionConfiguration {
    |                                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |         return defaultMethodItem.makeStubRegisteredConfiguration()
 74 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:76:6: error: Objective-C interoperability is disabled
 74 |     }
 75 |
 76 |     @objc(ephemeralSessionConfiguration)
    |      `- error: Objective-C interoperability is disabled
 77 |     private class var ephemeral: URLSessionConfiguration {
 78 |         return ephemeralMethodItem.makeStubRegisteredConfiguration()
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:77:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |
 76 |     @objc(ephemeralSessionConfiguration)
 77 |     private class var ephemeral: URLSessionConfiguration {
    |                                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |         return ephemeralMethodItem.makeStubRegisteredConfiguration()
 79 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:100:24: error: cannot find type 'Selector' in scope
 98 |         }
 99 |
100 |         init(selector: Selector) {
    |                        `- error: cannot find type 'Selector' in scope
101 |             let originalClass = URLSessionConfiguration.self
102 |             let swizzlerClass = URLSessionConfigurationSwizzler.self
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:85:24: error: cannot find type 'Selector' in scope
 83 |     private class MethodItem: NSObject {
 84 |         private typealias CreationFunction = @convention(c)
 85 |             (AnyClass, Selector) -> URLSessionConfiguration
    |                        `- error: cannot find type 'Selector' in scope
 86 |
 87 |         private let selector: Selector
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:87:31: error: cannot find type 'Selector' in scope
 85 |             (AnyClass, Selector) -> URLSessionConfiguration
 86 |
 87 |         private let selector: Selector
    |                               `- error: cannot find type 'Selector' in scope
 88 |         private let originalMethod: Method
 89 |         private let originalImplementation: IMP
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:88:37: error: cannot find type 'Method' in scope
 86 |
 87 |         private let selector: Selector
 88 |         private let originalMethod: Method
    |                                     `- error: cannot find type 'Method' in scope
 89 |         private let originalImplementation: IMP
 90 |         private let swizzlerImplementation: IMP
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:89:45: error: cannot find type 'IMP' in scope
 87 |         private let selector: Selector
 88 |         private let originalMethod: Method
 89 |         private let originalImplementation: IMP
    |                                             `- error: cannot find type 'IMP' in scope
 90 |         private let swizzlerImplementation: IMP
 91 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:90:45: error: cannot find type 'IMP' in scope
 88 |         private let originalMethod: Method
 89 |         private let originalImplementation: IMP
 90 |         private let swizzlerImplementation: IMP
    |                                             `- error: cannot find type 'IMP' in scope
 91 |
 92 |         var isSwizzled: Bool = false {
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:96:17: error: cannot find 'method_setImplementation' in scope
 94 |                 if isSwizzled == oldValue { return }
 95 |                 let implementation = isSwizzled ? swizzlerImplementation : originalImplementation
 96 |                 method_setImplementation(originalMethod, implementation)
    |                 `- error: cannot find 'method_setImplementation' in scope
 97 |             }
 98 |         }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:116:51: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |         }
115 |
116 |         func makeStubRegisteredConfiguration() -> URLSessionConfiguration {
    |                                                   `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 |             let result = makeOriginalConfiguration()
118 |             URLProtocolService.registerStub(in: result)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:122:53: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |         }
121 |
122 |         private func makeOriginalConfiguration() -> URLSessionConfiguration {
    |                                                     `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |             return originalFunction(URLSessionConfiguration.self, selector)
124 |         }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:7:35: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  5 |     private let schedules: Schedules = Schedules()
  6 |     private var streamReader: StreamReader?
  7 |     private weak var sessionTask: URLSessionTask?
    |                                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |     private var taskStateKVO: NSKeyValueObservation?
  9 |
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:8:31: error: cannot find type 'NSKeyValueObservation' in scope
  6 |     private var streamReader: StreamReader?
  7 |     private weak var sessionTask: URLSessionTask?
  8 |     private var taskStateKVO: NSKeyValueObservation?
    |                               `- error: cannot find type 'NSKeyValueObservation' in scope
  9 |
 10 |     public override class func canInit(with request: URLRequest) -> Bool {
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:10:54: error: cannot find type 'URLRequest' in scope
  8 |     private var taskStateKVO: NSKeyValueObservation?
  9 |
 10 |     public override class func canInit(with request: URLRequest) -> Bool {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 11 |         return StubRegistry.shared.entry(for: request) != nil
 12 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:10:32: error: method does not override any method from its superclass
  8 |     private var taskStateKVO: NSKeyValueObservation?
  9 |
 10 |     public override class func canInit(with request: URLRequest) -> Bool {
    |                                `- error: method does not override any method from its superclass
 11 |         return StubRegistry.shared.entry(for: request) != nil
 12 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:14:51: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |     }
 13 |
 14 |     public override class func canInit(with task: URLSessionTask) -> Bool {
    |                                                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |         return task.currentRequest.map({ canInit(with: $0) }) ?? false
 16 |     }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:14:32: error: method does not override any method from its superclass
 12 |     }
 13 |
 14 |     public override class func canInit(with task: URLSessionTask) -> Bool {
    |                                `- error: method does not override any method from its superclass
 15 |         return task.currentRequest.map({ canInit(with: $0) }) ?? false
 16 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:18:77: error: cannot find type 'URLRequest' in scope
 16 |     }
 17 |
 18 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                             `- error: cannot find type 'URLRequest' in scope
 19 |         return request
 20 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:18:62: error: cannot find type 'URLRequest' in scope
 16 |     }
 17 |
 18 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
 19 |         return request
 20 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:18:32: error: method does not override any method from its superclass
 16 |     }
 17 |
 18 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                `- error: method does not override any method from its superclass
 19 |         return request
 20 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:22:35: error: cannot find type 'URLRequest' in scope
 20 |     }
 21 |
 22 |     public override init(request: URLRequest,
    |                                   `- error: cannot find type 'URLRequest' in scope
 23 |                          cachedResponse: CachedURLResponse?,
 24 |                          client: URLProtocolClient?) {
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:24:34: error: cannot find type 'URLProtocolClient' in scope
 22 |     public override init(request: URLRequest,
 23 |                          cachedResponse: CachedURLResponse?,
 24 |                          client: URLProtocolClient?) {
    |                                  `- error: cannot find type 'URLProtocolClient' in scope
 25 |         guard let stubEntry = StubRegistry.shared.entry(for: request) else {
 26 |             preconditionFailure("StubEntry has been unregistered after `canInit(with:)`.")
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:22:21: error: initializer does not override a designated initializer from its superclass
 20 |     }
 21 |
 22 |     public override init(request: URLRequest,
    |                     `- error: initializer does not override a designated initializer from its superclass
 23 |                          cachedResponse: CachedURLResponse?,
 24 |                          client: URLProtocolClient?) {
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:23:42: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |
 22 |     public override init(request: URLRequest,
 23 |                          cachedResponse: CachedURLResponse?,
    |                                          `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |                          client: URLProtocolClient?) {
 25 |         guard let stubEntry = StubRegistry.shared.entry(for: request) else {
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias CachedURLResponse = AnyObject
  |                  `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:34:37: error: cannot find type 'URLProtocolClient' in scope
 32 |     public convenience init(task: URLSessionTask,
 33 |                             cachedResponse: CachedURLResponse?,
 34 |                             client: URLProtocolClient?) {
    |                                     `- error: cannot find type 'URLProtocolClient' in scope
 35 |         guard let request = task.currentRequest else { preconditionFailure() }
 36 |         self.init(request: request, cachedResponse: cachedResponse, client: client)
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:32:35: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     }
 31 |
 32 |     public convenience init(task: URLSessionTask,
    |                                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |                             cachedResponse: CachedURLResponse?,
 34 |                             client: URLProtocolClient?) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:33:45: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |
 32 |     public convenience init(task: URLSessionTask,
 33 |                             cachedResponse: CachedURLResponse?,
    |                                             `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |                             client: URLProtocolClient?) {
 35 |         guard let request = task.currentRequest else { preconditionFailure() }
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias CachedURLResponse = AnyObject
  |                  `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:40:26: error: method does not override any method from its superclass
 38 |     }
 39 |
 40 |     public override func startLoading() {
    |                          `- error: method does not override any method from its superclass
 41 |         let responseAsset = stubEntry.responseAsset(for: request)
 42 |         do {
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:112:45: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |     }
111 |
112 |     private func taskDidChangeState(_ task: URLSessionTask) {
    |                                             `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |         switch task.state {
114 |         case .suspended:
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:123:26: error: method does not override any method from its superclass
121 |     }
122 |
123 |     public override func stopLoading() {
    |                          `- error: method does not override any method from its superclass
124 |         schedules.cancelAll()
125 |         streamReader = nil
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:3:31: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  1 | import Foundation
  2 |
  3 | public class URLProtocolStub: URLProtocol {
    |                               `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  4 |     private let stubEntry: StubEntry
  5 |     private let schedules: Schedules = Schedules()
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:193:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |
192 | private struct ResponseSource {
193 |     let response: URLResponse
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 |     let bodyStream: InputStream
195 |     let contentRange: ClosedRange<Int>?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:198:26: error: cannot find type 'URLRequest' in scope
196 |     private let originalResponseAsset: HTTPResponseAsset
197 |     private let currentResponseAsset: HTTPResponseAsset
198 |     private let request: URLRequest
    |                          `- error: cannot find type 'URLRequest' in scope
199 |     private let url: URL
200 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:201:19: error: cannot find type 'URLRequest' in scope
199 |     private let url: URL
200 |
201 |     init(request: URLRequest, responseAsset: HTTPResponseAsset) throws {
    |                   `- error: cannot find type 'URLRequest' in scope
202 |         let builder = try ResponseSourceBuilder(request: request, responseAsset: responseAsset)
203 |         self.originalResponseAsset = responseAsset
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:212:23: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 |     }
211 |
212 |     var httpCookies: [HTTPCookie]? {
    |                       `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
213 |         guard request.httpShouldHandleCookies else { return nil }
214 |         let headerFields = currentResponseAsset.headerFields
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:218:26: error: cannot find type 'URLRequest' in scope
216 |     }
217 |
218 |     var redirectRequest: URLRequest? {
    |                          `- error: cannot find type 'URLRequest' in scope
219 |         guard let redirectURL = currentResponseAsset.redirectURL else { return nil }
220 |         var result = request
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:239:26: error: cannot find type 'URLRequest' in scope
237 |
238 | private class ResponseSourceBuilder {
239 |     private let request: URLRequest
    |                          `- error: cannot find type 'URLRequest' in scope
240 |     private let originalResponseAsset: HTTPResponseAsset
241 |     private(set) var currentResponseAsset: HTTPResponseAsset
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:243:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 |     private(set) var currentResponseAsset: HTTPResponseAsset
242 |     private(set) var url: URL!
243 |     private(set) var response: HTTPURLResponse!
    |                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 |     private(set) var bodyStream: InputStream!
245 |     private var bodyStreamLength: Int = 0
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:248:19: error: cannot find type 'URLRequest' in scope
246 |     private(set) var contentRange: ClosedRange<Int>?
247 |
248 |     init(request: URLRequest, responseAsset: HTTPResponseAsset) throws {
    |                   `- error: cannot find type 'URLRequest' in scope
249 |         self.request = request
250 |         self.originalResponseAsset = responseAsset
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:358:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
356 |     }
357 |
358 |     private func makeResponse() -> HTTPURLResponse? {
    |                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
359 |         return HTTPURLResponse(url: url,
360 |                                statusCode: currentResponseAsset.statusCode,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[10/16] Compiling HTTPMock HTTPRequestPredicate.swift
/host/spi-builder-workspace/Sources/HTTPMock/HTTPRequestPredicate.swift:5:27: error: cannot find type 'URLRequest' in scope
  3 | public struct HTTPRequestPredicate: CustomStringConvertible {
  4 |     public let description: String
  5 |     public let evaluate: (URLRequest) -> Bool
    |                           `- error: cannot find type 'URLRequest' in scope
  6 | }
  7 |
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:12:23: error: cannot find 'CFHTTPMessageCreateEmpty' in scope
10 |
11 |     public init(data: Data) throws {
12 |         let message = CFHTTPMessageCreateEmpty(nil, false).takeRetainedValue()
   |                       `- error: cannot find 'CFHTTPMessageCreateEmpty' in scope
13 |
14 |         try data.withUnsafeBytes({ (bytes: UnsafeRawBufferPointer) in
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:12:48: error: 'nil' requires a contextual type
10 |
11 |     public init(data: Data) throws {
12 |         let message = CFHTTPMessageCreateEmpty(nil, false).takeRetainedValue()
   |                                                `- error: 'nil' requires a contextual type
13 |
14 |         try data.withUnsafeBytes({ (bytes: UnsafeRawBufferPointer) in
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:16:17: error: cannot find 'CFHTTPMessageAppendBytes' in scope
14 |         try data.withUnsafeBytes({ (bytes: UnsafeRawBufferPointer) in
15 |             guard let ptr = bytes.baseAddress?.assumingMemoryBound(to: UInt8.self),
16 |                 CFHTTPMessageAppendBytes(message, ptr, data.count)
   |                 `- error: cannot find 'CFHTTPMessageAppendBytes' in scope
17 |                 else { throw Error.invalidResponseData }
18 |         })
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:20:15: error: cannot find 'CFHTTPMessageIsHeaderComplete' in scope
18 |         })
19 |
20 |         guard CFHTTPMessageIsHeaderComplete(message) else {
   |               `- error: cannot find 'CFHTTPMessageIsHeaderComplete' in scope
21 |             throw Error.headerIsNotCompleted
22 |         }
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:24:34: error: cannot find 'CFHTTPMessageCopyAllHeaderFields' in scope
22 |         }
23 |
24 |         guard let headerFields = CFHTTPMessageCopyAllHeaderFields(message)?.takeRetainedValue()
   |                                  `- error: cannot find 'CFHTTPMessageCopyAllHeaderFields' in scope
25 |             else { throw Error.copyHeaderFieldsFailed }
26 |         let statusCode = CFHTTPMessageGetResponseStatusCode(message)
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:26:26: error: cannot find 'CFHTTPMessageGetResponseStatusCode' in scope
24 |         guard let headerFields = CFHTTPMessageCopyAllHeaderFields(message)?.takeRetainedValue()
25 |             else { throw Error.copyHeaderFieldsFailed }
26 |         let statusCode = CFHTTPMessageGetResponseStatusCode(message)
   |                          `- error: cannot find 'CFHTTPMessageGetResponseStatusCode' in scope
27 |         let bodyData = CFHTTPMessageCopyBody(message)?.takeRetainedValue() as Data?
28 |
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:27:24: error: cannot find 'CFHTTPMessageCopyBody' in scope
25 |             else { throw Error.copyHeaderFieldsFailed }
26 |         let statusCode = CFHTTPMessageGetResponseStatusCode(message)
27 |         let bodyData = CFHTTPMessageCopyBody(message)?.takeRetainedValue() as Data?
   |                        `- error: cannot find 'CFHTTPMessageCopyBody' in scope
28 |
29 |         self.statusCode = statusCode
[11/16] Compiling HTTPMock HTTPResponse.swift
/host/spi-builder-workspace/Sources/HTTPMock/HTTPRequestPredicate.swift:5:27: error: cannot find type 'URLRequest' in scope
  3 | public struct HTTPRequestPredicate: CustomStringConvertible {
  4 |     public let description: String
  5 |     public let evaluate: (URLRequest) -> Bool
    |                           `- error: cannot find type 'URLRequest' in scope
  6 | }
  7 |
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:12:23: error: cannot find 'CFHTTPMessageCreateEmpty' in scope
10 |
11 |     public init(data: Data) throws {
12 |         let message = CFHTTPMessageCreateEmpty(nil, false).takeRetainedValue()
   |                       `- error: cannot find 'CFHTTPMessageCreateEmpty' in scope
13 |
14 |         try data.withUnsafeBytes({ (bytes: UnsafeRawBufferPointer) in
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:12:48: error: 'nil' requires a contextual type
10 |
11 |     public init(data: Data) throws {
12 |         let message = CFHTTPMessageCreateEmpty(nil, false).takeRetainedValue()
   |                                                `- error: 'nil' requires a contextual type
13 |
14 |         try data.withUnsafeBytes({ (bytes: UnsafeRawBufferPointer) in
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:16:17: error: cannot find 'CFHTTPMessageAppendBytes' in scope
14 |         try data.withUnsafeBytes({ (bytes: UnsafeRawBufferPointer) in
15 |             guard let ptr = bytes.baseAddress?.assumingMemoryBound(to: UInt8.self),
16 |                 CFHTTPMessageAppendBytes(message, ptr, data.count)
   |                 `- error: cannot find 'CFHTTPMessageAppendBytes' in scope
17 |                 else { throw Error.invalidResponseData }
18 |         })
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:20:15: error: cannot find 'CFHTTPMessageIsHeaderComplete' in scope
18 |         })
19 |
20 |         guard CFHTTPMessageIsHeaderComplete(message) else {
   |               `- error: cannot find 'CFHTTPMessageIsHeaderComplete' in scope
21 |             throw Error.headerIsNotCompleted
22 |         }
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:24:34: error: cannot find 'CFHTTPMessageCopyAllHeaderFields' in scope
22 |         }
23 |
24 |         guard let headerFields = CFHTTPMessageCopyAllHeaderFields(message)?.takeRetainedValue()
   |                                  `- error: cannot find 'CFHTTPMessageCopyAllHeaderFields' in scope
25 |             else { throw Error.copyHeaderFieldsFailed }
26 |         let statusCode = CFHTTPMessageGetResponseStatusCode(message)
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:26:26: error: cannot find 'CFHTTPMessageGetResponseStatusCode' in scope
24 |         guard let headerFields = CFHTTPMessageCopyAllHeaderFields(message)?.takeRetainedValue()
25 |             else { throw Error.copyHeaderFieldsFailed }
26 |         let statusCode = CFHTTPMessageGetResponseStatusCode(message)
   |                          `- error: cannot find 'CFHTTPMessageGetResponseStatusCode' in scope
27 |         let bodyData = CFHTTPMessageCopyBody(message)?.takeRetainedValue() as Data?
28 |
/host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift:27:24: error: cannot find 'CFHTTPMessageCopyBody' in scope
25 |             else { throw Error.copyHeaderFieldsFailed }
26 |         let statusCode = CFHTTPMessageGetResponseStatusCode(message)
27 |         let bodyData = CFHTTPMessageCopyBody(message)?.takeRetainedValue() as Data?
   |                        `- error: cannot find 'CFHTTPMessageCopyBody' in scope
28 |
29 |         self.statusCode = statusCode
[12/16] Compiling HTTPMock HTTPMediaType.swift
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:31:16: warning: static property 'javascript' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
29 |
30 | public extension HTTPMediaType {
31 |     static let javascript: HTTPMediaType = "application/javascript"
   |                |- warning: static property 'javascript' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'javascript' 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 |     static let json: HTTPMediaType = "application/json"
33 |     static let urlEncodedForm: HTTPMediaType = "application/x-www-form-urlencoded"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:32:16: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
30 | public extension HTTPMediaType {
31 |     static let javascript: HTTPMediaType = "application/javascript"
32 |     static let json: HTTPMediaType = "application/json"
   |                |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'json' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |     static let urlEncodedForm: HTTPMediaType = "application/x-www-form-urlencoded"
34 |     static let xml: HTTPMediaType = "application/xml"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:33:16: warning: static property 'urlEncodedForm' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
31 |     static let javascript: HTTPMediaType = "application/javascript"
32 |     static let json: HTTPMediaType = "application/json"
33 |     static let urlEncodedForm: HTTPMediaType = "application/x-www-form-urlencoded"
   |                |- warning: static property 'urlEncodedForm' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'urlEncodedForm' 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 |     static let xml: HTTPMediaType = "application/xml"
35 |     static let zip: HTTPMediaType = "application/zip"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:34:16: warning: static property 'xml' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
32 |     static let json: HTTPMediaType = "application/json"
33 |     static let urlEncodedForm: HTTPMediaType = "application/x-www-form-urlencoded"
34 |     static let xml: HTTPMediaType = "application/xml"
   |                |- warning: static property 'xml' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'xml' 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
35 |     static let zip: HTTPMediaType = "application/zip"
36 |     static let gzip: HTTPMediaType = "application/x-gzip"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:35:16: warning: static property 'zip' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
33 |     static let urlEncodedForm: HTTPMediaType = "application/x-www-form-urlencoded"
34 |     static let xml: HTTPMediaType = "application/xml"
35 |     static let zip: HTTPMediaType = "application/zip"
   |                |- warning: static property 'zip' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'zip' 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
36 |     static let gzip: HTTPMediaType = "application/x-gzip"
37 |     static let tar: HTTPMediaType = "application/x-tar"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:36:16: warning: static property 'gzip' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
34 |     static let xml: HTTPMediaType = "application/xml"
35 |     static let zip: HTTPMediaType = "application/zip"
36 |     static let gzip: HTTPMediaType = "application/x-gzip"
   |                |- warning: static property 'gzip' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'gzip' 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
37 |     static let tar: HTTPMediaType = "application/x-tar"
38 |     static let pdf: HTTPMediaType = "application/pdf"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:37:16: warning: static property 'tar' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
35 |     static let zip: HTTPMediaType = "application/zip"
36 |     static let gzip: HTTPMediaType = "application/x-gzip"
37 |     static let tar: HTTPMediaType = "application/x-tar"
   |                |- warning: static property 'tar' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'tar' 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 |     static let pdf: HTTPMediaType = "application/pdf"
39 |     static let binary: HTTPMediaType = "application/octet-stream"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:38:16: warning: static property 'pdf' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
36 |     static let gzip: HTTPMediaType = "application/x-gzip"
37 |     static let tar: HTTPMediaType = "application/x-tar"
38 |     static let pdf: HTTPMediaType = "application/pdf"
   |                |- warning: static property 'pdf' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'pdf' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |     static let binary: HTTPMediaType = "application/octet-stream"
40 |     static let mp3: HTTPMediaType = "audio/mpeg"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:39:16: warning: static property 'binary' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
37 |     static let tar: HTTPMediaType = "application/x-tar"
38 |     static let pdf: HTTPMediaType = "application/pdf"
39 |     static let binary: HTTPMediaType = "application/octet-stream"
   |                |- warning: static property 'binary' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'binary' 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
40 |     static let mp3: HTTPMediaType = "audio/mpeg"
41 |     static let ogg: HTTPMediaType = "audio/ogg"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:40:16: warning: static property 'mp3' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
38 |     static let pdf: HTTPMediaType = "application/pdf"
39 |     static let binary: HTTPMediaType = "application/octet-stream"
40 |     static let mp3: HTTPMediaType = "audio/mpeg"
   |                |- warning: static property 'mp3' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'mp3' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 |     static let ogg: HTTPMediaType = "audio/ogg"
42 |     static let avi: HTTPMediaType = "video/avi"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:41:16: warning: static property 'ogg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
39 |     static let binary: HTTPMediaType = "application/octet-stream"
40 |     static let mp3: HTTPMediaType = "audio/mpeg"
41 |     static let ogg: HTTPMediaType = "audio/ogg"
   |                |- warning: static property 'ogg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'ogg' 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
42 |     static let avi: HTTPMediaType = "video/avi"
43 |     static let mpeg: HTTPMediaType = "video/mpeg"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:42:16: warning: static property 'avi' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
40 |     static let mp3: HTTPMediaType = "audio/mpeg"
41 |     static let ogg: HTTPMediaType = "audio/ogg"
42 |     static let avi: HTTPMediaType = "video/avi"
   |                |- warning: static property 'avi' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'avi' 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 |     static let mpeg: HTTPMediaType = "video/mpeg"
44 |     static let mp4: HTTPMediaType = "video/mp4"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:43:16: warning: static property 'mpeg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
41 |     static let ogg: HTTPMediaType = "audio/ogg"
42 |     static let avi: HTTPMediaType = "video/avi"
43 |     static let mpeg: HTTPMediaType = "video/mpeg"
   |                |- warning: static property 'mpeg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'mpeg' 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 |     static let mp4: HTTPMediaType = "video/mp4"
45 |     static let quicktime: HTTPMediaType = "video/quicktime"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:44:16: warning: static property 'mp4' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
42 |     static let avi: HTTPMediaType = "video/avi"
43 |     static let mpeg: HTTPMediaType = "video/mpeg"
44 |     static let mp4: HTTPMediaType = "video/mp4"
   |                |- warning: static property 'mp4' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'mp4' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |     static let quicktime: HTTPMediaType = "video/quicktime"
46 |     static let png: HTTPMediaType = "image/png"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:45:16: warning: static property 'quicktime' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
43 |     static let mpeg: HTTPMediaType = "video/mpeg"
44 |     static let mp4: HTTPMediaType = "video/mp4"
45 |     static let quicktime: HTTPMediaType = "video/quicktime"
   |                |- warning: static property 'quicktime' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'quicktime' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 |     static let png: HTTPMediaType = "image/png"
47 |     static let jpeg: HTTPMediaType = "image/jpeg"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:46:16: warning: static property 'png' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
44 |     static let mp4: HTTPMediaType = "video/mp4"
45 |     static let quicktime: HTTPMediaType = "video/quicktime"
46 |     static let png: HTTPMediaType = "image/png"
   |                |- warning: static property 'png' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'png' 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 |     static let jpeg: HTTPMediaType = "image/jpeg"
48 |     static let gif: HTTPMediaType = "image/gif"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:47:16: warning: static property 'jpeg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
45 |     static let quicktime: HTTPMediaType = "video/quicktime"
46 |     static let png: HTTPMediaType = "image/png"
47 |     static let jpeg: HTTPMediaType = "image/jpeg"
   |                |- warning: static property 'jpeg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'jpeg' 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 |     static let gif: HTTPMediaType = "image/gif"
49 |     static let tiff: HTTPMediaType = "image/tiff"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:48:16: warning: static property 'gif' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
46 |     static let png: HTTPMediaType = "image/png"
47 |     static let jpeg: HTTPMediaType = "image/jpeg"
48 |     static let gif: HTTPMediaType = "image/gif"
   |                |- warning: static property 'gif' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'gif' 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 |     static let tiff: HTTPMediaType = "image/tiff"
50 |     static let svg: HTTPMediaType = "image/svg+xml"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:49:16: warning: static property 'tiff' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
47 |     static let jpeg: HTTPMediaType = "image/jpeg"
48 |     static let gif: HTTPMediaType = "image/gif"
49 |     static let tiff: HTTPMediaType = "image/tiff"
   |                |- warning: static property 'tiff' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'tiff' 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 |     static let svg: HTTPMediaType = "image/svg+xml"
51 |     static let plainText: HTTPMediaType = "text/plain"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:50:16: warning: static property 'svg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
48 |     static let gif: HTTPMediaType = "image/gif"
49 |     static let tiff: HTTPMediaType = "image/tiff"
50 |     static let svg: HTTPMediaType = "image/svg+xml"
   |                |- warning: static property 'svg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'svg' 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 |     static let plainText: HTTPMediaType = "text/plain"
52 |     static let css: HTTPMediaType = "text/css"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:51:16: warning: static property 'plainText' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
49 |     static let tiff: HTTPMediaType = "image/tiff"
50 |     static let svg: HTTPMediaType = "image/svg+xml"
51 |     static let plainText: HTTPMediaType = "text/plain"
   |                |- warning: static property 'plainText' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'plainText' 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 |     static let css: HTTPMediaType = "text/css"
53 |     static let html: HTTPMediaType = "text/html"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:52:16: warning: static property 'css' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
50 |     static let svg: HTTPMediaType = "image/svg+xml"
51 |     static let plainText: HTTPMediaType = "text/plain"
52 |     static let css: HTTPMediaType = "text/css"
   |                |- warning: static property 'css' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'css' 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 |     static let html: HTTPMediaType = "text/html"
54 |     static let csv: HTTPMediaType = "text/csv"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:53:16: warning: static property 'html' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
51 |     static let plainText: HTTPMediaType = "text/plain"
52 |     static let css: HTTPMediaType = "text/css"
53 |     static let html: HTTPMediaType = "text/html"
   |                |- warning: static property 'html' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'html' 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 |     static let csv: HTTPMediaType = "text/csv"
55 | }
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:54:16: warning: static property 'csv' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
52 |     static let css: HTTPMediaType = "text/css"
53 |     static let html: HTTPMediaType = "text/html"
54 |     static let csv: HTTPMediaType = "text/csv"
   |                |- warning: static property 'csv' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'csv' 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 |
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:58:24: warning: static property 'mediaTypesByFileExtension' is not concurrency-safe because non-'Sendable' type '[String : HTTPMediaType]' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
56 |
57 | extension HTTPMediaType {
58 |     private static let mediaTypesByFileExtension: [String: HTTPMediaType] = [
   |                        |- warning: static property 'mediaTypesByFileExtension' is not concurrency-safe because non-'Sendable' type '[String : HTTPMediaType]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: annotate 'mediaTypesByFileExtension' 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
59 |         "js": .javascript,
60 |         "json": .json,
[13/16] Compiling HTTPMock HTTPMethod.swift
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:31:16: warning: static property 'javascript' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
29 |
30 | public extension HTTPMediaType {
31 |     static let javascript: HTTPMediaType = "application/javascript"
   |                |- warning: static property 'javascript' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'javascript' 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 |     static let json: HTTPMediaType = "application/json"
33 |     static let urlEncodedForm: HTTPMediaType = "application/x-www-form-urlencoded"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:32:16: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
30 | public extension HTTPMediaType {
31 |     static let javascript: HTTPMediaType = "application/javascript"
32 |     static let json: HTTPMediaType = "application/json"
   |                |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'json' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |     static let urlEncodedForm: HTTPMediaType = "application/x-www-form-urlencoded"
34 |     static let xml: HTTPMediaType = "application/xml"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:33:16: warning: static property 'urlEncodedForm' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
31 |     static let javascript: HTTPMediaType = "application/javascript"
32 |     static let json: HTTPMediaType = "application/json"
33 |     static let urlEncodedForm: HTTPMediaType = "application/x-www-form-urlencoded"
   |                |- warning: static property 'urlEncodedForm' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'urlEncodedForm' 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 |     static let xml: HTTPMediaType = "application/xml"
35 |     static let zip: HTTPMediaType = "application/zip"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:34:16: warning: static property 'xml' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
32 |     static let json: HTTPMediaType = "application/json"
33 |     static let urlEncodedForm: HTTPMediaType = "application/x-www-form-urlencoded"
34 |     static let xml: HTTPMediaType = "application/xml"
   |                |- warning: static property 'xml' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'xml' 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
35 |     static let zip: HTTPMediaType = "application/zip"
36 |     static let gzip: HTTPMediaType = "application/x-gzip"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:35:16: warning: static property 'zip' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
33 |     static let urlEncodedForm: HTTPMediaType = "application/x-www-form-urlencoded"
34 |     static let xml: HTTPMediaType = "application/xml"
35 |     static let zip: HTTPMediaType = "application/zip"
   |                |- warning: static property 'zip' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'zip' 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
36 |     static let gzip: HTTPMediaType = "application/x-gzip"
37 |     static let tar: HTTPMediaType = "application/x-tar"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:36:16: warning: static property 'gzip' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
34 |     static let xml: HTTPMediaType = "application/xml"
35 |     static let zip: HTTPMediaType = "application/zip"
36 |     static let gzip: HTTPMediaType = "application/x-gzip"
   |                |- warning: static property 'gzip' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'gzip' 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
37 |     static let tar: HTTPMediaType = "application/x-tar"
38 |     static let pdf: HTTPMediaType = "application/pdf"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:37:16: warning: static property 'tar' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
35 |     static let zip: HTTPMediaType = "application/zip"
36 |     static let gzip: HTTPMediaType = "application/x-gzip"
37 |     static let tar: HTTPMediaType = "application/x-tar"
   |                |- warning: static property 'tar' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'tar' 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 |     static let pdf: HTTPMediaType = "application/pdf"
39 |     static let binary: HTTPMediaType = "application/octet-stream"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:38:16: warning: static property 'pdf' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
36 |     static let gzip: HTTPMediaType = "application/x-gzip"
37 |     static let tar: HTTPMediaType = "application/x-tar"
38 |     static let pdf: HTTPMediaType = "application/pdf"
   |                |- warning: static property 'pdf' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'pdf' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |     static let binary: HTTPMediaType = "application/octet-stream"
40 |     static let mp3: HTTPMediaType = "audio/mpeg"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:39:16: warning: static property 'binary' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
37 |     static let tar: HTTPMediaType = "application/x-tar"
38 |     static let pdf: HTTPMediaType = "application/pdf"
39 |     static let binary: HTTPMediaType = "application/octet-stream"
   |                |- warning: static property 'binary' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'binary' 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
40 |     static let mp3: HTTPMediaType = "audio/mpeg"
41 |     static let ogg: HTTPMediaType = "audio/ogg"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:40:16: warning: static property 'mp3' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
38 |     static let pdf: HTTPMediaType = "application/pdf"
39 |     static let binary: HTTPMediaType = "application/octet-stream"
40 |     static let mp3: HTTPMediaType = "audio/mpeg"
   |                |- warning: static property 'mp3' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'mp3' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 |     static let ogg: HTTPMediaType = "audio/ogg"
42 |     static let avi: HTTPMediaType = "video/avi"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:41:16: warning: static property 'ogg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
39 |     static let binary: HTTPMediaType = "application/octet-stream"
40 |     static let mp3: HTTPMediaType = "audio/mpeg"
41 |     static let ogg: HTTPMediaType = "audio/ogg"
   |                |- warning: static property 'ogg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'ogg' 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
42 |     static let avi: HTTPMediaType = "video/avi"
43 |     static let mpeg: HTTPMediaType = "video/mpeg"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:42:16: warning: static property 'avi' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
40 |     static let mp3: HTTPMediaType = "audio/mpeg"
41 |     static let ogg: HTTPMediaType = "audio/ogg"
42 |     static let avi: HTTPMediaType = "video/avi"
   |                |- warning: static property 'avi' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'avi' 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 |     static let mpeg: HTTPMediaType = "video/mpeg"
44 |     static let mp4: HTTPMediaType = "video/mp4"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:43:16: warning: static property 'mpeg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
41 |     static let ogg: HTTPMediaType = "audio/ogg"
42 |     static let avi: HTTPMediaType = "video/avi"
43 |     static let mpeg: HTTPMediaType = "video/mpeg"
   |                |- warning: static property 'mpeg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'mpeg' 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 |     static let mp4: HTTPMediaType = "video/mp4"
45 |     static let quicktime: HTTPMediaType = "video/quicktime"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:44:16: warning: static property 'mp4' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
42 |     static let avi: HTTPMediaType = "video/avi"
43 |     static let mpeg: HTTPMediaType = "video/mpeg"
44 |     static let mp4: HTTPMediaType = "video/mp4"
   |                |- warning: static property 'mp4' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'mp4' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |     static let quicktime: HTTPMediaType = "video/quicktime"
46 |     static let png: HTTPMediaType = "image/png"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:45:16: warning: static property 'quicktime' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
43 |     static let mpeg: HTTPMediaType = "video/mpeg"
44 |     static let mp4: HTTPMediaType = "video/mp4"
45 |     static let quicktime: HTTPMediaType = "video/quicktime"
   |                |- warning: static property 'quicktime' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'quicktime' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 |     static let png: HTTPMediaType = "image/png"
47 |     static let jpeg: HTTPMediaType = "image/jpeg"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:46:16: warning: static property 'png' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
44 |     static let mp4: HTTPMediaType = "video/mp4"
45 |     static let quicktime: HTTPMediaType = "video/quicktime"
46 |     static let png: HTTPMediaType = "image/png"
   |                |- warning: static property 'png' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'png' 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 |     static let jpeg: HTTPMediaType = "image/jpeg"
48 |     static let gif: HTTPMediaType = "image/gif"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:47:16: warning: static property 'jpeg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
45 |     static let quicktime: HTTPMediaType = "video/quicktime"
46 |     static let png: HTTPMediaType = "image/png"
47 |     static let jpeg: HTTPMediaType = "image/jpeg"
   |                |- warning: static property 'jpeg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'jpeg' 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 |     static let gif: HTTPMediaType = "image/gif"
49 |     static let tiff: HTTPMediaType = "image/tiff"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:48:16: warning: static property 'gif' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
46 |     static let png: HTTPMediaType = "image/png"
47 |     static let jpeg: HTTPMediaType = "image/jpeg"
48 |     static let gif: HTTPMediaType = "image/gif"
   |                |- warning: static property 'gif' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'gif' 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 |     static let tiff: HTTPMediaType = "image/tiff"
50 |     static let svg: HTTPMediaType = "image/svg+xml"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:49:16: warning: static property 'tiff' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
47 |     static let jpeg: HTTPMediaType = "image/jpeg"
48 |     static let gif: HTTPMediaType = "image/gif"
49 |     static let tiff: HTTPMediaType = "image/tiff"
   |                |- warning: static property 'tiff' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'tiff' 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 |     static let svg: HTTPMediaType = "image/svg+xml"
51 |     static let plainText: HTTPMediaType = "text/plain"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:50:16: warning: static property 'svg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
48 |     static let gif: HTTPMediaType = "image/gif"
49 |     static let tiff: HTTPMediaType = "image/tiff"
50 |     static let svg: HTTPMediaType = "image/svg+xml"
   |                |- warning: static property 'svg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'svg' 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 |     static let plainText: HTTPMediaType = "text/plain"
52 |     static let css: HTTPMediaType = "text/css"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:51:16: warning: static property 'plainText' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
49 |     static let tiff: HTTPMediaType = "image/tiff"
50 |     static let svg: HTTPMediaType = "image/svg+xml"
51 |     static let plainText: HTTPMediaType = "text/plain"
   |                |- warning: static property 'plainText' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'plainText' 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 |     static let css: HTTPMediaType = "text/css"
53 |     static let html: HTTPMediaType = "text/html"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:52:16: warning: static property 'css' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
50 |     static let svg: HTTPMediaType = "image/svg+xml"
51 |     static let plainText: HTTPMediaType = "text/plain"
52 |     static let css: HTTPMediaType = "text/css"
   |                |- warning: static property 'css' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'css' 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 |     static let html: HTTPMediaType = "text/html"
54 |     static let csv: HTTPMediaType = "text/csv"
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:53:16: warning: static property 'html' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
51 |     static let plainText: HTTPMediaType = "text/plain"
52 |     static let css: HTTPMediaType = "text/css"
53 |     static let html: HTTPMediaType = "text/html"
   |                |- warning: static property 'html' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'html' 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 |     static let csv: HTTPMediaType = "text/csv"
55 | }
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:54:16: warning: static property 'csv' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
52 |     static let css: HTTPMediaType = "text/css"
53 |     static let html: HTTPMediaType = "text/html"
54 |     static let csv: HTTPMediaType = "text/csv"
   |                |- warning: static property 'csv' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'csv' 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 |
/host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift:58:24: warning: static property 'mediaTypesByFileExtension' is not concurrency-safe because non-'Sendable' type '[String : HTTPMediaType]' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct HTTPMediaType: RawRepresentable, Equatable {
   |               `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
 4 |     public var rawValue: String
 5 |
   :
56 |
57 | extension HTTPMediaType {
58 |     private static let mediaTypesByFileExtension: [String: HTTPMediaType] = [
   |                        |- warning: static property 'mediaTypesByFileExtension' is not concurrency-safe because non-'Sendable' type '[String : HTTPMediaType]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: annotate 'mediaTypesByFileExtension' 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
59 |         "js": .javascript,
60 |         "json": .json,
[14/16] Compiling HTTPMock HTTPHeaderFields.swift
/host/spi-builder-workspace/Sources/HTTPMock/HTTPHeaderFields.swift:94:34: warning: tuple conversion from '(key: String, value: String)' to '(name: String, value: String)' mismatches labels
 92 | public extension HTTPHeaderFields {
 93 |     init(_ dictionary: [String: String]) {
 94 |         self.init(dictionary.map({ $0 }))
    |                                  `- warning: tuple conversion from '(key: String, value: String)' to '(name: String, value: String)' mismatches labels
 95 |     }
 96 |
[15/16] Compiling HTTPMock HTTPHeaderName.swift
/host/spi-builder-workspace/Sources/HTTPMock/HTTPHeaderFields.swift:94:34: warning: tuple conversion from '(key: String, value: String)' to '(name: String, value: String)' mismatches labels
 92 | public extension HTTPHeaderFields {
 93 |     init(_ dictionary: [String: String]) {
 94 |         self.init(dictionary.map({ $0 }))
    |                                  `- warning: tuple conversion from '(key: String, value: String)' to '(name: String, value: String)' mismatches labels
 95 |     }
 96 |
[16/16] Compiling HTTPMock URLProtocolStub.swift
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:7:35: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  5 |     private let schedules: Schedules = Schedules()
  6 |     private var streamReader: StreamReader?
  7 |     private weak var sessionTask: URLSessionTask?
    |                                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |     private var taskStateKVO: NSKeyValueObservation?
  9 |
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:8:31: error: cannot find type 'NSKeyValueObservation' in scope
  6 |     private var streamReader: StreamReader?
  7 |     private weak var sessionTask: URLSessionTask?
  8 |     private var taskStateKVO: NSKeyValueObservation?
    |                               `- error: cannot find type 'NSKeyValueObservation' in scope
  9 |
 10 |     public override class func canInit(with request: URLRequest) -> Bool {
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:10:54: error: cannot find type 'URLRequest' in scope
  8 |     private var taskStateKVO: NSKeyValueObservation?
  9 |
 10 |     public override class func canInit(with request: URLRequest) -> Bool {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 11 |         return StubRegistry.shared.entry(for: request) != nil
 12 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:10:32: error: method does not override any method from its superclass
  8 |     private var taskStateKVO: NSKeyValueObservation?
  9 |
 10 |     public override class func canInit(with request: URLRequest) -> Bool {
    |                                `- error: method does not override any method from its superclass
 11 |         return StubRegistry.shared.entry(for: request) != nil
 12 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:14:51: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |     }
 13 |
 14 |     public override class func canInit(with task: URLSessionTask) -> Bool {
    |                                                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |         return task.currentRequest.map({ canInit(with: $0) }) ?? false
 16 |     }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:14:32: error: method does not override any method from its superclass
 12 |     }
 13 |
 14 |     public override class func canInit(with task: URLSessionTask) -> Bool {
    |                                `- error: method does not override any method from its superclass
 15 |         return task.currentRequest.map({ canInit(with: $0) }) ?? false
 16 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:18:77: error: cannot find type 'URLRequest' in scope
 16 |     }
 17 |
 18 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                             `- error: cannot find type 'URLRequest' in scope
 19 |         return request
 20 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:18:62: error: cannot find type 'URLRequest' in scope
 16 |     }
 17 |
 18 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
 19 |         return request
 20 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:18:32: error: method does not override any method from its superclass
 16 |     }
 17 |
 18 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                `- error: method does not override any method from its superclass
 19 |         return request
 20 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:22:35: error: cannot find type 'URLRequest' in scope
 20 |     }
 21 |
 22 |     public override init(request: URLRequest,
    |                                   `- error: cannot find type 'URLRequest' in scope
 23 |                          cachedResponse: CachedURLResponse?,
 24 |                          client: URLProtocolClient?) {
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:24:34: error: cannot find type 'URLProtocolClient' in scope
 22 |     public override init(request: URLRequest,
 23 |                          cachedResponse: CachedURLResponse?,
 24 |                          client: URLProtocolClient?) {
    |                                  `- error: cannot find type 'URLProtocolClient' in scope
 25 |         guard let stubEntry = StubRegistry.shared.entry(for: request) else {
 26 |             preconditionFailure("StubEntry has been unregistered after `canInit(with:)`.")
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:22:21: error: initializer does not override a designated initializer from its superclass
 20 |     }
 21 |
 22 |     public override init(request: URLRequest,
    |                     `- error: initializer does not override a designated initializer from its superclass
 23 |                          cachedResponse: CachedURLResponse?,
 24 |                          client: URLProtocolClient?) {
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:23:42: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |
 22 |     public override init(request: URLRequest,
 23 |                          cachedResponse: CachedURLResponse?,
    |                                          `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |                          client: URLProtocolClient?) {
 25 |         guard let stubEntry = StubRegistry.shared.entry(for: request) else {
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias CachedURLResponse = AnyObject
  |                  `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:34:37: error: cannot find type 'URLProtocolClient' in scope
 32 |     public convenience init(task: URLSessionTask,
 33 |                             cachedResponse: CachedURLResponse?,
 34 |                             client: URLProtocolClient?) {
    |                                     `- error: cannot find type 'URLProtocolClient' in scope
 35 |         guard let request = task.currentRequest else { preconditionFailure() }
 36 |         self.init(request: request, cachedResponse: cachedResponse, client: client)
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:32:35: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     }
 31 |
 32 |     public convenience init(task: URLSessionTask,
    |                                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |                             cachedResponse: CachedURLResponse?,
 34 |                             client: URLProtocolClient?) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:33:45: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |
 32 |     public convenience init(task: URLSessionTask,
 33 |                             cachedResponse: CachedURLResponse?,
    |                                             `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |                             client: URLProtocolClient?) {
 35 |         guard let request = task.currentRequest else { preconditionFailure() }
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias CachedURLResponse = AnyObject
  |                  `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:40:26: error: method does not override any method from its superclass
 38 |     }
 39 |
 40 |     public override func startLoading() {
    |                          `- error: method does not override any method from its superclass
 41 |         let responseAsset = stubEntry.responseAsset(for: request)
 42 |         do {
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:112:45: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |     }
111 |
112 |     private func taskDidChangeState(_ task: URLSessionTask) {
    |                                             `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |         switch task.state {
114 |         case .suspended:
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:123:26: error: method does not override any method from its superclass
121 |     }
122 |
123 |     public override func stopLoading() {
    |                          `- error: method does not override any method from its superclass
124 |         schedules.cancelAll()
125 |         streamReader = nil
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:3:31: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  1 | import Foundation
  2 |
  3 | public class URLProtocolStub: URLProtocol {
    |                               `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  4 |     private let stubEntry: StubEntry
  5 |     private let schedules: Schedules = Schedules()
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:193:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |
192 | private struct ResponseSource {
193 |     let response: URLResponse
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 |     let bodyStream: InputStream
195 |     let contentRange: ClosedRange<Int>?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:198:26: error: cannot find type 'URLRequest' in scope
196 |     private let originalResponseAsset: HTTPResponseAsset
197 |     private let currentResponseAsset: HTTPResponseAsset
198 |     private let request: URLRequest
    |                          `- error: cannot find type 'URLRequest' in scope
199 |     private let url: URL
200 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:201:19: error: cannot find type 'URLRequest' in scope
199 |     private let url: URL
200 |
201 |     init(request: URLRequest, responseAsset: HTTPResponseAsset) throws {
    |                   `- error: cannot find type 'URLRequest' in scope
202 |         let builder = try ResponseSourceBuilder(request: request, responseAsset: responseAsset)
203 |         self.originalResponseAsset = responseAsset
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:212:23: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 |     }
211 |
212 |     var httpCookies: [HTTPCookie]? {
    |                       `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
213 |         guard request.httpShouldHandleCookies else { return nil }
214 |         let headerFields = currentResponseAsset.headerFields
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:218:26: error: cannot find type 'URLRequest' in scope
216 |     }
217 |
218 |     var redirectRequest: URLRequest? {
    |                          `- error: cannot find type 'URLRequest' in scope
219 |         guard let redirectURL = currentResponseAsset.redirectURL else { return nil }
220 |         var result = request
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:239:26: error: cannot find type 'URLRequest' in scope
237 |
238 | private class ResponseSourceBuilder {
239 |     private let request: URLRequest
    |                          `- error: cannot find type 'URLRequest' in scope
240 |     private let originalResponseAsset: HTTPResponseAsset
241 |     private(set) var currentResponseAsset: HTTPResponseAsset
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:243:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 |     private(set) var currentResponseAsset: HTTPResponseAsset
242 |     private(set) var url: URL!
243 |     private(set) var response: HTTPURLResponse!
    |                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 |     private(set) var bodyStream: InputStream!
245 |     private var bodyStreamLength: Int = 0
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:248:19: error: cannot find type 'URLRequest' in scope
246 |     private(set) var contentRange: ClosedRange<Int>?
247 |
248 |     init(request: URLRequest, responseAsset: HTTPResponseAsset) throws {
    |                   `- error: cannot find type 'URLRequest' in scope
249 |         self.request = request
250 |         self.originalResponseAsset = responseAsset
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:358:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
356 |     }
357 |
358 |     private func makeResponse() -> HTTPURLResponse? {
    |                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
359 |         return HTTPURLResponse(url: url,
360 |                                statusCode: currentResponseAsset.statusCode,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:53:36: error: cannot find type 'URLRequest' in scope
51 |     }
52 |
53 |     public func entry(for request: URLRequest) -> StubEntry? {
   |                                    `- error: cannot find type 'URLRequest' in scope
54 |         return syncQueue.sync(execute: {
55 |             return entries.last(where: { $0.responds(to: request) })
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:15:21: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'currentRequest'
 13 |
 14 |     public override class func canInit(with task: URLSessionTask) -> Bool {
 15 |         return task.currentRequest.map({ canInit(with: $0) }) ?? false
    |                     `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'currentRequest'
 16 |     }
 17 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:29:9: error: 'super' members cannot be referenced in a root class
 27 |         }
 28 |         self.stubEntry = stubEntry
 29 |         super.init(request: request, cachedResponse: nil, client: client)
    |         `- error: 'super' members cannot be referenced in a root class
 30 |     }
 31 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:35:34: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'currentRequest'
 33 |                             cachedResponse: CachedURLResponse?,
 34 |                             client: URLProtocolClient?) {
 35 |         guard let request = task.currentRequest else { preconditionFailure() }
    |                                  `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'currentRequest'
 36 |         self.init(request: request, cachedResponse: cachedResponse, client: client)
 37 |         self.sessionTask = task
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:41:58: error: cannot find 'request' in scope
 39 |
 40 |     public override func startLoading() {
 41 |         let responseAsset = stubEntry.responseAsset(for: request)
    |                                                          `- error: cannot find 'request' in scope
 42 |         do {
 43 |             if let error = responseAsset.error {
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:18:44: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func responseAsset(for request: URLRequest) -> HTTPResponseAsset {
   |                                            `- error: cannot find type 'URLRequest' in scope
19 |         var result = assetProvider(request)
20 |         if result.bodyStreamGenerator != nil && result.headerFields[HTTPHeaderName.eTag] == nil {
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:46:62: error: cannot find 'request' in scope
 44 |                 throw error
 45 |             }
 46 |             let responseSource = try ResponseSource(request: request, responseAsset: responseAsset)
    |                                                              `- error: cannot find 'request' in scope
 47 |             scheduleToResume(with: responseSource)
 48 |         } catch {
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:48:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
 46 |             let responseSource = try ResponseSource(request: request, responseAsset: responseAsset)
 47 |             scheduleToResume(with: responseSource)
 48 |         } catch {
    |           `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
 49 |             scheduleToReportError(error, afterDelay: responseAsset.responseDelay)
 50 |         }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:63:18: error: value of type 'URLProtocolStub' has no member 'client'
 61 |         schedules.errorReport = Schedule(delay: delay, work: { [weak self] in
 62 |             guard let self = self else { return }
 63 |             self.client?.urlProtocol(self, didFailWithError: error)
    |                  `- error: value of type 'URLProtocolStub' has no member 'client'
 64 |         })
 65 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:70:63: error: cannot find 'request' in scope
 68 |         func setCookiesIfNeeded() {
 69 |             guard let cookies = responseSource.httpCookies else { return }
 70 |             HTTPCookieStorage.shared.setCookies(cookies, for: request.url,
    |                                                               `- error: cannot find 'request' in scope
 71 |                                                 mainDocumentURL: request.mainDocumentURL)
 72 |         }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:71:66: error: cannot find 'request' in scope
 69 |             guard let cookies = responseSource.httpCookies else { return }
 70 |             HTTPCookieStorage.shared.setCookies(cookies, for: request.url,
 71 |                                                 mainDocumentURL: request.mainDocumentURL)
    |                                                                  `- error: cannot find 'request' in scope
 72 |         }
 73 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:70:31: error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
 68 |         func setCookiesIfNeeded() {
 69 |             guard let cookies = responseSource.httpCookies else { return }
 70 |             HTTPCookieStorage.shared.setCookies(cookies, for: request.url,
    |                               `- error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
 71 |                                                 mainDocumentURL: request.mainDocumentURL)
 72 |         }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:76:13: error: cannot find 'client' in scope
 74 |         func redirectIfNeeded() {
 75 |             guard let redirectRequest = responseSource.redirectRequest else { return }
 76 |             client?.urlProtocol(self, wasRedirectedTo: redirectRequest,
    |             `- error: cannot find 'client' in scope
 77 |                                 redirectResponse: responseSource.response)
 78 |         }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:81:13: error: cannot find 'client' in scope
 79 |
 80 |         func sendResponse() {
 81 |             client?.urlProtocol(self, didReceive: responseSource.response,
    |             `- error: cannot find 'client' in scope
 82 |                                 cacheStoragePolicy: .notAllowed)
 83 |         }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:82:54: error: cannot infer contextual base in reference to member 'notAllowed'
 80 |         func sendResponse() {
 81 |             client?.urlProtocol(self, didReceive: responseSource.response,
 82 |                                 cacheStoragePolicy: .notAllowed)
    |                                                      `- error: cannot infer contextual base in reference to member 'notAllowed'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:107:37: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'observe'
105 |
106 |     private func startObservingTaskState() {
107 |         taskStateKVO = sessionTask?.observe(\.state, options: .initial) { [weak self] (task, _) in
    |                                     `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'observe'
108 |             self?.taskDidChangeState(task)
109 |         }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:107:45: error: cannot infer key path type from context; consider explicitly specifying a root type
105 |
106 |     private func startObservingTaskState() {
107 |         taskStateKVO = sessionTask?.observe(\.state, options: .initial) { [weak self] (task, _) in
    |                                             `- error: cannot infer key path type from context; consider explicitly specifying a root type
108 |             self?.taskDidChangeState(task)
109 |         }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:107:64: error: cannot infer contextual base in reference to member 'initial'
105 |
106 |     private func startObservingTaskState() {
107 |         taskStateKVO = sessionTask?.observe(\.state, options: .initial) { [weak self] (task, _) in
    |                                                                `- error: cannot infer contextual base in reference to member 'initial'
108 |             self?.taskDidChangeState(task)
109 |         }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:107:94: error: cannot infer type of closure parameter '_' without a type annotation
105 |
106 |     private func startObservingTaskState() {
107 |         taskStateKVO = sessionTask?.observe(\.state, options: .initial) { [weak self] (task, _) in
    |                                                                                              `- error: cannot infer type of closure parameter '_' without a type annotation
108 |             self?.taskDidChangeState(task)
109 |         }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:113:21: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'state'
111 |
112 |     private func taskDidChangeState(_ task: URLSessionTask) {
113 |         switch task.state {
    |                     `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'state'
114 |         case .suspended:
115 |             streamReader?.suspend()
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:126:24: error: 'nil' requires a contextual type
124 |         schedules.cancelAll()
125 |         streamReader = nil
126 |         taskStateKVO = nil
    |                        `- error: 'nil' requires a contextual type
127 |     }
128 | }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:132:9: error: cannot find 'client' in scope
130 | extension URLProtocolStub: StreamReaderDelegate {
131 |     fileprivate func streamReader(_ streamReader: StreamReader, didRead data: Data) {
132 |         client?.urlProtocol(self, didLoad: data)
    |         `- error: cannot find 'client' in scope
133 |     }
134 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:137:9: error: cannot find 'client' in scope
135 |     fileprivate func streamReaderDidFinish(_ streamReader: StreamReader) {
136 |         self.streamReader = nil
137 |         client?.urlProtocolDidFinishLoading(self)
    |         `- error: cannot find 'client' in scope
138 |     }
139 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:142:9: error: cannot find 'client' in scope
140 |     fileprivate func streamReader(_ streamReader: StreamReader, didFailWithError error: Error) {
141 |         self.streamReader = nil
142 |         client?.urlProtocol(self, didFailWithError: error)
    |         `- error: cannot find 'client' in scope
143 |     }
144 | }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:154:13: warning: capture of 'work' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 |     init(delay: TimeInterval, work: @escaping () -> Void) {
153 |         self.timer = Timer.scheduledTimer(withTimeInterval: delay, repeats: false, block: { _ in
154 |             work()
    |             |- warning: capture of 'work' with non-sendable type '() -> 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'
155 |         })
156 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:215:27: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
213 |         guard request.httpShouldHandleCookies else { return nil }
214 |         let headerFields = currentResponseAsset.headerFields
215 |         return HTTPCookie.cookies(withResponseHeaderFields: headerFields.dictionary, for: url)
    |                           `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
216 |     }
217 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:332:23: warning: 'scanString(_:into:)' is deprecated: renamed to 'scanString(_:)'
330 |         // https://developer.mozilla.org/docs/Web/HTTP/Headers/Range
331 |         let scanner = Scanner(string: string)
332 |         guard scanner.scanString("bytes=", into: nil) else { return nil }
    |                       |- warning: 'scanString(_:into:)' is deprecated: renamed to 'scanString(_:)'
    |                       `- note: use 'scanString(_:)' instead
333 |
334 |         func scanNumber() -> Int? {
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:341:23: warning: 'scanString(_:into:)' is deprecated: renamed to 'scanString(_:)'
339 |
340 |         let lower = scanNumber()
341 |         guard scanner.scanString("-", into: nil) else { return nil }
    |                       |- warning: 'scanString(_:into:)' is deprecated: renamed to 'scanString(_:)'
    |                       `- note: use 'scanString(_:)' instead
342 |         let upper = scanNumber()
343 |         guard scanner.isAtEnd else { return nil }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:359:16: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
357 |
358 |     private func makeResponse() -> HTTPURLResponse? {
359 |         return HTTPURLResponse(url: url,
    |                `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
360 |                                statusCode: currentResponseAsset.statusCode,
361 |                                httpVersion: "HTTP/1.1",
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:423:53: warning: capture of 'self' with non-sendable type 'StreamReader?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
384 | }
385 |
386 | private class StreamReader {
    |               `- note: class 'StreamReader' does not conform to the 'Sendable' protocol
387 |     private enum Constant {
388 |         static let transferInterval: TimeInterval = 0.25
    :
421 |
422 |         let timer = Timer(fire: Date(), interval: Constant.transferInterval, repeats: true,
423 |                           block: { [weak self] _ in self?.transferData() })
    |                                                     `- warning: capture of 'self' with non-sendable type 'StreamReader?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
424 |         RunLoop.current.add(timer, forMode: .default)
425 |         self.timer = timer
BUILD FAILURE 6.0 linux