Build Information
Successful build of HTTPMock, reference 0.9.3 (526655
), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 00:23:09 UTC.
Swift 6 data race errors: 28
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nearfri/HTTPMock.git
Reference: 0.9.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/nearfri/HTTPMock
* tag 0.9.3 -> FETCH_HEAD
HEAD is now at 5266558 Fix HTTPRequestPredicate.containsQueryItems() bug
Cloned https://github.com/nearfri/HTTPMock.git
Revision (git rev-parse @):
52665587fcd5c483f7b3aa38464b28a6bf08364c
SUCCESS checkout https://github.com/nearfri/HTTPMock.git at 0.9.3
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "httpmock",
"name": "HTTPMock",
"url": "https://github.com/nearfri/HTTPMock.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/HTTPMock",
"dependencies": [
]
}
]
}
Fetching https://github.com/nearfri/HTTPMock.git
[1/125] Fetching httpmock
Fetched https://github.com/nearfri/HTTPMock.git from cache (1.17s)
Creating working copy for https://github.com/nearfri/HTTPMock.git
Working copy of https://github.com/nearfri/HTTPMock.git resolved at 0.9.3 (5266558)
warning: '.resolve-product-dependencies': dependency 'httpmock' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/nearfri/HTTPMock.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/15] Compiling HTTPMock StubRegistry.swift
/Users/admin/builder/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] = []
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:27:13: warning: capture of 'self' with non-sendable type 'StubRegistry' in a `@Sendable` closure; 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()
17 |
:
25 | public func register(_ entry: StubEntry) {
26 | syncQueue.async(flags: .barrier) {
27 | self.entries.append(entry)
| `- warning: capture of 'self' with non-sendable type 'StubRegistry' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | }
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:27:33: warning: capture of 'entry' with non-sendable type 'StubEntry' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | public func register(_ entry: StubEntry) {
26 | syncQueue.async(flags: .barrier) {
27 | self.entries.append(entry)
| `- warning: capture of 'entry' with non-sendable type 'StubEntry' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | }
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:3:14: note: class 'StubEntry' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public class StubEntry {
| `- note: class 'StubEntry' does not conform to the 'Sendable' protocol
4 | public let id: String = UUID().uuidString
5 | public let predicate: HTTPRequestPredicate
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:43:13: warning: capture of 'self' with non-sendable type 'StubRegistry' in a `@Sendable` closure; 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()
17 |
:
41 | public func unregister(_ entry: StubEntry) {
42 | syncQueue.async(flags: .barrier) {
43 | self.entries.removeAll(where: { $0 === entry })
| `- warning: capture of 'self' with non-sendable type 'StubRegistry' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:43:52: warning: capture of 'entry' with non-sendable type 'StubEntry' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 | public func unregister(_ entry: StubEntry) {
42 | syncQueue.async(flags: .barrier) {
43 | self.entries.removeAll(where: { $0 === entry })
| `- warning: capture of 'entry' with non-sendable type 'StubEntry' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:3:14: note: class 'StubEntry' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public class StubEntry {
| `- note: class 'StubEntry' does not conform to the 'Sendable' protocol
4 | public let id: String = UUID().uuidString
5 | public let predicate: HTTPRequestPredicate
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:43:52: warning: capture of 'entry' with non-sendable type 'StubEntry' in an isolated closure; this is an error in the Swift 6 language mode
41 | public func unregister(_ entry: StubEntry) {
42 | syncQueue.async(flags: .barrier) {
43 | self.entries.removeAll(where: { $0 === entry })
| `- warning: capture of 'entry' with non-sendable type 'StubEntry' in an isolated closure; this is an error in the Swift 6 language mode
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:3:14: note: class 'StubEntry' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public class StubEntry {
| `- note: class 'StubEntry' does not conform to the 'Sendable' protocol
4 | public let id: String = UUID().uuidString
5 | public let predicate: HTTPRequestPredicate
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:49:13: warning: capture of 'self' with non-sendable type 'StubRegistry' in a `@Sendable` closure; 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()
17 |
:
47 | public func unregisterAllEntries() {
48 | syncQueue.async(flags: .barrier) {
49 | self.entries.removeAll()
| `- warning: capture of 'self' with non-sendable type 'StubRegistry' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | }
51 | }
[4/15] Compiling HTTPMock URLProtocolService.swift
/Users/admin/builder/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
/Users/admin/builder/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
[5/16] Compiling HTTPMock HTTPResponseAsset.swift
[6/16] Compiling HTTPMock InputStreamGenerator.swift
[7/16] Compiling HTTPMock HTTPResponseAssetBuilder.swift
[8/16] Compiling HTTPMock StubEntry.swift
[9/16] Compiling HTTPMock HTTPRequestPredicate.swift
[10/16] Compiling HTTPMock HTTPResponse.swift
[11/16] Compiling HTTPMock HTTPHeaderFields.swift
/Users/admin/builder/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 |
[12/16] Compiling HTTPMock HTTPHeaderName.swift
/Users/admin/builder/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 |
[13/16] Emitting module HTTPMock
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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,
/Users/admin/builder/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] = []
/Users/admin/builder/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
/Users/admin/builder/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
[14/16] Compiling HTTPMock HTTPMediaType.swift
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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,
[15/16] Compiling HTTPMock HTTPMethod.swift
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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"
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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,
[16/16] Compiling HTTPMock URLProtocolStub.swift
/Users/admin/builder/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] = []
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:108:13: warning: capture of 'self' with non-sendable type 'URLProtocolStub?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public class URLProtocolStub: URLProtocol {
| `- note: class 'URLProtocolStub' does not conform to the 'Sendable' protocol
4 | private let stubEntry: StubEntry
5 | private let schedules: Schedules = Schedules()
:
106 | private func startObservingTaskState() {
107 | taskStateKVO = sessionTask?.observe(\.state, options: .initial) { [weak self] (task, _) in
108 | self?.taskDidChangeState(task)
| `- warning: capture of 'self' with non-sendable type 'URLProtocolStub?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | }
110 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 complete! (16.92s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "HTTPMock",
"name" : "HTTPMock",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
},
{
"name" : "ios",
"version" : "11.0"
}
],
"products" : [
{
"name" : "HTTPMock",
"targets" : [
"HTTPMock"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "HTTPMockTests",
"module_type" : "SwiftTarget",
"name" : "HTTPMockTests",
"path" : "Tests/HTTPMockTests",
"sources" : [
"Atomic.swift",
"HTTPHeadersFieldsTests.swift",
"HTTPMediaTypeTests.swift",
"HTTPRequestPredicateTests.swift",
"HTTPResponseAssetBuilderTests.swift",
"HTTPResponseAssetTests.swift",
"HTTPResponseTests.swift",
"InputStream+extensions.swift",
"InputStreamGeneratorTests.swift",
"StubEntryTests.swift",
"StubRegistryTests.swift",
"URLProtocolServiceTests.swift",
"URLProtocolStubTests.swift",
"XCTestCase+extensions.swift"
],
"target_dependencies" : [
"HTTPMock"
],
"type" : "test"
},
{
"c99name" : "HTTPMock",
"module_type" : "SwiftTarget",
"name" : "HTTPMock",
"path" : "Sources/HTTPMock",
"product_memberships" : [
"HTTPMock"
],
"sources" : [
"HTTPHeaderFields.swift",
"HTTPHeaderName.swift",
"HTTPMediaType.swift",
"HTTPMethod.swift",
"HTTPRequestPredicate.swift",
"HTTPResponse.swift",
"HTTPResponseAsset.swift",
"HTTPResponseAssetBuilder.swift",
"InputStreamGenerator.swift",
"StubEntry.swift",
"StubRegistry.swift",
"URLProtocolService.swift",
"URLProtocolStub.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.