This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

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

Build Information

Successful build of SwiftNet with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 23

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/neothXT/SwiftNet.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/neothXT/SwiftNet
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at eec39a1 Update README.md
Cloned https://github.com/neothXT/SwiftNet.git
Revision (git rev-parse @):
eec39a1412970f06f2af5e237ab2084e0c3f4db4
SUCCESS checkout https://github.com/neothXT/SwiftNet.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/neothXT/SwiftNet.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/19] Write sources
[16/19] Write swift-version-6F35C1178C84523A.txt
[18/29] Emitting module SwiftSyntax509
[19/29] Compiling SwiftSyntax509 Empty.swift
[20/75] Compiling SwiftSyntax AbsolutePosition.swift
[21/75] Compiling SwiftSyntax Assert.swift
[22/75] Compiling SwiftSyntax BumpPtrAllocator.swift
[23/75] Compiling SwiftSyntax CommonAncestor.swift
[24/75] Compiling SwiftSyntax Convenience.swift
[25/80] Compiling SwiftSyntax RawSyntaxTokenView.swift
[26/80] Compiling SwiftSyntax SourceLength.swift
[27/80] Compiling SwiftSyntax SourceLocation.swift
[28/80] Compiling SwiftSyntax SourcePresence.swift
[29/80] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[30/80] Compiling SwiftSyntax MemoryLayout.swift
[31/80] Compiling SwiftSyntax MissingNodeInitializers.swift
[32/80] Compiling SwiftSyntax RawSyntax.swift
[33/80] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[34/80] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[35/80] Compiling SwiftSyntax SyntaxText.swift
[36/80] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[37/80] Compiling SwiftSyntax TokenDiagnostic.swift
[38/80] Compiling SwiftSyntax TokenSyntax.swift
[39/80] Compiling SwiftSyntax Trivia.swift
[40/80] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[41/80] Compiling SwiftSyntax SyntaxBaseNodes.swift
[42/80] Compiling SwiftSyntax SyntaxCollections.swift
[43/80] Compiling SwiftSyntax SyntaxEnum.swift
[44/80] Compiling SwiftSyntax SyntaxKind.swift
[45/80] Compiling SNUtilities Boundary.swift
[46/80] Emitting module SNUtilities
[47/80] Compiling SNUtilities AccessTokenStrategy.swift
[48/80] Compiling SNUtilities AccessTokenConvertible.swift
[49/80] Compiling SNUtilities SNAccessToken.swift
[50/80] Compiling SNUtilities EndpointDescriptor.swift
[51/80] Compiling SNUtilities Method.swift
[52/80] Compiling SNUtilities EndpointData.swift
[53/80] Emitting module SwiftSyntax
[54/80] Compiling SwiftSyntax Utils.swift
[55/80] Compiling SwiftSyntax ChildNameForKeyPath.swift
[56/80] Compiling SwiftSyntax Keyword.swift
[57/80] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[58/80] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[59/80] Compiling SwiftSyntax Syntax.swift
[60/80] Compiling SwiftSyntax SyntaxArena.swift
[61/80] Compiling SwiftSyntax SyntaxChildren.swift
[62/80] Compiling SwiftSyntax SyntaxCollection.swift
[63/80] Compiling SwiftSyntax SyntaxData.swift
[64/80] Compiling SwiftSyntax Tokens.swift
[65/80] Compiling SwiftSyntax TriviaPieces.swift
[66/80] Compiling SwiftSyntax RawSyntaxNodes.swift
[67/80] Compiling SwiftSyntax RawSyntaxValidation.swift
[68/80] Compiling SwiftSyntax SyntaxDeclNodes.swift
[69/80] Compiling SwiftSyntax SyntaxExprNodes.swift
[70/80] Compiling SwiftSyntax SyntaxNodes.swift
[71/80] Compiling SwiftSyntax SyntaxPatternNodes.swift
[72/80] Compiling SwiftSyntax SyntaxStmtNodes.swift
[73/80] Compiling SwiftSyntax SyntaxTypeNodes.swift
[74/80] Compiling SwiftSyntax SyntaxRewriter.swift
[75/80] Compiling SwiftSyntax SyntaxTraits.swift
[76/80] Compiling SwiftSyntax SyntaxTransform.swift
[77/80] Compiling SwiftSyntax SyntaxVisitor.swift
[78/80] Compiling SwiftSyntax TokenKind.swift
[79/132] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[80/132] Compiling SwiftDiagnostics Note.swift
[81/132] Compiling SwiftDiagnostics Message.swift
[82/132] Compiling SwiftBasicFormat Syntax+Extensions.swift
[83/132] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[84/132] Compiling SwiftDiagnostics Convenience.swift
[85/132] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[86/132] Compiling SwiftDiagnostics FixIt.swift
[87/132] Compiling SwiftDiagnostics Diagnostic.swift
[88/132] Emitting module SwiftDiagnostics
[89/132] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[90/132] Compiling SwiftParser Lexeme.swift
[91/132] Compiling SwiftParser LexemeSequence.swift
[92/132] Compiling SwiftParser Lexer.swift
[93/132] Compiling SwiftParser RegexLiteralLexer.swift
[94/136] Emitting module SwiftBasicFormat
[95/136] Compiling SwiftBasicFormat BasicFormat.swift
[96/136] Compiling SwiftParser UnicodeScalarExtensions.swift
[97/136] Compiling SwiftParser Lookahead.swift
[98/136] Compiling SwiftParser LoopProgressCondition.swift
[99/136] Compiling SwiftParser Modifiers.swift
[100/136] Compiling SwiftParser Parser.swift
[101/136] Compiling SwiftParser Patterns.swift
[102/136] Compiling SwiftParser Recovery.swift
[103/136] Compiling SwiftParser Specifiers.swift
[104/136] Compiling SwiftParser Names.swift
[105/136] Compiling SwiftParser Nominals.swift
[106/136] Compiling SwiftParser Parameters.swift
[107/136] Compiling SwiftParser ParseSourceFile.swift
[108/136] Compiling SwiftParser Statements.swift
[109/136] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[110/136] Compiling SwiftParser StringLiterals.swift
[111/136] Compiling SwiftParser SwiftParserCompatibility.swift
[112/136] Compiling SwiftParser TokenSpecSet.swift
[113/136] Compiling SwiftParser TopLevel.swift
[114/136] Compiling SwiftParser TriviaParser.swift
[115/136] Compiling SwiftParser Types.swift
[116/136] Compiling SwiftParser SyntaxUtils.swift
[117/136] Compiling SwiftParser TokenConsumer.swift
[118/136] Compiling SwiftParser TokenPrecedence.swift
[119/136] Compiling SwiftParser TokenSpec.swift
[120/136] Compiling SwiftParser Attributes.swift
[121/136] Compiling SwiftParser Availability.swift
[122/136] Compiling SwiftParser CharacterInfo.swift
[123/136] Compiling SwiftParser CollectionNodes+Parsable.swift
[124/136] Compiling SwiftParser Declarations.swift
[125/136] Emitting module SwiftParser
[126/136] Compiling SwiftParser IsLexerClassified.swift
[127/136] Compiling SwiftParser LayoutNodes+Parsable.swift
[128/136] Compiling SwiftParser Parser+TokenSpecSet.swift
[129/136] Compiling SwiftParser TokenSpecStaticMembers.swift
[130/136] Compiling SwiftParser Directives.swift
[131/136] Compiling SwiftParser ExperimentalFeatures.swift
[132/136] Compiling SwiftParser Expressions.swift
[133/136] Compiling SwiftParser IncrementalParseTransition.swift
[134/136] Compiling SwiftParser Cursor.swift
[135/159] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[136/160] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[137/160] Compiling SwiftOperators PrecedenceGroup.swift
[138/160] Compiling SwiftOperators PrecedenceGraph.swift
[139/161] Compiling SwiftOperators SyntaxSynthesis.swift
[140/161] Compiling SwiftParserDiagnostics Utils.swift
[141/161] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[142/161] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[143/161] Compiling SwiftParserDiagnostics PresenceUtils.swift
[144/161] Compiling SwiftOperators OperatorTable+Semantics.swift
[145/161] Compiling SwiftOperators OperatorTable+Defaults.swift
[146/161] Compiling SwiftOperators OperatorTable.swift
[147/161] Compiling SwiftOperators Operator.swift
[148/161] Compiling SwiftOperators OperatorError+Diagnostics.swift
[149/161] Emitting module SwiftOperators
[150/161] Compiling SwiftOperators OperatorError.swift
[151/161] Compiling SwiftOperators OperatorTable+Folding.swift
[152/161] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[153/161] Compiling SwiftParserDiagnostics MissingNodesError.swift
[154/161] Compiling SwiftParserDiagnostics MissingTokenError.swift
[155/161] Emitting module SwiftParserDiagnostics
[156/161] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[157/161] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[158/161] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[159/161] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[160/175] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[161/175] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[162/175] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[163/175] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[164/175] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[165/175] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[166/175] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[167/175] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[168/175] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[169/175] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[170/175] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[171/175] Compiling SwiftSyntaxBuilder Indenter.swift
[172/175] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[173/175] Emitting module SwiftSyntaxBuilder
[174/176] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[175/190] Compiling SwiftSyntaxMacros MemberMacro.swift
[176/191] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[177/191] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[178/191] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[179/191] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[180/191] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[181/191] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[182/191] Compiling SwiftSyntaxMacros Macro+Format.swift
[183/191] Compiling SwiftSyntaxMacros AccessorMacro.swift
[184/191] Compiling SwiftSyntaxMacros AttachedMacro.swift
[185/191] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[186/191] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[187/191] Emitting module SwiftSyntaxMacros
[188/191] Compiling SwiftSyntaxMacros Macro.swift
[189/191] Compiling SwiftSyntaxMacros PeerMacro.swift
[190/199] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[191/199] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[192/199] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[193/199] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[194/199] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[195/199] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[196/199] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[197/199] Emitting module SwiftSyntaxMacroExpansion
[198/206] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[199/206] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[200/206] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[201/206] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[202/206] Emitting module SwiftCompilerPluginMessageHandling
[203/206] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[204/206] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[205/208] Emitting module SwiftCompilerPlugin
[206/208] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[207/214] Compiling SNMacros SNMacrosPlugin.swift
[208/214] Compiling SNMacros VariableDetector.swift
[209/214] Compiling SNMacros SNDiagnostics.swift
[210/214] Compiling SNMacros EndpointMacro.swift
[211/214] Emitting module SNMacros
/Users/admin/builder/spi-builder-workspace/Sources/SNMacros/RequestMacros/RequestMacros.swift:16:28: warning: static property 'passedMethod' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 14 |
 15 | public struct NetworkRequestMacro: AccessorMacro {
 16 |     fileprivate static var passedMethod: String?
    |                            |- warning: static property 'passedMethod' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: convert 'passedMethod' to a 'let' constant to make 'Sendable' shared state immutable
    |                            |- note: annotate 'passedMethod' with '@MainActor' 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 |     public static func expansion<Context, Declaration>(
[212/214] Compiling SNMacros RequestMacros.swift
/Users/admin/builder/spi-builder-workspace/Sources/SNMacros/RequestMacros/RequestMacros.swift:16:28: warning: static property 'passedMethod' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 14 |
 15 | public struct NetworkRequestMacro: AccessorMacro {
 16 |     fileprivate static var passedMethod: String?
    |                            |- warning: static property 'passedMethod' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: convert 'passedMethod' to a 'let' constant to make 'Sendable' shared state immutable
    |                            |- note: annotate 'passedMethod' with '@MainActor' 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 |     public static func expansion<Context, Declaration>(
[212/214] Write Objects.LinkFileList
[213/214] Linking SNMacros
[215/216] Emitting module SwiftNetMacros
[216/216] Compiling SwiftNetMacros SwiftNetMacros.swift
[217/241] Compiling SwiftNet EndpointModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:15:20: warning: static property 'defaultAccessTokenStrategy' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
   |                    |- warning: static property 'defaultAccessTokenStrategy' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'defaultAccessTokenStrategy' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'defaultAccessTokenStrategy' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | 	public static var keychainInstance: Keychain?
17 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
[218/241] Compiling SwiftNet AnyPublisher + asAccessTokenConvertible.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:15:20: warning: static property 'defaultAccessTokenStrategy' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
   |                    |- warning: static property 'defaultAccessTokenStrategy' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'defaultAccessTokenStrategy' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'defaultAccessTokenStrategy' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | 	public static var keychainInstance: Keychain?
17 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
[219/241] Compiling SwiftNet AnyPublisher + toAsyncTask.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:15:20: warning: static property 'defaultAccessTokenStrategy' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
   |                    |- warning: static property 'defaultAccessTokenStrategy' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'defaultAccessTokenStrategy' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'defaultAccessTokenStrategy' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | 	public static var keychainInstance: Keychain?
17 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
[220/241] Compiling SwiftNet SNProvider + Test.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:14:20: warning: static property 'defaultJSONDecoder' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
12 | 	public static var pinningModes: PinningMode = PinningMode(rawValue: 0)
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
   |                    |- warning: static property 'defaultJSONDecoder' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'defaultJSONDecoder' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'defaultJSONDecoder' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
16 | 	public static var keychainInstance: Keychain?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:15:20: warning: static property 'defaultAccessTokenStrategy' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
   |                    |- warning: static property 'defaultAccessTokenStrategy' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'defaultAccessTokenStrategy' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'defaultAccessTokenStrategy' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | 	public static var keychainInstance: Keychain?
17 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/EndpointBuilder/BridgingEndpoint.swift:65:39: warning: capture of 'task' with non-sendable type '() async throws -> any AccessTokenConvertible' in a `@Sendable` closure; this is an error in the Swift 6 language mode
63 |         Task {
64 |             do {
65 |                 let token = try await task()
   |                                       |- warning: capture of 'task' with non-sendable type '() async throws -> any AccessTokenConvertible' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                                       `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
66 |                 publisher.send(token)
67 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/EndpointBuilder/BridgingEndpoint.swift:66:17: warning: capture of 'publisher' with non-sendable type 'PassthroughSubject<any AccessTokenConvertible, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 |             do {
65 |                 let token = try await task()
66 |                 publisher.send(token)
   |                 `- warning: capture of 'publisher' with non-sendable type 'PassthroughSubject<any AccessTokenConvertible, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
67 |             } catch {
68 |                 publisher.send(completion: .failure(error))
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
   |                    `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 3 |     public init()
 4 |     @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/EndpointBuilder/BridgingEndpoint.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
 7 |
 8 | import Foundation
 9 | import Combine
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
10 |
11 | public enum BridgingEndpoint<T: Codable & Equatable>: Endpoint {
[221/241] Compiling SwiftNet BridgingEndpoint.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:14:20: warning: static property 'defaultJSONDecoder' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
12 | 	public static var pinningModes: PinningMode = PinningMode(rawValue: 0)
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
   |                    |- warning: static property 'defaultJSONDecoder' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'defaultJSONDecoder' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'defaultJSONDecoder' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
16 | 	public static var keychainInstance: Keychain?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:15:20: warning: static property 'defaultAccessTokenStrategy' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
   |                    |- warning: static property 'defaultAccessTokenStrategy' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'defaultAccessTokenStrategy' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'defaultAccessTokenStrategy' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | 	public static var keychainInstance: Keychain?
17 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/EndpointBuilder/BridgingEndpoint.swift:65:39: warning: capture of 'task' with non-sendable type '() async throws -> any AccessTokenConvertible' in a `@Sendable` closure; this is an error in the Swift 6 language mode
63 |         Task {
64 |             do {
65 |                 let token = try await task()
   |                                       |- warning: capture of 'task' with non-sendable type '() async throws -> any AccessTokenConvertible' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                                       `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
66 |                 publisher.send(token)
67 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/EndpointBuilder/BridgingEndpoint.swift:66:17: warning: capture of 'publisher' with non-sendable type 'PassthroughSubject<any AccessTokenConvertible, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 |             do {
65 |                 let token = try await task()
66 |                 publisher.send(token)
   |                 `- warning: capture of 'publisher' with non-sendable type 'PassthroughSubject<any AccessTokenConvertible, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
67 |             } catch {
68 |                 publisher.send(completion: .failure(error))
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
   |                    `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 3 |     public init()
 4 |     @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/EndpointBuilder/BridgingEndpoint.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
 7 |
 8 | import Foundation
 9 | import Combine
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
10 |
11 | public enum BridgingEndpoint<T: Codable & Equatable>: Endpoint {
[222/241] Compiling SwiftNet EndpointBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:14:20: warning: static property 'defaultJSONDecoder' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
12 | 	public static var pinningModes: PinningMode = PinningMode(rawValue: 0)
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
   |                    |- warning: static property 'defaultJSONDecoder' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'defaultJSONDecoder' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'defaultJSONDecoder' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
16 | 	public static var keychainInstance: Keychain?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:15:20: warning: static property 'defaultAccessTokenStrategy' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
   |                    |- warning: static property 'defaultAccessTokenStrategy' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'defaultAccessTokenStrategy' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'defaultAccessTokenStrategy' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | 	public static var keychainInstance: Keychain?
17 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/EndpointBuilder/BridgingEndpoint.swift:65:39: warning: capture of 'task' with non-sendable type '() async throws -> any AccessTokenConvertible' in a `@Sendable` closure; this is an error in the Swift 6 language mode
63 |         Task {
64 |             do {
65 |                 let token = try await task()
   |                                       |- warning: capture of 'task' with non-sendable type '() async throws -> any AccessTokenConvertible' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                                       `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
66 |                 publisher.send(token)
67 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/EndpointBuilder/BridgingEndpoint.swift:66:17: warning: capture of 'publisher' with non-sendable type 'PassthroughSubject<any AccessTokenConvertible, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 |             do {
65 |                 let token = try await task()
66 |                 publisher.send(token)
   |                 `- warning: capture of 'publisher' with non-sendable type 'PassthroughSubject<any AccessTokenConvertible, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
67 |             } catch {
68 |                 publisher.send(completion: .failure(error))
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
   |                    `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 3 |     public init()
 4 |     @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/EndpointBuilder/BridgingEndpoint.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
 7 |
 8 | import Foundation
 9 | import Combine
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
10 |
11 | public enum BridgingEndpoint<T: Codable & Equatable>: Endpoint {
[223/243] Compiling SwiftNet SNConfig + extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:17:23: warning: static property 'accessTokenStorage' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
16 | 	public static var keychainInstance: Keychain?
17 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
   |                       |- warning: static property 'accessTokenStorage' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'accessTokenStorage' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'accessTokenStorage' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |     public static var accessTokenErrorCodes: [Int] = [401]
19 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:12:20: warning: static property 'pinningModes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public class SNConfig {
12 | 	public static var pinningModes: PinningMode = PinningMode(rawValue: 0)
   |                    |- warning: static property 'pinningModes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'pinningModes' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'pinningModes' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:13:20: warning: static property 'sitesExcludedFromPinning' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public class SNConfig {
12 | 	public static var pinningModes: PinningMode = PinningMode(rawValue: 0)
13 | 	public static var sitesExcludedFromPinning: [String] = []
   |                    |- warning: static property 'sitesExcludedFromPinning' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'sitesExcludedFromPinning' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'sitesExcludedFromPinning' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:14:20: warning: static property 'defaultJSONDecoder' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
12 | 	public static var pinningModes: PinningMode = PinningMode(rawValue: 0)
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
   |                    |- warning: static property 'defaultJSONDecoder' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'defaultJSONDecoder' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'defaultJSONDecoder' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
16 | 	public static var keychainInstance: Keychain?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:15:20: warning: static property 'defaultAccessTokenStrategy' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
   |                    |- warning: static property 'defaultAccessTokenStrategy' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'defaultAccessTokenStrategy' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'defaultAccessTokenStrategy' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | 	public static var keychainInstance: Keychain?
17 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:16:20: warning: static property 'keychainInstance' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
16 | 	public static var keychainInstance: Keychain?
   |                    |- warning: static property 'keychainInstance' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'keychainInstance' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'keychainInstance' with '@MainActor' 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 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
18 |     public static var accessTokenErrorCodes: [Int] = [401]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:18:23: warning: static property 'accessTokenErrorCodes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
16 | 	public static var keychainInstance: Keychain?
17 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
18 |     public static var accessTokenErrorCodes: [Int] = [401]
   |                       |- warning: static property 'accessTokenErrorCodes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'accessTokenErrorCodes' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'accessTokenErrorCodes' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | 	private init() {}
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Data/AccessTokenStorage.swift:12:28: warning: static property 'accessTokens' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | extension SNConfig {
12 |     fileprivate static var accessTokens: [String: SNAccessToken] = [:]
   |                            |- warning: static property 'accessTokens' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                            |- note: convert 'accessTokens' to a 'let' constant to make 'Sendable' shared state immutable
   |                            |- note: annotate 'accessTokens' with '@MainActor' if property should only be accessed from the main actor
   |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | }
14 |
[224/243] Compiling SwiftNet SNConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:17:23: warning: static property 'accessTokenStorage' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
16 | 	public static var keychainInstance: Keychain?
17 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
   |                       |- warning: static property 'accessTokenStorage' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'accessTokenStorage' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'accessTokenStorage' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |     public static var accessTokenErrorCodes: [Int] = [401]
19 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:12:20: warning: static property 'pinningModes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public class SNConfig {
12 | 	public static var pinningModes: PinningMode = PinningMode(rawValue: 0)
   |                    |- warning: static property 'pinningModes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'pinningModes' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'pinningModes' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:13:20: warning: static property 'sitesExcludedFromPinning' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public class SNConfig {
12 | 	public static var pinningModes: PinningMode = PinningMode(rawValue: 0)
13 | 	public static var sitesExcludedFromPinning: [String] = []
   |                    |- warning: static property 'sitesExcludedFromPinning' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'sitesExcludedFromPinning' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'sitesExcludedFromPinning' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:14:20: warning: static property 'defaultJSONDecoder' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
12 | 	public static var pinningModes: PinningMode = PinningMode(rawValue: 0)
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
   |                    |- warning: static property 'defaultJSONDecoder' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'defaultJSONDecoder' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'defaultJSONDecoder' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
16 | 	public static var keychainInstance: Keychain?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:15:20: warning: static property 'defaultAccessTokenStrategy' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
   |                    |- warning: static property 'defaultAccessTokenStrategy' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'defaultAccessTokenStrategy' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'defaultAccessTokenStrategy' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | 	public static var keychainInstance: Keychain?
17 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:16:20: warning: static property 'keychainInstance' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
16 | 	public static var keychainInstance: Keychain?
   |                    |- warning: static property 'keychainInstance' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'keychainInstance' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'keychainInstance' with '@MainActor' 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 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
18 |     public static var accessTokenErrorCodes: [Int] = [401]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:18:23: warning: static property 'accessTokenErrorCodes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
16 | 	public static var keychainInstance: Keychain?
17 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
18 |     public static var accessTokenErrorCodes: [Int] = [401]
   |                       |- warning: static property 'accessTokenErrorCodes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'accessTokenErrorCodes' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'accessTokenErrorCodes' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | 	private init() {}
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Data/AccessTokenStorage.swift:12:28: warning: static property 'accessTokens' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | extension SNConfig {
12 |     fileprivate static var accessTokens: [String: SNAccessToken] = [:]
   |                            |- warning: static property 'accessTokens' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                            |- note: convert 'accessTokens' to a 'let' constant to make 'Sendable' shared state immutable
   |                            |- note: annotate 'accessTokens' with '@MainActor' if property should only be accessed from the main actor
   |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | }
14 |
[225/243] Compiling SwiftNet AccessTokenStorage.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:17:23: warning: static property 'accessTokenStorage' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
16 | 	public static var keychainInstance: Keychain?
17 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
   |                       |- warning: static property 'accessTokenStorage' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'accessTokenStorage' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'accessTokenStorage' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |     public static var accessTokenErrorCodes: [Int] = [401]
19 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:12:20: warning: static property 'pinningModes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public class SNConfig {
12 | 	public static var pinningModes: PinningMode = PinningMode(rawValue: 0)
   |                    |- warning: static property 'pinningModes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'pinningModes' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'pinningModes' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:13:20: warning: static property 'sitesExcludedFromPinning' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public class SNConfig {
12 | 	public static var pinningModes: PinningMode = PinningMode(rawValue: 0)
13 | 	public static var sitesExcludedFromPinning: [String] = []
   |                    |- warning: static property 'sitesExcludedFromPinning' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'sitesExcludedFromPinning' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'sitesExcludedFromPinning' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:14:20: warning: static property 'defaultJSONDecoder' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
12 | 	public static var pinningModes: PinningMode = PinningMode(rawValue: 0)
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
   |                    |- warning: static property 'defaultJSONDecoder' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'defaultJSONDecoder' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'defaultJSONDecoder' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
16 | 	public static var keychainInstance: Keychain?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:15:20: warning: static property 'defaultAccessTokenStrategy' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
   |                    |- warning: static property 'defaultAccessTokenStrategy' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'defaultAccessTokenStrategy' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'defaultAccessTokenStrategy' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | 	public static var keychainInstance: Keychain?
17 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:16:20: warning: static property 'keychainInstance' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
16 | 	public static var keychainInstance: Keychain?
   |                    |- warning: static property 'keychainInstance' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'keychainInstance' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'keychainInstance' with '@MainActor' 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 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
18 |     public static var accessTokenErrorCodes: [Int] = [401]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:18:23: warning: static property 'accessTokenErrorCodes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
16 | 	public static var keychainInstance: Keychain?
17 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
18 |     public static var accessTokenErrorCodes: [Int] = [401]
   |                       |- warning: static property 'accessTokenErrorCodes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'accessTokenErrorCodes' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'accessTokenErrorCodes' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | 	private init() {}
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Data/AccessTokenStorage.swift:12:28: warning: static property 'accessTokens' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | extension SNConfig {
12 |     fileprivate static var accessTokens: [String: SNAccessToken] = [:]
   |                            |- warning: static property 'accessTokens' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                            |- note: convert 'accessTokens' to a 'let' constant to make 'Sendable' shared state immutable
   |                            |- note: annotate 'accessTokens' with '@MainActor' if property should only be accessed from the main actor
   |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | }
14 |
[226/243] Compiling SwiftNet URLRequest + cURL.swift
[227/243] Compiling SwiftNet CertificateExplorer.swift
[228/243] Compiling SwiftNet Keychain.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/PinningMode.swift:17:20: warning: static property 'ssl' is not concurrency-safe because non-'Sendable' type 'PinningMode' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public struct PinningMode: OptionSet {
   |               `- note: consider making struct 'PinningMode' conform to the 'Sendable' protocol
11 | 	public let rawValue: Int
12 |
   :
15 | 	}
16 |
17 | 	public static let ssl = PinningMode(rawValue: 1 << 0)
   |                    |- warning: static property 'ssl' is not concurrency-safe because non-'Sendable' type 'PinningMode' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: annotate 'ssl' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | 	public static let certificate = PinningMode(rawValue: 1 << 1)
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/PinningMode.swift:18:20: warning: static property 'certificate' is not concurrency-safe because non-'Sendable' type 'PinningMode' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public struct PinningMode: OptionSet {
   |               `- note: consider making struct 'PinningMode' conform to the 'Sendable' protocol
11 | 	public let rawValue: Int
12 |
   :
16 |
17 | 	public static let ssl = PinningMode(rawValue: 1 << 0)
18 | 	public static let certificate = PinningMode(rawValue: 1 << 1)
   |                    |- warning: static property 'certificate' is not concurrency-safe because non-'Sendable' type 'PinningMode' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: annotate 'certificate' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | }
20 |
[229/243] Compiling SwiftNet PinningMode.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/PinningMode.swift:17:20: warning: static property 'ssl' is not concurrency-safe because non-'Sendable' type 'PinningMode' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public struct PinningMode: OptionSet {
   |               `- note: consider making struct 'PinningMode' conform to the 'Sendable' protocol
11 | 	public let rawValue: Int
12 |
   :
15 | 	}
16 |
17 | 	public static let ssl = PinningMode(rawValue: 1 << 0)
   |                    |- warning: static property 'ssl' is not concurrency-safe because non-'Sendable' type 'PinningMode' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: annotate 'ssl' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | 	public static let certificate = PinningMode(rawValue: 1 << 1)
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/PinningMode.swift:18:20: warning: static property 'certificate' is not concurrency-safe because non-'Sendable' type 'PinningMode' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public struct PinningMode: OptionSet {
   |               `- note: consider making struct 'PinningMode' conform to the 'Sendable' protocol
11 | 	public let rawValue: Int
12 |
   :
16 |
17 | 	public static let ssl = PinningMode(rawValue: 1 << 0)
18 | 	public static let certificate = PinningMode(rawValue: 1 << 1)
   |                    |- warning: static property 'certificate' is not concurrency-safe because non-'Sendable' type 'PinningMode' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: annotate 'certificate' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | }
20 |
[230/243] Compiling SwiftNet UploadResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Debugging/SNDebugInfo.swift:27:21: warning: static property 'loggers' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 25 |
 26 | public class SNDebugInfo {
 27 | 	private static var loggers: [String: SNLogger] = [:]
    |                     |- warning: static property 'loggers' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'loggers' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'loggers' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 28 |
 29 | 	private init() {}
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Debugging/SNError.swift:11:13: warning: stored property 'type' of 'Sendable'-conforming struct 'SNError' has non-sendable type 'SNError.ErrorType'; this is an error in the Swift 6 language mode
 9 |
10 | public struct SNError: Error {
11 | 	public let type: ErrorType
   |             `- warning: stored property 'type' of 'Sendable'-conforming struct 'SNError' has non-sendable type 'SNError.ErrorType'; this is an error in the Swift 6 language mode
12 | 	public let details: SNErrorDetails?
13 | 	public let data: Data?
   :
21 |
22 | public extension SNError {
23 | 	enum ErrorType {
   |       `- note: consider making enum 'ErrorType' conform to the 'Sendable' protocol
24 | 		case failedToBuildRequest, failedToMapResponse, unexpectedResponse, authenticationFailed, notConnected, emptyResponse, conversionFailed, noInternetConnection, requestFinished, finishedWithoutValue
25 | 	}
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Debugging/SNError.swift:12:13: warning: stored property 'details' of 'Sendable'-conforming struct 'SNError' has non-sendable type 'SNErrorDetails?'; this is an error in the Swift 6 language mode
10 | public struct SNError: Error {
11 | 	public let type: ErrorType
12 | 	public let details: SNErrorDetails?
   |             `- warning: stored property 'details' of 'Sendable'-conforming struct 'SNError' has non-sendable type 'SNErrorDetails?'; this is an error in the Swift 6 language mode
13 | 	public let data: Data?
14 |
   :
60 | }
61 |
62 | public struct SNErrorDetails {
   |               `- note: consider making struct 'SNErrorDetails' conform to the 'Sendable' protocol
63 | 	public let statusCode: Int
64 | 	public let localizedString: String
[231/243] Compiling SwiftNet SNDebugInfo.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Debugging/SNDebugInfo.swift:27:21: warning: static property 'loggers' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 25 |
 26 | public class SNDebugInfo {
 27 | 	private static var loggers: [String: SNLogger] = [:]
    |                     |- warning: static property 'loggers' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'loggers' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'loggers' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 28 |
 29 | 	private init() {}
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Debugging/SNError.swift:11:13: warning: stored property 'type' of 'Sendable'-conforming struct 'SNError' has non-sendable type 'SNError.ErrorType'; this is an error in the Swift 6 language mode
 9 |
10 | public struct SNError: Error {
11 | 	public let type: ErrorType
   |             `- warning: stored property 'type' of 'Sendable'-conforming struct 'SNError' has non-sendable type 'SNError.ErrorType'; this is an error in the Swift 6 language mode
12 | 	public let details: SNErrorDetails?
13 | 	public let data: Data?
   :
21 |
22 | public extension SNError {
23 | 	enum ErrorType {
   |       `- note: consider making enum 'ErrorType' conform to the 'Sendable' protocol
24 | 		case failedToBuildRequest, failedToMapResponse, unexpectedResponse, authenticationFailed, notConnected, emptyResponse, conversionFailed, noInternetConnection, requestFinished, finishedWithoutValue
25 | 	}
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Debugging/SNError.swift:12:13: warning: stored property 'details' of 'Sendable'-conforming struct 'SNError' has non-sendable type 'SNErrorDetails?'; this is an error in the Swift 6 language mode
10 | public struct SNError: Error {
11 | 	public let type: ErrorType
12 | 	public let details: SNErrorDetails?
   |             `- warning: stored property 'details' of 'Sendable'-conforming struct 'SNError' has non-sendable type 'SNErrorDetails?'; this is an error in the Swift 6 language mode
13 | 	public let data: Data?
14 |
   :
60 | }
61 |
62 | public struct SNErrorDetails {
   |               `- note: consider making struct 'SNErrorDetails' conform to the 'Sendable' protocol
63 | 	public let statusCode: Int
64 | 	public let localizedString: String
[232/243] Compiling SwiftNet SNError.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Debugging/SNDebugInfo.swift:27:21: warning: static property 'loggers' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 25 |
 26 | public class SNDebugInfo {
 27 | 	private static var loggers: [String: SNLogger] = [:]
    |                     |- warning: static property 'loggers' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'loggers' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'loggers' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 28 |
 29 | 	private init() {}
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Debugging/SNError.swift:11:13: warning: stored property 'type' of 'Sendable'-conforming struct 'SNError' has non-sendable type 'SNError.ErrorType'; this is an error in the Swift 6 language mode
 9 |
10 | public struct SNError: Error {
11 | 	public let type: ErrorType
   |             `- warning: stored property 'type' of 'Sendable'-conforming struct 'SNError' has non-sendable type 'SNError.ErrorType'; this is an error in the Swift 6 language mode
12 | 	public let details: SNErrorDetails?
13 | 	public let data: Data?
   :
21 |
22 | public extension SNError {
23 | 	enum ErrorType {
   |       `- note: consider making enum 'ErrorType' conform to the 'Sendable' protocol
24 | 		case failedToBuildRequest, failedToMapResponse, unexpectedResponse, authenticationFailed, notConnected, emptyResponse, conversionFailed, noInternetConnection, requestFinished, finishedWithoutValue
25 | 	}
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Debugging/SNError.swift:12:13: warning: stored property 'details' of 'Sendable'-conforming struct 'SNError' has non-sendable type 'SNErrorDetails?'; this is an error in the Swift 6 language mode
10 | public struct SNError: Error {
11 | 	public let type: ErrorType
12 | 	public let details: SNErrorDetails?
   |             `- warning: stored property 'details' of 'Sendable'-conforming struct 'SNError' has non-sendable type 'SNErrorDetails?'; this is an error in the Swift 6 language mode
13 | 	public let data: Data?
14 |
   :
60 | }
61 |
62 | public struct SNErrorDetails {
   |               `- note: consider making struct 'SNErrorDetails' conform to the 'Sendable' protocol
63 | 	public let statusCode: Int
64 | 	public let localizedString: String
[233/243] Emitting module SwiftNet
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:12:20: warning: static property 'pinningModes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public class SNConfig {
12 | 	public static var pinningModes: PinningMode = PinningMode(rawValue: 0)
   |                    |- warning: static property 'pinningModes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'pinningModes' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'pinningModes' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:13:20: warning: static property 'sitesExcludedFromPinning' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public class SNConfig {
12 | 	public static var pinningModes: PinningMode = PinningMode(rawValue: 0)
13 | 	public static var sitesExcludedFromPinning: [String] = []
   |                    |- warning: static property 'sitesExcludedFromPinning' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'sitesExcludedFromPinning' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'sitesExcludedFromPinning' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:14:20: warning: static property 'defaultJSONDecoder' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
12 | 	public static var pinningModes: PinningMode = PinningMode(rawValue: 0)
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
   |                    |- warning: static property 'defaultJSONDecoder' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'defaultJSONDecoder' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'defaultJSONDecoder' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
16 | 	public static var keychainInstance: Keychain?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:15:20: warning: static property 'defaultAccessTokenStrategy' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
   |                    |- warning: static property 'defaultAccessTokenStrategy' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'defaultAccessTokenStrategy' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'defaultAccessTokenStrategy' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | 	public static var keychainInstance: Keychain?
17 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:16:20: warning: static property 'keychainInstance' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
16 | 	public static var keychainInstance: Keychain?
   |                    |- warning: static property 'keychainInstance' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'keychainInstance' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'keychainInstance' with '@MainActor' 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 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
18 |     public static var accessTokenErrorCodes: [Int] = [401]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:17:23: warning: static property 'accessTokenStorage' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
16 | 	public static var keychainInstance: Keychain?
17 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
   |                       |- warning: static property 'accessTokenStorage' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'accessTokenStorage' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'accessTokenStorage' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |     public static var accessTokenErrorCodes: [Int] = [401]
19 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:18:23: warning: static property 'accessTokenErrorCodes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
16 | 	public static var keychainInstance: Keychain?
17 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
18 |     public static var accessTokenErrorCodes: [Int] = [401]
   |                       |- warning: static property 'accessTokenErrorCodes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'accessTokenErrorCodes' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'accessTokenErrorCodes' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | 	private init() {}
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Data/AccessTokenStorage.swift:12:28: warning: static property 'accessTokens' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | extension SNConfig {
12 |     fileprivate static var accessTokens: [String: SNAccessToken] = [:]
   |                            |- warning: static property 'accessTokens' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                            |- note: convert 'accessTokens' to a 'let' constant to make 'Sendable' shared state immutable
   |                            |- note: annotate 'accessTokens' with '@MainActor' if property should only be accessed from the main actor
   |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | }
14 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Data/Encodable + extensions.swift:95:20: warning: static property 'keepEmptyCollections' is not concurrency-safe because non-'Sendable' type 'EncodableConversionOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 85 | }
 86 |
 87 | public struct EncodableConversionOptions: OptionSet {
    |               `- note: consider making struct 'EncodableConversionOptions' conform to the 'Sendable' protocol
 88 | 	public let rawValue: Int
 89 |
    :
 93 |
 94 | 	/// Keeps empty collections in final output
 95 | 	public static let keepEmptyCollections = EncodableConversionOptions(rawValue: 1 << 0)
    |                    |- warning: static property 'keepEmptyCollections' is not concurrency-safe because non-'Sendable' type 'EncodableConversionOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: annotate 'keepEmptyCollections' with '@MainActor' if property should only be accessed from the main actor
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 96 | }
 97 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Debugging/SNDebugInfo.swift:27:21: warning: static property 'loggers' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 25 |
 26 | public class SNDebugInfo {
 27 | 	private static var loggers: [String: SNLogger] = [:]
    |                     |- warning: static property 'loggers' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'loggers' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'loggers' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 28 |
 29 | 	private init() {}
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Debugging/SNError.swift:11:13: warning: stored property 'type' of 'Sendable'-conforming struct 'SNError' has non-sendable type 'SNError.ErrorType'; this is an error in the Swift 6 language mode
 9 |
10 | public struct SNError: Error {
11 | 	public let type: ErrorType
   |             `- warning: stored property 'type' of 'Sendable'-conforming struct 'SNError' has non-sendable type 'SNError.ErrorType'; this is an error in the Swift 6 language mode
12 | 	public let details: SNErrorDetails?
13 | 	public let data: Data?
   :
21 |
22 | public extension SNError {
23 | 	enum ErrorType {
   |       `- note: consider making enum 'ErrorType' conform to the 'Sendable' protocol
24 | 		case failedToBuildRequest, failedToMapResponse, unexpectedResponse, authenticationFailed, notConnected, emptyResponse, conversionFailed, noInternetConnection, requestFinished, finishedWithoutValue
25 | 	}
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Debugging/SNError.swift:12:13: warning: stored property 'details' of 'Sendable'-conforming struct 'SNError' has non-sendable type 'SNErrorDetails?'; this is an error in the Swift 6 language mode
10 | public struct SNError: Error {
11 | 	public let type: ErrorType
12 | 	public let details: SNErrorDetails?
   |             `- warning: stored property 'details' of 'Sendable'-conforming struct 'SNError' has non-sendable type 'SNErrorDetails?'; this is an error in the Swift 6 language mode
13 | 	public let data: Data?
14 |
   :
60 | }
61 |
62 | public struct SNErrorDetails {
   |               `- note: consider making struct 'SNErrorDetails' conform to the 'Sendable' protocol
63 | 	public let statusCode: Int
64 | 	public let localizedString: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/PinningMode.swift:17:20: warning: static property 'ssl' is not concurrency-safe because non-'Sendable' type 'PinningMode' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public struct PinningMode: OptionSet {
   |               `- note: consider making struct 'PinningMode' conform to the 'Sendable' protocol
11 | 	public let rawValue: Int
12 |
   :
15 | 	}
16 |
17 | 	public static let ssl = PinningMode(rawValue: 1 << 0)
   |                    |- warning: static property 'ssl' is not concurrency-safe because non-'Sendable' type 'PinningMode' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: annotate 'ssl' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | 	public static let certificate = PinningMode(rawValue: 1 << 1)
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/PinningMode.swift:18:20: warning: static property 'certificate' is not concurrency-safe because non-'Sendable' type 'PinningMode' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public struct PinningMode: OptionSet {
   |               `- note: consider making struct 'PinningMode' conform to the 'Sendable' protocol
11 | 	public let rawValue: Int
12 |
   :
16 |
17 | 	public static let ssl = PinningMode(rawValue: 1 << 0)
18 | 	public static let certificate = PinningMode(rawValue: 1 << 1)
   |                    |- warning: static property 'certificate' is not concurrency-safe because non-'Sendable' type 'PinningMode' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: annotate 'certificate' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/SNNetworkMonitor.swift:16:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SNNetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
10 | import Network
11 |
12 | public class SNNetworkMonitor {
   |              `- note: class 'SNNetworkMonitor' does not conform to the 'Sendable' protocol
13 | 	private let monitor = NWPathMonitor()
14 | 	private let connectionPublisher: PassthroughSubject<ConnectionType, Never> = .init()
15 |
16 | 	static let shared = SNNetworkMonitor()
   |             |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SNNetworkMonitor' 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 init() { }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/SNSessionDelegate.swift:11:14: warning: non-final class 'SNSimpleSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  9 | import Combine
 10 |
 11 | public class SNSimpleSessionDelegate: NSObject, URLSessionTaskDelegate {
    |              `- warning: non-final class 'SNSimpleSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 12 | 	let uploadProgress: PassthroughSubject<(id: Int, progress: Double), Never> = .init()
 13 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/SNSessionDelegate.swift:12:6: warning: stored property 'uploadProgress' of 'Sendable'-conforming class 'SNSimpleSessionDelegate' has non-sendable type 'PassthroughSubject<(id: Int, progress: Double), Never>'; this is an error in the Swift 6 language mode
 10 |
 11 | public class SNSimpleSessionDelegate: NSObject, URLSessionTaskDelegate {
 12 | 	let uploadProgress: PassthroughSubject<(id: Int, progress: Double), Never> = .init()
    |      `- warning: stored property 'uploadProgress' of 'Sendable'-conforming class 'SNSimpleSessionDelegate' has non-sendable type 'PassthroughSubject<(id: Int, progress: Double), Never>'; this is an error in the Swift 6 language mode
 13 |
 14 | 	public func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
   |                    `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 3 |     public init()
 4 |     @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/SNSessionDelegate.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
  7 |
  8 | import Foundation
  9 | import Combine
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
 10 |
 11 | public class SNSimpleSessionDelegate: NSObject, URLSessionTaskDelegate {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/SNSessionDelegate.swift:20:14: warning: stored property 'certExplorer' of 'Sendable'-conforming class 'SNSessionDelegate' has non-sendable type 'CertificateExplorer'; this is an error in the Swift 6 language mode
 18 |
 19 | final public class SNSessionDelegate: SNSimpleSessionDelegate {
 20 | 	private let certExplorer = CertificateExplorer()
    |              `- warning: stored property 'certExplorer' of 'Sendable'-conforming class 'SNSessionDelegate' has non-sendable type 'CertificateExplorer'; this is an error in the Swift 6 language mode
 21 | 	private let mode: PinningMode
 22 | 	private let excludedSites: [String]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/CertificateExplorer.swift:10:7: note: class 'CertificateExplorer' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | class CertificateExplorer {
   |       `- note: class 'CertificateExplorer' does not conform to the 'Sendable' protocol
11 | 	func fetchCertificates() -> [SecCertificate] {
12 | 		var certificates: [SecCertificate] = []
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/SNSessionDelegate.swift:21:14: warning: stored property 'mode' of 'Sendable'-conforming class 'SNSessionDelegate' has non-sendable type 'PinningMode'; this is an error in the Swift 6 language mode
 19 | final public class SNSessionDelegate: SNSimpleSessionDelegate {
 20 | 	private let certExplorer = CertificateExplorer()
 21 | 	private let mode: PinningMode
    |              `- warning: stored property 'mode' of 'Sendable'-conforming class 'SNSessionDelegate' has non-sendable type 'PinningMode'; this is an error in the Swift 6 language mode
 22 | 	private let excludedSites: [String]
 23 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/PinningMode.swift:10:15: note: consider making struct 'PinningMode' conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public struct PinningMode: OptionSet {
   |               `- note: consider making struct 'PinningMode' conform to the 'Sendable' protocol
11 | 	public let rawValue: Int
12 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/SNSessionDelegate.swift:24:19: warning: stored property '$__lazy_storage_$_pinnedCerts' of 'Sendable'-conforming class 'SNSessionDelegate' is mutable; this is an error in the Swift 6 language mode
 22 | 	private let excludedSites: [String]
 23 |
 24 | 	private lazy var pinnedCerts = certExplorer.fetchCertificates()
    |                   `- warning: stored property '$__lazy_storage_$_pinnedCerts' of 'Sendable'-conforming class 'SNSessionDelegate' is mutable; this is an error in the Swift 6 language mode
 25 | 	private lazy var pinnedKeys = certExplorer.fetchSLLKeys()
 26 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/WebSocket/SNWebSocket.swift:11:12: warning: non-final class 'SNWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  9 | import Combine
 10 |
 11 | open class SNWebSocket: NSObject {
    |            `- warning: non-final class 'SNWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 12 | 	private var webSocket: URLSessionWebSocketTask
 13 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/WebSocket/SNWebSocket.swift:12:14: warning: stored property 'webSocket' of 'Sendable'-conforming class 'SNWebSocket' is mutable; this is an error in the Swift 6 language mode
 10 |
 11 | open class SNWebSocket: NSObject {
 12 | 	private var webSocket: URLSessionWebSocketTask
    |              `- warning: stored property 'webSocket' of 'Sendable'-conforming class 'SNWebSocket' is mutable; this is an error in the Swift 6 language mode
 13 |
 14 | 	private(set) public var failedToConnect: Bool = false
[234/243] Compiling SwiftNet SNWebSocket.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/WebSocket/SNWebSocket.swift:11:12: warning: non-final class 'SNWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  9 | import Combine
 10 |
 11 | open class SNWebSocket: NSObject {
    |            `- warning: non-final class 'SNWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 12 | 	private var webSocket: URLSessionWebSocketTask
 13 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/WebSocket/SNWebSocket.swift:12:14: warning: stored property 'webSocket' of 'Sendable'-conforming class 'SNWebSocket' is mutable; this is an error in the Swift 6 language mode
 10 |
 11 | open class SNWebSocket: NSObject {
 12 | 	private var webSocket: URLSessionWebSocketTask
    |              `- warning: stored property 'webSocket' of 'Sendable'-conforming class 'SNWebSocket' is mutable; this is an error in the Swift 6 language mode
 13 |
 14 | 	private(set) public var failedToConnect: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/WebSocket/SNWebSocket.swift:140:38: warning: capture of 'completion' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
138 | 			if isConnecting {
139 | 				DispatchQueue.main.asyncAfter(deadline: .now() + 1) { [weak self] in
140 | 					self?.send(message, completion: completion)
    |                                      |- warning: capture of 'completion' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
141 | 				}
142 | 				return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/WebSocket/SNWebSocket.swift:159:30: warning: capture of 'onReceive' with non-sendable type '(Result<URLSessionWebSocketTask.Message, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 | 			if isConnecting {
158 | 				DispatchQueue.main.asyncAfter(deadline: .now() + 1) { [weak self] in
159 | 					self?.listen(onReceive: onReceive)
    |                              |- warning: capture of 'onReceive' with non-sendable type '(Result<URLSessionWebSocketTask.Message, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                              `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
160 | 				}
161 | 				return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/WebSocket/SNWebSocket.swift:180:5: warning: capture of 'onError' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | 		webSocket.sendPing { [weak self] in
179 | 			if let error = $0 {
180 | 				onError(error)
    |     |- warning: capture of 'onError' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
181 | 				if stopAfterError {
182 | 					return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/WebSocket/SNWebSocket.swift:188:54: warning: capture of 'onError' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
186 | 			if let interval = interval {
187 | 				DispatchQueue.main.asyncAfter(deadline: interval) { [weak self] in
188 | 					self?.ping(withTimeInterval: interval, onError: onError)
    |                                                      |- warning: capture of 'onError' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                                      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
189 | 				}
190 | 			}
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/WebSocket/SNWebSocket.swift:159:30: warning: sending 'onReceive' risks causing data races; this is an error in the Swift 6 language mode
157 | 			if isConnecting {
158 | 				DispatchQueue.main.asyncAfter(deadline: .now() + 1) { [weak self] in
159 | 					self?.listen(onReceive: onReceive)
    |                              |- warning: sending 'onReceive' risks causing data races; this is an error in the Swift 6 language mode
    |                              `- note: task-isolated 'onReceive' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
160 | 				}
161 | 				return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/WebSocket/SNWebSocket.swift:140:38: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
138 | 			if isConnecting {
139 | 				DispatchQueue.main.asyncAfter(deadline: .now() + 1) { [weak self] in
140 | 					self?.send(message, completion: completion)
    |                                      |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
141 | 				}
142 | 				return
[235/243] Compiling SwiftNet WebSocketConnectionParameters.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/WebSocket/SNWebSocket.swift:11:12: warning: non-final class 'SNWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  9 | import Combine
 10 |
 11 | open class SNWebSocket: NSObject {
    |            `- warning: non-final class 'SNWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 12 | 	private var webSocket: URLSessionWebSocketTask
 13 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/WebSocket/SNWebSocket.swift:12:14: warning: stored property 'webSocket' of 'Sendable'-conforming class 'SNWebSocket' is mutable; this is an error in the Swift 6 language mode
 10 |
 11 | open class SNWebSocket: NSObject {
 12 | 	private var webSocket: URLSessionWebSocketTask
    |              `- warning: stored property 'webSocket' of 'Sendable'-conforming class 'SNWebSocket' is mutable; this is an error in the Swift 6 language mode
 13 |
 14 | 	private(set) public var failedToConnect: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/WebSocket/SNWebSocket.swift:140:38: warning: capture of 'completion' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
138 | 			if isConnecting {
139 | 				DispatchQueue.main.asyncAfter(deadline: .now() + 1) { [weak self] in
140 | 					self?.send(message, completion: completion)
    |                                      |- warning: capture of 'completion' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
141 | 				}
142 | 				return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/WebSocket/SNWebSocket.swift:159:30: warning: capture of 'onReceive' with non-sendable type '(Result<URLSessionWebSocketTask.Message, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 | 			if isConnecting {
158 | 				DispatchQueue.main.asyncAfter(deadline: .now() + 1) { [weak self] in
159 | 					self?.listen(onReceive: onReceive)
    |                              |- warning: capture of 'onReceive' with non-sendable type '(Result<URLSessionWebSocketTask.Message, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                              `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
160 | 				}
161 | 				return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/WebSocket/SNWebSocket.swift:180:5: warning: capture of 'onError' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | 		webSocket.sendPing { [weak self] in
179 | 			if let error = $0 {
180 | 				onError(error)
    |     |- warning: capture of 'onError' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
181 | 				if stopAfterError {
182 | 					return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/WebSocket/SNWebSocket.swift:188:54: warning: capture of 'onError' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
186 | 			if let interval = interval {
187 | 				DispatchQueue.main.asyncAfter(deadline: interval) { [weak self] in
188 | 					self?.ping(withTimeInterval: interval, onError: onError)
    |                                                      |- warning: capture of 'onError' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                                      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
189 | 				}
190 | 			}
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/WebSocket/SNWebSocket.swift:159:30: warning: sending 'onReceive' risks causing data races; this is an error in the Swift 6 language mode
157 | 			if isConnecting {
158 | 				DispatchQueue.main.asyncAfter(deadline: .now() + 1) { [weak self] in
159 | 					self?.listen(onReceive: onReceive)
    |                              |- warning: sending 'onReceive' risks causing data races; this is an error in the Swift 6 language mode
    |                              `- note: task-isolated 'onReceive' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
160 | 				}
161 | 				return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/WebSocket/SNWebSocket.swift:140:38: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
138 | 			if isConnecting {
139 | 				DispatchQueue.main.asyncAfter(deadline: .now() + 1) { [weak self] in
140 | 					self?.send(message, completion: completion)
    |                                      |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
141 | 				}
142 | 				return
[236/243] Compiling SwiftNet Encodable + extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Data/Encodable + extensions.swift:95:20: warning: static property 'keepEmptyCollections' is not concurrency-safe because non-'Sendable' type 'EncodableConversionOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 85 | }
 86 |
 87 | public struct EncodableConversionOptions: OptionSet {
    |               `- note: consider making struct 'EncodableConversionOptions' conform to the 'Sendable' protocol
 88 | 	public let rawValue: Int
 89 |
    :
 93 |
 94 | 	/// Keeps empty collections in final output
 95 | 	public static let keepEmptyCollections = EncodableConversionOptions(rawValue: 1 << 0)
    |                    |- warning: static property 'keepEmptyCollections' is not concurrency-safe because non-'Sendable' type 'EncodableConversionOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: annotate 'keepEmptyCollections' with '@MainActor' if property should only be accessed from the main actor
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 96 | }
 97 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:14:20: warning: static property 'defaultJSONDecoder' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
12 | 	public static var pinningModes: PinningMode = PinningMode(rawValue: 0)
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
   |                    |- warning: static property 'defaultJSONDecoder' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'defaultJSONDecoder' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'defaultJSONDecoder' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
16 | 	public static var keychainInstance: Keychain?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:15:20: warning: static property 'defaultAccessTokenStrategy' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
   |                    |- warning: static property 'defaultAccessTokenStrategy' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'defaultAccessTokenStrategy' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'defaultAccessTokenStrategy' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | 	public static var keychainInstance: Keychain?
17 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
[237/243] Compiling SwiftNet Endpoint.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Data/Encodable + extensions.swift:95:20: warning: static property 'keepEmptyCollections' is not concurrency-safe because non-'Sendable' type 'EncodableConversionOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 85 | }
 86 |
 87 | public struct EncodableConversionOptions: OptionSet {
    |               `- note: consider making struct 'EncodableConversionOptions' conform to the 'Sendable' protocol
 88 | 	public let rawValue: Int
 89 |
    :
 93 |
 94 | 	/// Keeps empty collections in final output
 95 | 	public static let keepEmptyCollections = EncodableConversionOptions(rawValue: 1 << 0)
    |                    |- warning: static property 'keepEmptyCollections' is not concurrency-safe because non-'Sendable' type 'EncodableConversionOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: annotate 'keepEmptyCollections' with '@MainActor' if property should only be accessed from the main actor
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 96 | }
 97 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:14:20: warning: static property 'defaultJSONDecoder' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
12 | 	public static var pinningModes: PinningMode = PinningMode(rawValue: 0)
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
   |                    |- warning: static property 'defaultJSONDecoder' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'defaultJSONDecoder' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'defaultJSONDecoder' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
16 | 	public static var keychainInstance: Keychain?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:15:20: warning: static property 'defaultAccessTokenStrategy' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
   |                    |- warning: static property 'defaultAccessTokenStrategy' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'defaultAccessTokenStrategy' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'defaultAccessTokenStrategy' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | 	public static var keychainInstance: Keychain?
17 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
[238/243] Compiling SwiftNet SNDataEncoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Data/Encodable + extensions.swift:95:20: warning: static property 'keepEmptyCollections' is not concurrency-safe because non-'Sendable' type 'EncodableConversionOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 85 | }
 86 |
 87 | public struct EncodableConversionOptions: OptionSet {
    |               `- note: consider making struct 'EncodableConversionOptions' conform to the 'Sendable' protocol
 88 | 	public let rawValue: Int
 89 |
    :
 93 |
 94 | 	/// Keeps empty collections in final output
 95 | 	public static let keepEmptyCollections = EncodableConversionOptions(rawValue: 1 << 0)
    |                    |- warning: static property 'keepEmptyCollections' is not concurrency-safe because non-'Sendable' type 'EncodableConversionOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: annotate 'keepEmptyCollections' with '@MainActor' if property should only be accessed from the main actor
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 96 | }
 97 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:14:20: warning: static property 'defaultJSONDecoder' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
12 | 	public static var pinningModes: PinningMode = PinningMode(rawValue: 0)
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
   |                    |- warning: static property 'defaultJSONDecoder' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'defaultJSONDecoder' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'defaultJSONDecoder' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
16 | 	public static var keychainInstance: Keychain?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:15:20: warning: static property 'defaultAccessTokenStrategy' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | 	public static var sitesExcludedFromPinning: [String] = []
14 | 	public static var defaultJSONDecoder: JSONDecoder = .init()
15 | 	public static var defaultAccessTokenStrategy: AccessTokenStrategy = .global
   |                    |- warning: static property 'defaultAccessTokenStrategy' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'defaultAccessTokenStrategy' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'defaultAccessTokenStrategy' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | 	public static var keychainInstance: Keychain?
17 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
[239/243] Compiling SwiftNet SNNetworkMonitor.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/SNNetworkMonitor.swift:16:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SNNetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
10 | import Network
11 |
12 | public class SNNetworkMonitor {
   |              `- note: class 'SNNetworkMonitor' does not conform to the 'Sendable' protocol
13 | 	private let monitor = NWPathMonitor()
14 | 	private let connectionPublisher: PassthroughSubject<ConnectionType, Never> = .init()
15 |
16 | 	static let shared = SNNetworkMonitor()
   |             |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SNNetworkMonitor' 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 init() { }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/SNNetworkMonitor.swift:23:5: warning: capture of 'self' with non-sendable type 'SNNetworkMonitor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 | import Network
11 |
12 | public class SNNetworkMonitor {
   |              `- note: class 'SNNetworkMonitor' does not conform to the 'Sendable' protocol
13 | 	private let monitor = NWPathMonitor()
14 | 	private let connectionPublisher: PassthroughSubject<ConnectionType, Never> = .init()
   :
21 | 		monitor.pathUpdateHandler = { [unowned self] in
22 | 			if $0.status == .requiresConnection || $0.status == .unsatisfied {
23 | 				self.connectionPublisher.send(.unavailable)
   |     `- warning: capture of 'self' with non-sendable type 'SNNetworkMonitor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | 			} else if $0.usesInterfaceType(.cellular) {
25 | 				self.connectionPublisher.send(.cellular)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/SNSessionDelegate.swift:11:14: warning: non-final class 'SNSimpleSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  9 | import Combine
 10 |
 11 | public class SNSimpleSessionDelegate: NSObject, URLSessionTaskDelegate {
    |              `- warning: non-final class 'SNSimpleSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 12 | 	let uploadProgress: PassthroughSubject<(id: Int, progress: Double), Never> = .init()
 13 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/SNSessionDelegate.swift:12:6: warning: stored property 'uploadProgress' of 'Sendable'-conforming class 'SNSimpleSessionDelegate' has non-sendable type 'PassthroughSubject<(id: Int, progress: Double), Never>'; this is an error in the Swift 6 language mode
 10 |
 11 | public class SNSimpleSessionDelegate: NSObject, URLSessionTaskDelegate {
 12 | 	let uploadProgress: PassthroughSubject<(id: Int, progress: Double), Never> = .init()
    |      `- warning: stored property 'uploadProgress' of 'Sendable'-conforming class 'SNSimpleSessionDelegate' has non-sendable type 'PassthroughSubject<(id: Int, progress: Double), Never>'; this is an error in the Swift 6 language mode
 13 |
 14 | 	public func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
   |                    `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 3 |     public init()
 4 |     @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/SNSessionDelegate.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
  7 |
  8 | import Foundation
  9 | import Combine
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
 10 |
 11 | public class SNSimpleSessionDelegate: NSObject, URLSessionTaskDelegate {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/SNSessionDelegate.swift:20:14: warning: stored property 'certExplorer' of 'Sendable'-conforming class 'SNSessionDelegate' has non-sendable type 'CertificateExplorer'; this is an error in the Swift 6 language mode
 18 |
 19 | final public class SNSessionDelegate: SNSimpleSessionDelegate {
 20 | 	private let certExplorer = CertificateExplorer()
    |              `- warning: stored property 'certExplorer' of 'Sendable'-conforming class 'SNSessionDelegate' has non-sendable type 'CertificateExplorer'; this is an error in the Swift 6 language mode
 21 | 	private let mode: PinningMode
 22 | 	private let excludedSites: [String]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/CertificateExplorer.swift:10:7: note: class 'CertificateExplorer' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | class CertificateExplorer {
   |       `- note: class 'CertificateExplorer' does not conform to the 'Sendable' protocol
11 | 	func fetchCertificates() -> [SecCertificate] {
12 | 		var certificates: [SecCertificate] = []
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/SNSessionDelegate.swift:21:14: warning: stored property 'mode' of 'Sendable'-conforming class 'SNSessionDelegate' has non-sendable type 'PinningMode'; this is an error in the Swift 6 language mode
 19 | final public class SNSessionDelegate: SNSimpleSessionDelegate {
 20 | 	private let certExplorer = CertificateExplorer()
 21 | 	private let mode: PinningMode
    |              `- warning: stored property 'mode' of 'Sendable'-conforming class 'SNSessionDelegate' has non-sendable type 'PinningMode'; this is an error in the Swift 6 language mode
 22 | 	private let excludedSites: [String]
 23 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/PinningMode.swift:10:15: note: consider making struct 'PinningMode' conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public struct PinningMode: OptionSet {
   |               `- note: consider making struct 'PinningMode' conform to the 'Sendable' protocol
11 | 	public let rawValue: Int
12 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/SNSessionDelegate.swift:24:19: warning: stored property '$__lazy_storage_$_pinnedCerts' of 'Sendable'-conforming class 'SNSessionDelegate' is mutable; this is an error in the Swift 6 language mode
 22 | 	private let excludedSites: [String]
 23 |
 24 | 	private lazy var pinnedCerts = certExplorer.fetchCertificates()
    |                   `- warning: stored property '$__lazy_storage_$_pinnedCerts' of 'Sendable'-conforming class 'SNSessionDelegate' is mutable; this is an error in the Swift 6 language mode
 25 | 	private lazy var pinnedKeys = certExplorer.fetchSLLKeys()
 26 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/PinningMode.swift:18:20: warning: static property 'certificate' is not concurrency-safe because non-'Sendable' type 'PinningMode' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public struct PinningMode: OptionSet {
   |               `- note: consider making struct 'PinningMode' conform to the 'Sendable' protocol
11 | 	public let rawValue: Int
12 |
   :
16 |
17 | 	public static let ssl = PinningMode(rawValue: 1 << 0)
18 | 	public static let certificate = PinningMode(rawValue: 1 << 1)
   |                    |- warning: static property 'certificate' is not concurrency-safe because non-'Sendable' type 'PinningMode' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: annotate 'certificate' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/PinningMode.swift:17:20: warning: static property 'ssl' is not concurrency-safe because non-'Sendable' type 'PinningMode' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public struct PinningMode: OptionSet {
   |               `- note: consider making struct 'PinningMode' conform to the 'Sendable' protocol
11 | 	public let rawValue: Int
12 |
   :
15 | 	}
16 |
17 | 	public static let ssl = PinningMode(rawValue: 1 << 0)
   |                    |- warning: static property 'ssl' is not concurrency-safe because non-'Sendable' type 'PinningMode' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: annotate 'ssl' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | 	public static let certificate = PinningMode(rawValue: 1 << 1)
19 | }
[240/243] Compiling SwiftNet SNSessionDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/SNNetworkMonitor.swift:16:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SNNetworkMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
10 | import Network
11 |
12 | public class SNNetworkMonitor {
   |              `- note: class 'SNNetworkMonitor' does not conform to the 'Sendable' protocol
13 | 	private let monitor = NWPathMonitor()
14 | 	private let connectionPublisher: PassthroughSubject<ConnectionType, Never> = .init()
15 |
16 | 	static let shared = SNNetworkMonitor()
   |             |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SNNetworkMonitor' 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 init() { }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/SNNetworkMonitor.swift:23:5: warning: capture of 'self' with non-sendable type 'SNNetworkMonitor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 | import Network
11 |
12 | public class SNNetworkMonitor {
   |              `- note: class 'SNNetworkMonitor' does not conform to the 'Sendable' protocol
13 | 	private let monitor = NWPathMonitor()
14 | 	private let connectionPublisher: PassthroughSubject<ConnectionType, Never> = .init()
   :
21 | 		monitor.pathUpdateHandler = { [unowned self] in
22 | 			if $0.status == .requiresConnection || $0.status == .unsatisfied {
23 | 				self.connectionPublisher.send(.unavailable)
   |     `- warning: capture of 'self' with non-sendable type 'SNNetworkMonitor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | 			} else if $0.usesInterfaceType(.cellular) {
25 | 				self.connectionPublisher.send(.cellular)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/SNSessionDelegate.swift:11:14: warning: non-final class 'SNSimpleSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  9 | import Combine
 10 |
 11 | public class SNSimpleSessionDelegate: NSObject, URLSessionTaskDelegate {
    |              `- warning: non-final class 'SNSimpleSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 12 | 	let uploadProgress: PassthroughSubject<(id: Int, progress: Double), Never> = .init()
 13 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/SNSessionDelegate.swift:12:6: warning: stored property 'uploadProgress' of 'Sendable'-conforming class 'SNSimpleSessionDelegate' has non-sendable type 'PassthroughSubject<(id: Int, progress: Double), Never>'; this is an error in the Swift 6 language mode
 10 |
 11 | public class SNSimpleSessionDelegate: NSObject, URLSessionTaskDelegate {
 12 | 	let uploadProgress: PassthroughSubject<(id: Int, progress: Double), Never> = .init()
    |      `- warning: stored property 'uploadProgress' of 'Sendable'-conforming class 'SNSimpleSessionDelegate' has non-sendable type 'PassthroughSubject<(id: Int, progress: Double), Never>'; this is an error in the Swift 6 language mode
 13 |
 14 | 	public func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
   |                    `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 3 |     public init()
 4 |     @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/SNSessionDelegate.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
  7 |
  8 | import Foundation
  9 | import Combine
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
 10 |
 11 | public class SNSimpleSessionDelegate: NSObject, URLSessionTaskDelegate {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/SNSessionDelegate.swift:20:14: warning: stored property 'certExplorer' of 'Sendable'-conforming class 'SNSessionDelegate' has non-sendable type 'CertificateExplorer'; this is an error in the Swift 6 language mode
 18 |
 19 | final public class SNSessionDelegate: SNSimpleSessionDelegate {
 20 | 	private let certExplorer = CertificateExplorer()
    |              `- warning: stored property 'certExplorer' of 'Sendable'-conforming class 'SNSessionDelegate' has non-sendable type 'CertificateExplorer'; this is an error in the Swift 6 language mode
 21 | 	private let mode: PinningMode
 22 | 	private let excludedSites: [String]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/CertificateExplorer.swift:10:7: note: class 'CertificateExplorer' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | class CertificateExplorer {
   |       `- note: class 'CertificateExplorer' does not conform to the 'Sendable' protocol
11 | 	func fetchCertificates() -> [SecCertificate] {
12 | 		var certificates: [SecCertificate] = []
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/SNSessionDelegate.swift:21:14: warning: stored property 'mode' of 'Sendable'-conforming class 'SNSessionDelegate' has non-sendable type 'PinningMode'; this is an error in the Swift 6 language mode
 19 | final public class SNSessionDelegate: SNSimpleSessionDelegate {
 20 | 	private let certExplorer = CertificateExplorer()
 21 | 	private let mode: PinningMode
    |              `- warning: stored property 'mode' of 'Sendable'-conforming class 'SNSessionDelegate' has non-sendable type 'PinningMode'; this is an error in the Swift 6 language mode
 22 | 	private let excludedSites: [String]
 23 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/PinningMode.swift:10:15: note: consider making struct 'PinningMode' conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public struct PinningMode: OptionSet {
   |               `- note: consider making struct 'PinningMode' conform to the 'Sendable' protocol
11 | 	public let rawValue: Int
12 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/SNSessionDelegate.swift:24:19: warning: stored property '$__lazy_storage_$_pinnedCerts' of 'Sendable'-conforming class 'SNSessionDelegate' is mutable; this is an error in the Swift 6 language mode
 22 | 	private let excludedSites: [String]
 23 |
 24 | 	private lazy var pinnedCerts = certExplorer.fetchCertificates()
    |                   `- warning: stored property '$__lazy_storage_$_pinnedCerts' of 'Sendable'-conforming class 'SNSessionDelegate' is mutable; this is an error in the Swift 6 language mode
 25 | 	private lazy var pinnedKeys = certExplorer.fetchSLLKeys()
 26 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/PinningMode.swift:18:20: warning: static property 'certificate' is not concurrency-safe because non-'Sendable' type 'PinningMode' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public struct PinningMode: OptionSet {
   |               `- note: consider making struct 'PinningMode' conform to the 'Sendable' protocol
11 | 	public let rawValue: Int
12 |
   :
16 |
17 | 	public static let ssl = PinningMode(rawValue: 1 << 0)
18 | 	public static let certificate = PinningMode(rawValue: 1 << 1)
   |                    |- warning: static property 'certificate' is not concurrency-safe because non-'Sendable' type 'PinningMode' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: annotate 'certificate' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Session/PinningMode.swift:17:20: warning: static property 'ssl' is not concurrency-safe because non-'Sendable' type 'PinningMode' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public struct PinningMode: OptionSet {
   |               `- note: consider making struct 'PinningMode' conform to the 'Sendable' protocol
11 | 	public let rawValue: Int
12 |
   :
15 | 	}
16 |
17 | 	public static let ssl = PinningMode(rawValue: 1 << 0)
   |                    |- warning: static property 'ssl' is not concurrency-safe because non-'Sendable' type 'PinningMode' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: annotate 'ssl' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | 	public static let certificate = PinningMode(rawValue: 1 << 1)
19 | }
[241/243] Compiling SwiftNet SNProvider + defaultURLMapper.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:15:9: warning: capture of 'completion' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 13 | fileprivate func runOnMain(_ completion: @escaping () -> Void) {
 14 |     DispatchQueue.main.async {
 15 |         completion()
    |         |- warning: capture of 'completion' 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'
 16 |     }
 17 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:18:23: warning: static property 'accessTokenErrorCodes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
16 | 	public static var keychainInstance: Keychain?
17 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
18 |     public static var accessTokenErrorCodes: [Int] = [401]
   |                       |- warning: static property 'accessTokenErrorCodes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'accessTokenErrorCodes' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'accessTokenErrorCodes' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | 	private init() {}
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:176:38: warning: capture of 'self' with non-sendable type 'SNProvider<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 32 |
 33 | @available(macOS 10.15, *)
 34 | open class SNProvider<T: Endpoint> {
    |            `- note: generic class 'SNProvider' does not conform to the 'Sendable' protocol
 35 |     private var didRetry: [String] = []
 36 |     private let endpointURLMapper: EndpointURLMapper
    :
174 |         Task {
175 |             do {
176 |                 let data = try await task(
    |                                      `- warning: capture of 'self' with non-sendable type 'SNProvider<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 |                     for: endpoint,
178 |                     responseType: responseType,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:177:26: warning: capture of 'endpoint' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 32 |
 33 | @available(macOS 10.15, *)
 34 | open class SNProvider<T: Endpoint> {
    |                       `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 35 |     private var didRetry: [String] = []
 36 |     private let endpointURLMapper: EndpointURLMapper
    :
175 |             do {
176 |                 let data = try await task(
177 |                     for: endpoint,
    |                          `- warning: capture of 'endpoint' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 |                     responseType: responseType,
179 |                     expectedStatusCodes: expectedStatusCodes,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:184:17: warning: capture of 'wrapper' with non-sendable type 'PassthroughSubject<U, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
182 |                 )
183 |
184 |                 wrapper.send(data)
    |                 `- warning: capture of 'wrapper' with non-sendable type 'PassthroughSubject<U, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
185 |             } catch {
186 |                 wrapper.send(completion: .failure(error))
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
   |                    `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 3 |     public init()
 4 |     @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:9:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
  7 |
  8 | import Foundation
  9 | @_exported import Combine
    |            `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
 10 | @_exported import SNUtilities
 11 | @_exported import SwiftNetMacros
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:319:5: warning: capture of 'publisher' with non-sendable type 'PassthroughSubject<UploadResponse<U>, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
317 | 		let task = session.uploadTask(with: urlRequest, from: data) { data, response, error in
318 | 			if let error = error {
319 | 				publisher.send(completion: .failure(error))
    |     `- warning: capture of 'publisher' with non-sendable type 'PassthroughSubject<UploadResponse<U>, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
320 | 				return
321 | 			}
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
   |                    `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 3 |     public init()
 4 |     @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:325:37: warning: capture of 'endpoint' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 32 |
 33 | @available(macOS 10.15, *)
 34 | open class SNProvider<T: Endpoint> {
    |                       `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 35 |     private var didRetry: [String] = []
 36 |     private let endpointURLMapper: EndpointURLMapper
    :
323 | 			if (response as? HTTPURLResponse)?.statusCode == 200, let data = data {
324 | 				do {
325 | 					let response = try (decoder ?? endpoint.jsonDecoder).decode(U.self, from: data)
    |                                     `- warning: capture of 'endpoint' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
326 | 					publisher.send(.response(data: response))
327 | 					return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:325:37: warning: implicit capture of 'endpoint' requires that 'T' conforms to `Sendable`; this is an error in the Swift 6 language mode
 32 |
 33 | @available(macOS 10.15, *)
 34 | open class SNProvider<T: Endpoint> {
    |                       `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 35 |     private var didRetry: [String] = []
 36 |     private let endpointURLMapper: EndpointURLMapper
    :
323 | 			if (response as? HTTPURLResponse)?.statusCode == 200, let data = data {
324 | 				do {
325 | 					let response = try (decoder ?? endpoint.jsonDecoder).decode(U.self, from: data)
    |                                     `- warning: implicit capture of 'endpoint' requires that 'T' conforms to `Sendable`; this is an error in the Swift 6 language mode
326 | 					publisher.send(.response(data: response))
327 | 					return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:15:9: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 13 | fileprivate func runOnMain(_ completion: @escaping () -> Void) {
 14 |     DispatchQueue.main.async {
 15 |         completion()
    |         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 16 |     }
 17 | }
[242/243] Compiling SwiftNet SNProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:15:9: warning: capture of 'completion' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 13 | fileprivate func runOnMain(_ completion: @escaping () -> Void) {
 14 |     DispatchQueue.main.async {
 15 |         completion()
    |         |- warning: capture of 'completion' 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'
 16 |     }
 17 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:18:23: warning: static property 'accessTokenErrorCodes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
16 | 	public static var keychainInstance: Keychain?
17 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
18 |     public static var accessTokenErrorCodes: [Int] = [401]
   |                       |- warning: static property 'accessTokenErrorCodes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'accessTokenErrorCodes' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'accessTokenErrorCodes' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | 	private init() {}
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:176:38: warning: capture of 'self' with non-sendable type 'SNProvider<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 32 |
 33 | @available(macOS 10.15, *)
 34 | open class SNProvider<T: Endpoint> {
    |            `- note: generic class 'SNProvider' does not conform to the 'Sendable' protocol
 35 |     private var didRetry: [String] = []
 36 |     private let endpointURLMapper: EndpointURLMapper
    :
174 |         Task {
175 |             do {
176 |                 let data = try await task(
    |                                      `- warning: capture of 'self' with non-sendable type 'SNProvider<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 |                     for: endpoint,
178 |                     responseType: responseType,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:177:26: warning: capture of 'endpoint' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 32 |
 33 | @available(macOS 10.15, *)
 34 | open class SNProvider<T: Endpoint> {
    |                       `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 35 |     private var didRetry: [String] = []
 36 |     private let endpointURLMapper: EndpointURLMapper
    :
175 |             do {
176 |                 let data = try await task(
177 |                     for: endpoint,
    |                          `- warning: capture of 'endpoint' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 |                     responseType: responseType,
179 |                     expectedStatusCodes: expectedStatusCodes,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:184:17: warning: capture of 'wrapper' with non-sendable type 'PassthroughSubject<U, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
182 |                 )
183 |
184 |                 wrapper.send(data)
    |                 `- warning: capture of 'wrapper' with non-sendable type 'PassthroughSubject<U, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
185 |             } catch {
186 |                 wrapper.send(completion: .failure(error))
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
   |                    `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 3 |     public init()
 4 |     @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:9:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
  7 |
  8 | import Foundation
  9 | @_exported import Combine
    |            `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
 10 | @_exported import SNUtilities
 11 | @_exported import SwiftNetMacros
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:319:5: warning: capture of 'publisher' with non-sendable type 'PassthroughSubject<UploadResponse<U>, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
317 | 		let task = session.uploadTask(with: urlRequest, from: data) { data, response, error in
318 | 			if let error = error {
319 | 				publisher.send(completion: .failure(error))
    |     `- warning: capture of 'publisher' with non-sendable type 'PassthroughSubject<UploadResponse<U>, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
320 | 				return
321 | 			}
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
   |                    `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 3 |     public init()
 4 |     @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:325:37: warning: capture of 'endpoint' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 32 |
 33 | @available(macOS 10.15, *)
 34 | open class SNProvider<T: Endpoint> {
    |                       `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 35 |     private var didRetry: [String] = []
 36 |     private let endpointURLMapper: EndpointURLMapper
    :
323 | 			if (response as? HTTPURLResponse)?.statusCode == 200, let data = data {
324 | 				do {
325 | 					let response = try (decoder ?? endpoint.jsonDecoder).decode(U.self, from: data)
    |                                     `- warning: capture of 'endpoint' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
326 | 					publisher.send(.response(data: response))
327 | 					return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:325:37: warning: implicit capture of 'endpoint' requires that 'T' conforms to `Sendable`; this is an error in the Swift 6 language mode
 32 |
 33 | @available(macOS 10.15, *)
 34 | open class SNProvider<T: Endpoint> {
    |                       `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 35 |     private var didRetry: [String] = []
 36 |     private let endpointURLMapper: EndpointURLMapper
    :
323 | 			if (response as? HTTPURLResponse)?.statusCode == 200, let data = data {
324 | 				do {
325 | 					let response = try (decoder ?? endpoint.jsonDecoder).decode(U.self, from: data)
    |                                     `- warning: implicit capture of 'endpoint' requires that 'T' conforms to `Sendable`; this is an error in the Swift 6 language mode
326 | 					publisher.send(.response(data: response))
327 | 					return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:15:9: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 13 | fileprivate func runOnMain(_ completion: @escaping () -> Void) {
 14 |     DispatchQueue.main.async {
 15 |         completion()
    |         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 16 |     }
 17 | }
[243/243] Compiling SwiftNet SNTaskType.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:15:9: warning: capture of 'completion' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 13 | fileprivate func runOnMain(_ completion: @escaping () -> Void) {
 14 |     DispatchQueue.main.async {
 15 |         completion()
    |         |- warning: capture of 'completion' 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'
 16 |     }
 17 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Config/SNConfig.swift:18:23: warning: static property 'accessTokenErrorCodes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
16 | 	public static var keychainInstance: Keychain?
17 |     public static var accessTokenStorage: AccessTokenStorage = SNStorage()
18 |     public static var accessTokenErrorCodes: [Int] = [401]
   |                       |- warning: static property 'accessTokenErrorCodes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'accessTokenErrorCodes' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'accessTokenErrorCodes' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | 	private init() {}
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:176:38: warning: capture of 'self' with non-sendable type 'SNProvider<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 32 |
 33 | @available(macOS 10.15, *)
 34 | open class SNProvider<T: Endpoint> {
    |            `- note: generic class 'SNProvider' does not conform to the 'Sendable' protocol
 35 |     private var didRetry: [String] = []
 36 |     private let endpointURLMapper: EndpointURLMapper
    :
174 |         Task {
175 |             do {
176 |                 let data = try await task(
    |                                      `- warning: capture of 'self' with non-sendable type 'SNProvider<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 |                     for: endpoint,
178 |                     responseType: responseType,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:177:26: warning: capture of 'endpoint' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 32 |
 33 | @available(macOS 10.15, *)
 34 | open class SNProvider<T: Endpoint> {
    |                       `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 35 |     private var didRetry: [String] = []
 36 |     private let endpointURLMapper: EndpointURLMapper
    :
175 |             do {
176 |                 let data = try await task(
177 |                     for: endpoint,
    |                          `- warning: capture of 'endpoint' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 |                     responseType: responseType,
179 |                     expectedStatusCodes: expectedStatusCodes,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:184:17: warning: capture of 'wrapper' with non-sendable type 'PassthroughSubject<U, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
182 |                 )
183 |
184 |                 wrapper.send(data)
    |                 `- warning: capture of 'wrapper' with non-sendable type 'PassthroughSubject<U, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
185 |             } catch {
186 |                 wrapper.send(completion: .failure(error))
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
   |                    `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 3 |     public init()
 4 |     @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:9:12: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
  7 |
  8 | import Foundation
  9 | @_exported import Combine
    |            `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
 10 | @_exported import SNUtilities
 11 | @_exported import SwiftNetMacros
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:319:5: warning: capture of 'publisher' with non-sendable type 'PassthroughSubject<UploadResponse<U>, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
317 | 		let task = session.uploadTask(with: urlRequest, from: data) { data, response, error in
318 | 			if let error = error {
319 | 				publisher.send(completion: .failure(error))
    |     `- warning: capture of 'publisher' with non-sendable type 'PassthroughSubject<UploadResponse<U>, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
320 | 				return
321 | 			}
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
   |                    `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
 3 |     public init()
 4 |     @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:325:37: warning: capture of 'endpoint' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 32 |
 33 | @available(macOS 10.15, *)
 34 | open class SNProvider<T: Endpoint> {
    |                       `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 35 |     private var didRetry: [String] = []
 36 |     private let endpointURLMapper: EndpointURLMapper
    :
323 | 			if (response as? HTTPURLResponse)?.statusCode == 200, let data = data {
324 | 				do {
325 | 					let response = try (decoder ?? endpoint.jsonDecoder).decode(U.self, from: data)
    |                                     `- warning: capture of 'endpoint' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
326 | 					publisher.send(.response(data: response))
327 | 					return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:325:37: warning: implicit capture of 'endpoint' requires that 'T' conforms to `Sendable`; this is an error in the Swift 6 language mode
 32 |
 33 | @available(macOS 10.15, *)
 34 | open class SNProvider<T: Endpoint> {
    |                       `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 35 |     private var didRetry: [String] = []
 36 |     private let endpointURLMapper: EndpointURLMapper
    :
323 | 			if (response as? HTTPURLResponse)?.statusCode == 200, let data = data {
324 | 				do {
325 | 					let response = try (decoder ?? endpoint.jsonDecoder).decode(U.self, from: data)
    |                                     `- warning: implicit capture of 'endpoint' requires that 'T' conforms to `Sendable`; this is an error in the Swift 6 language mode
326 | 					publisher.send(.response(data: response))
327 | 					return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:15:9: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 13 | fileprivate func runOnMain(_ completion: @escaping () -> Void) {
 14 |     DispatchQueue.main.async {
 15 |         completion()
    |         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 16 |     }
 17 | }
Build complete! (66.31s)
Fetching https://github.com/apple/swift-syntax.git
[1/60886] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git from cache (3.02s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.1.1 (1.05s)
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 509.1.1
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-syntax",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "509.0.0",
            "upper_bound" : "510.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-syntax.git"
    }
  ],
  "manifest_display_name" : "SwiftNet",
  "name" : "SwiftNet",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftNet",
      "targets" : [
        "SwiftNet",
        "SNUtilities",
        "SwiftNetMacros"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SNMacros",
      "targets" : [
        "SNMacros"
      ],
      "type" : {
        "macro" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftNetTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftNetTests",
      "path" : "Tests/SwiftNetTests",
      "sources" : [
        "AccessTokenManipulationTests.swift",
        "Comment.swift",
        "EncodableConversionTests.swift",
        "MacroPoweredApproachTests.swift",
        "Post.swift",
        "RemoteEndpoint.swift",
        "SwiftNetTests.swift",
        "TestEndpoint.swift",
        "TestParamsModel.swift",
        "Todo.swift",
        "WebSocketTests.swift"
      ],
      "target_dependencies" : [
        "SwiftNet",
        "SwiftNetMacros",
        "SNMacros"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftNetMacrosTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftNetMacrosTests",
      "path" : "Tests/SwiftNetMacrosTests",
      "product_dependencies" : [
        "SwiftSyntaxMacrosTestSupport"
      ],
      "sources" : [
        "SwiftNetMacrosTests.swift"
      ],
      "target_dependencies" : [
        "SwiftNetMacros"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftNetMacros",
      "module_type" : "SwiftTarget",
      "name" : "SwiftNetMacros",
      "path" : "Sources/SwiftNetMacros",
      "product_memberships" : [
        "SwiftNet"
      ],
      "sources" : [
        "SwiftNetMacros.swift"
      ],
      "target_dependencies" : [
        "SNMacros",
        "SNUtilities"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftNet",
      "module_type" : "SwiftTarget",
      "name" : "SwiftNet",
      "path" : "Sources/SwiftNet",
      "product_memberships" : [
        "SwiftNet"
      ],
      "sources" : [
        "Config/SNConfig + extensions.swift",
        "Config/SNConfig.swift",
        "Data/AccessTokenStorage.swift",
        "Data/Encodable + extensions.swift",
        "Data/Endpoint.swift",
        "Data/SNDataEncoder.swift",
        "Data/UploadResponse.swift",
        "Debugging/SNDebugInfo.swift",
        "Debugging/SNError.swift",
        "Debugging/SNProvider + Test.swift",
        "EndpointBuilder/BridgingEndpoint.swift",
        "EndpointBuilder/EndpointBuilder.swift",
        "EndpointBuilder/EndpointModel.swift",
        "Request/AnyPublisher + asAccessTokenConvertible.swift",
        "Request/AnyPublisher + toAsyncTask.swift",
        "Request/SNProvider + defaultURLMapper.swift",
        "Request/SNProvider.swift",
        "Request/SNTaskType.swift",
        "Request/URLRequest + cURL.swift",
        "Session/CertificateExplorer.swift",
        "Session/Keychain.swift",
        "Session/PinningMode.swift",
        "Session/SNNetworkMonitor.swift",
        "Session/SNSessionDelegate.swift",
        "WebSocket/SNWebSocket.swift",
        "WebSocket/WebSocketConnectionParameters.swift"
      ],
      "target_dependencies" : [
        "SNUtilities",
        "SwiftNetMacros"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SNUtilities",
      "module_type" : "SwiftTarget",
      "name" : "SNUtilities",
      "path" : "Sources/SNUtilities",
      "product_memberships" : [
        "SwiftNet",
        "SNMacros"
      ],
      "sources" : [
        "Authorization/AccessTokenConvertible.swift",
        "Authorization/AccessTokenStrategy.swift",
        "Authorization/SNAccessToken.swift",
        "Request/Boundary.swift",
        "Request/EndpointData.swift",
        "Request/EndpointDescriptor.swift",
        "Request/Method.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SNMacros",
      "module_type" : "SwiftTarget",
      "name" : "SNMacros",
      "path" : "Sources/SNMacros",
      "product_dependencies" : [
        "SwiftSyntaxMacros",
        "SwiftCompilerPlugin"
      ],
      "product_memberships" : [
        "SwiftNet",
        "SNMacros"
      ],
      "sources" : [
        "EndpointMacro/EndpointMacro.swift",
        "RequestMacros/RequestMacros.swift",
        "RequestMacros/VariableDetector.swift",
        "SNDiagnostics.swift",
        "SNMacrosPlugin.swift"
      ],
      "target_dependencies" : [
        "SNUtilities"
      ],
      "type" : "macro"
    }
  ],
  "tools_version" : "5.9"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.