Build Information
Successful build of SwiftNet, reference 2.0.6 (24560f
), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 06:14:05 UTC.
Swift 6 data race errors: 23
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/neothXT/SwiftNet.git
Reference: 2.0.6
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/neothXT/SwiftNet
* tag 2.0.6 -> FETCH_HEAD
HEAD is now at 24560fd Merge pull request #4 from neothXT/rc/2.0.6
Cloned https://github.com/neothXT/SwiftNet.git
Revision (git rev-parse @):
24560fd41b16c78b5d6090167d6a8748be4bcb8f
SUCCESS checkout https://github.com/neothXT/SwiftNet.git at 2.0.6
Fetching https://github.com/apple/swift-syntax.git
[1/66399] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git from cache (3.93s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.1.1 (3.86s)
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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swiftnet",
"name": "SwiftNet",
"url": "https://github.com/neothXT/SwiftNet.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftNet",
"dependencies": [
{
"identity": "swift-syntax",
"name": "swift-syntax",
"url": "https://github.com/apple/swift-syntax.git",
"version": "509.1.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-syntax",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/neothXT/SwiftNet.git
[1/1859] Fetching swiftnet
Fetched https://github.com/neothXT/SwiftNet.git from cache (0.89s)
Fetching https://github.com/apple/swift-syntax.git from cache
Fetched https://github.com/apple/swift-syntax.git from cache (1.17s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.1.1 (0.03s)
Creating working copy for https://github.com/neothXT/SwiftNet.git
Working copy of https://github.com/neothXT/SwiftNet.git resolved at 2.0.6 (24560fd)
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
warning: '.resolve-product-dependencies': dependency 'swiftnet' is not used by any target
Found 1 product dependencies
- swift-syntax
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/neothXT/SwiftNet.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/20] Write sources
[17/20] Write swift-version--7754E27361AE5C74.txt
[19/38] Emitting module SwiftSyntax509
[20/38] Compiling SwiftSyntax509 Empty.swift
[21/84] Compiling SwiftSyntax AbsolutePosition.swift
[22/84] Compiling SwiftSyntax Assert.swift
[23/84] Compiling SwiftSyntax BumpPtrAllocator.swift
[24/84] Compiling SwiftSyntax CommonAncestor.swift
[25/84] Compiling SwiftSyntax Convenience.swift
[26/89] Compiling SwiftSyntax MemoryLayout.swift
[27/89] Compiling SwiftSyntax MissingNodeInitializers.swift
[28/89] Compiling SwiftSyntax RawSyntax.swift
[29/89] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[30/89] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[31/89] Compiling SwiftSyntax SyntaxText.swift
[32/89] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[33/89] Compiling SwiftSyntax TokenDiagnostic.swift
[34/89] Compiling SwiftSyntax TokenSyntax.swift
[35/89] Compiling SwiftSyntax Trivia.swift
[36/89] Compiling SNUtilities AccessTokenConvertible.swift
[37/89] Emitting module SNUtilities
[38/89] Compiling SNUtilities AccessTokenConvertible.swift
[39/89] Emitting module SNUtilities
[40/89] Compiling SNUtilities Method.swift
[41/89] Compiling SNUtilities EndpointDescriptor.swift
[42/89] Compiling SNUtilities AccessTokenStrategy.swift
[43/89] Compiling SNUtilities EndpointData.swift
[44/89] Compiling SNUtilities Boundary.swift
[45/89] Compiling SNUtilities SNAccessToken.swift
[46/89] Compiling SNUtilities Boundary.swift
[47/89] Compiling SNUtilities SNAccessToken.swift
[48/89] Compiling SNUtilities Method.swift
[49/89] Compiling SNUtilities EndpointDescriptor.swift
[50/89] Compiling SNUtilities AccessTokenStrategy.swift
[51/89] Compiling SNUtilities EndpointData.swift
[52/89] Compiling SwiftSyntax Syntax.swift
[53/89] Compiling SwiftSyntax SyntaxArena.swift
[54/89] Compiling SwiftSyntax SyntaxChildren.swift
[55/89] Compiling SwiftSyntax SyntaxCollection.swift
[56/89] Compiling SwiftSyntax SyntaxData.swift
[57/89] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[58/89] Compiling SwiftSyntax SyntaxBaseNodes.swift
[59/89] Compiling SwiftSyntax SyntaxCollections.swift
[60/89] Compiling SwiftSyntax SyntaxEnum.swift
[61/89] Compiling SwiftSyntax SyntaxKind.swift
[62/89] Emitting module SwiftSyntax
[63/89] Compiling SwiftSyntax Utils.swift
[64/89] Compiling SwiftSyntax ChildNameForKeyPath.swift
[65/89] Compiling SwiftSyntax Keyword.swift
[66/89] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[67/89] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[68/89] Compiling SwiftSyntax RawSyntaxTokenView.swift
[69/89] Compiling SwiftSyntax SourceLength.swift
[70/89] Compiling SwiftSyntax SourceLocation.swift
[71/89] Compiling SwiftSyntax SourcePresence.swift
[72/89] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[73/89] Compiling SwiftSyntax Tokens.swift
[74/89] Compiling SwiftSyntax TriviaPieces.swift
[75/89] Compiling SwiftSyntax RawSyntaxNodes.swift
[76/89] Compiling SwiftSyntax RawSyntaxValidation.swift
[77/89] Compiling SwiftSyntax SyntaxDeclNodes.swift
[78/89] Compiling SwiftSyntax SyntaxRewriter.swift
[79/89] Compiling SwiftSyntax SyntaxTraits.swift
[80/89] Compiling SwiftSyntax SyntaxTransform.swift
[81/89] Compiling SwiftSyntax SyntaxVisitor.swift
[82/89] Compiling SwiftSyntax TokenKind.swift
[83/89] Compiling SwiftSyntax SyntaxExprNodes.swift
[84/89] Compiling SwiftSyntax SyntaxNodes.swift
[85/89] Compiling SwiftSyntax SyntaxPatternNodes.swift
[86/89] Compiling SwiftSyntax SyntaxStmtNodes.swift
[87/89] Compiling SwiftSyntax SyntaxTypeNodes.swift
[88/141] Compiling SwiftDiagnostics Message.swift
[89/141] Compiling SwiftDiagnostics Note.swift
[90/141] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[91/141] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[92/141] Compiling SwiftDiagnostics Diagnostic.swift
[93/141] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[94/141] Compiling SwiftDiagnostics FixIt.swift
[95/141] Compiling SwiftDiagnostics Convenience.swift
[96/141] Emitting module SwiftDiagnostics
[97/141] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[98/141] Compiling SwiftBasicFormat Syntax+Extensions.swift
[99/141] Emitting module SwiftBasicFormat
[100/141] Compiling SwiftBasicFormat BasicFormat.swift
[101/141] Compiling SwiftParser Statements.swift
[102/141] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[103/141] Compiling SwiftParser StringLiterals.swift
[104/141] Compiling SwiftParser SwiftParserCompatibility.swift
[105/145] Compiling SwiftParser Lexeme.swift
[106/145] Compiling SwiftParser LexemeSequence.swift
[107/145] Compiling SwiftParser Lexer.swift
[108/145] Compiling SwiftParser RegexLiteralLexer.swift
[109/145] Compiling SwiftParser SyntaxUtils.swift
[110/145] Compiling SwiftParser TokenConsumer.swift
[111/145] Compiling SwiftParser TokenPrecedence.swift
[112/145] Compiling SwiftParser TokenSpec.swift
[113/145] Compiling SwiftParser Attributes.swift
[114/145] Compiling SwiftParser Availability.swift
[115/145] Compiling SwiftParser CharacterInfo.swift
[116/145] Compiling SwiftParser CollectionNodes+Parsable.swift
[117/145] Compiling SwiftParser Declarations.swift
[118/145] Emitting module SwiftParser
[119/145] Compiling SwiftParser IsLexerClassified.swift
[120/145] Compiling SwiftParser LayoutNodes+Parsable.swift
[121/145] Compiling SwiftParser Parser+TokenSpecSet.swift
[122/145] Compiling SwiftParser TokenSpecStaticMembers.swift
[123/145] Compiling SwiftParser Names.swift
[124/145] Compiling SwiftParser Nominals.swift
[125/145] Compiling SwiftParser Parameters.swift
[126/145] Compiling SwiftParser ParseSourceFile.swift
[127/145] Compiling SwiftParser Parser.swift
[128/145] Compiling SwiftParser Patterns.swift
[129/145] Compiling SwiftParser Recovery.swift
[130/145] Compiling SwiftParser Specifiers.swift
[131/145] Compiling SwiftParser UnicodeScalarExtensions.swift
[132/145] Compiling SwiftParser Lookahead.swift
[133/145] Compiling SwiftParser LoopProgressCondition.swift
[134/145] Compiling SwiftParser Modifiers.swift
[135/145] Compiling SwiftParser TokenSpecSet.swift
[136/145] Compiling SwiftParser TopLevel.swift
[137/145] Compiling SwiftParser TriviaParser.swift
[138/145] Compiling SwiftParser Types.swift
[139/145] Compiling SwiftParser Directives.swift
[140/145] Compiling SwiftParser ExperimentalFeatures.swift
[141/145] Compiling SwiftParser Expressions.swift
[142/145] Compiling SwiftParser IncrementalParseTransition.swift
[143/145] Compiling SwiftParser Cursor.swift
[144/168] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[145/169] Compiling SwiftOperators PrecedenceGroup.swift
[146/170] Compiling SwiftOperators PrecedenceGraph.swift
[147/170] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[148/170] Compiling SwiftOperators OperatorTable.swift
[149/170] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[150/170] Compiling SwiftOperators SyntaxSynthesis.swift
[151/170] Compiling SwiftParserDiagnostics PresenceUtils.swift
[152/170] Compiling SwiftOperators OperatorTable+Semantics.swift
[153/170] Compiling SwiftOperators OperatorError+Diagnostics.swift
[154/170] Compiling SwiftOperators OperatorTable+Defaults.swift
[155/170] Compiling SwiftOperators OperatorTable+Folding.swift
[156/170] Compiling SwiftOperators OperatorError.swift
[157/170] Compiling SwiftOperators Operator.swift
[158/170] Emitting module SwiftOperators
[159/170] Compiling SwiftParserDiagnostics Utils.swift
[160/170] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[161/170] Compiling SwiftParserDiagnostics MissingNodesError.swift
[162/170] Compiling SwiftParserDiagnostics MissingTokenError.swift
[163/170] Emitting module SwiftParserDiagnostics
[164/170] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[165/170] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[166/170] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[167/170] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[168/170] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[169/184] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[170/185] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[171/185] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[172/185] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[173/185] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[174/185] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[175/185] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[176/185] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[177/185] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[178/185] Compiling SwiftSyntaxBuilder Indenter.swift
[179/185] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[180/185] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[181/185] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[182/185] Emitting module SwiftSyntaxBuilder
[183/185] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[184/199] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[185/199] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[186/199] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[187/199] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[188/199] Compiling SwiftSyntaxMacros AccessorMacro.swift
[189/199] Compiling SwiftSyntaxMacros AttachedMacro.swift
[190/200] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[191/200] Compiling SwiftSyntaxMacros Macro+Format.swift
[192/200] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[193/200] Compiling SwiftSyntaxMacros Macro.swift
[194/200] Compiling SwiftSyntaxMacros MemberMacro.swift
[195/200] Emitting module SwiftSyntaxMacros
[196/200] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[197/200] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[198/200] Compiling SwiftSyntaxMacros PeerMacro.swift
[199/208] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[200/208] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[201/208] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[202/208] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[203/208] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[204/208] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[205/208] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[206/208] Emitting module SwiftSyntaxMacroExpansion
[207/215] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[208/215] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[209/215] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[210/215] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[211/215] Emitting module SwiftCompilerPluginMessageHandling
[212/215] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[213/215] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[214/217] Emitting module SwiftCompilerPlugin
[215/217] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[216/223] Compiling SNMacros SNMacrosPlugin.swift
[217/223] Compiling SNMacros SNDiagnostics.swift
[218/223] Compiling SNMacros VariableDetector.swift
[219/223] Compiling SNMacros EndpointMacro.swift
[220/223] 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 nonisolated 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 nonisolated 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>(
[221/223] 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 nonisolated 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 nonisolated 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>(
[221/223] Write Objects.LinkFileList
[222/223] Linking SNMacros-tool
[224/225] Emitting module SwiftNetMacros
[225/225] Compiling SwiftNetMacros SwiftNetMacros.swift
[226/250] 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 |
[227/250] 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 |
[228/250] 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 |
[229/250] 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 nonisolated 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 nonisolated 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/Request/AnyPublisher + toAsyncTask.swift:31:34: warning: task-isolated value of type 'Result<Output, any Error>' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
29 | } receiveValue: { output in
30 | finishedWithoutValue = false
31 | continuation.resume(with: .success(output))
| `- warning: task-isolated value of type 'Result<Output, any Error>' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
32 | }
33 | }
[230/250] 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 nonisolated 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 nonisolated 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/Request/AnyPublisher + toAsyncTask.swift:31:34: warning: task-isolated value of type 'Result<Output, any Error>' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
29 | } receiveValue: { output in
30 | finishedWithoutValue = false
31 | continuation.resume(with: .success(output))
| `- warning: task-isolated value of type 'Result<Output, any Error>' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
32 | }
33 | }
[231/250] 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 nonisolated 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 nonisolated 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/Request/AnyPublisher + toAsyncTask.swift:31:34: warning: task-isolated value of type 'Result<Output, any Error>' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
29 | } receiveValue: { output in
30 | finishedWithoutValue = false
31 | continuation.resume(with: .success(output))
| `- warning: task-isolated value of type 'Result<Output, any Error>' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
32 | }
33 | }
[232/250] Compiling SwiftNet URLRequest + cURL.swift
[233/250] Compiling SwiftNet CertificateExplorer.swift
[234/250] 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 |
[235/250] 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 |
[236/252] 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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
[237/252] 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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:63:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
61 | let publisher: PassthroughSubject<AccessTokenConvertible, Error> = .init()
62 |
63 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
64 | do {
65 | let token = try await task()
| `- note: closure captures non-Sendable 'task'
66 | publisher.send(token)
| `- note: closure captures non-Sendable 'publisher'
67 | } catch {
68 | publisher.send(completion: .failure(error))
[238/252] 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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:63:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
61 | let publisher: PassthroughSubject<AccessTokenConvertible, Error> = .init()
62 |
63 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
64 | do {
65 | let token = try await task()
| `- note: closure captures non-Sendable 'task'
66 | publisher.send(token)
| `- note: closure captures non-Sendable 'publisher'
67 | } catch {
68 | publisher.send(completion: .failure(error))
[239/252] 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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:63:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
61 | let publisher: PassthroughSubject<AccessTokenConvertible, Error> = .init()
62 |
63 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
64 | do {
65 | let token = try await task()
| `- note: closure captures non-Sendable 'task'
66 | publisher.send(token)
| `- note: closure captures non-Sendable 'publisher'
67 | } catch {
68 | publisher.send(completion: .failure(error))
[240/252] 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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()
[241/252] 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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()
[242/252] 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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()
[243/252] 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 | }
[244/252] 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 | }
[245/252] 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 nonisolated 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 nonisolated 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
[246/252] 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 nonisolated 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 nonisolated 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
[247/252] 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 nonisolated 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 nonisolated 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
[248/252] 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 nonisolated 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 nonisolated 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: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: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: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 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:174:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
172 | let wrapper: PassthroughSubject<U, Error> = .init()
173 |
174 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
175 | do {
176 | let data = try await task(
| `- note: closure captures 'self' which is accessible to code in the current task
177 | for: endpoint,
178 | responseType: responseType,
[249/252] 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 nonisolated 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 nonisolated 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: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: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: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 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:174:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
172 | let wrapper: PassthroughSubject<U, Error> = .init()
173 |
174 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
175 | do {
176 | let data = try await task(
| `- note: closure captures 'self' which is accessible to code in the current task
177 | for: endpoint,
178 | responseType: responseType,
[250/252] 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 nonisolated 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 nonisolated 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: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: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: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 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftNet/Request/SNProvider.swift:174:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
172 | let wrapper: PassthroughSubject<U, Error> = .init()
173 |
174 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
175 | do {
176 | let data = try await task(
| `- note: closure captures 'self' which is accessible to code in the current task
177 | for: endpoint,
178 | responseType: responseType,
[251/252] 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:152:46: warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
134 |
135 | /// Sends message to WebSocket server
136 | open func send(_ message: URLSessionWebSocketTask.Message, completion: @escaping (Error?) -> Void) {
| `- note: parameter 'completion' is implicitly non-sendable
137 | if !isConnected {
138 | if isConnecting {
:
150 | }
151 |
152 | webSocket.send(message, completionHandler: completion)
| `- warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
153 | }
154 |
/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:172:4: 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
170 |
171 | webSocket.receive { [weak self] in
172 | onReceive($0)
| |- 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'
173 | self?.listen(onReceive: onReceive)
174 | }
/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
[252/252] 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:152:46: warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
134 |
135 | /// Sends message to WebSocket server
136 | open func send(_ message: URLSessionWebSocketTask.Message, completion: @escaping (Error?) -> Void) {
| `- note: parameter 'completion' is implicitly non-sendable
137 | if !isConnected {
138 | if isConnecting {
:
150 | }
151 |
152 | webSocket.send(message, completionHandler: completion)
| `- warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
153 | }
154 |
/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:172:4: 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
170 |
171 | webSocket.receive { [weak self] in
172 | onReceive($0)
| |- 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'
173 | self?.listen(onReceive: onReceive)
174 | }
/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
Build complete! (54.38s)
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.