Build Information
Failed to build DSBridge, reference main (92a3d3
), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 20:50:34 UTC.
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/EdgarDegas/DSBridge-Swift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/EdgarDegas/DSBridge-Swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 92a3d3f Merge pull request #4 from EdgarDegas/develop
Cloned https://github.com/EdgarDegas/DSBridge-Swift.git
Revision (git rev-parse @):
92a3d3fc808a3dd8931d2001009c24ad5e4b4b07
SUCCESS checkout https://github.com/EdgarDegas/DSBridge-Swift.git at main
Fetching https://github.com/apple/swift-syntax.git
[1/66399] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git from cache (3.31s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.1.1 (3.61s)
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": "dsbridge-swift",
"name": "DSBridge",
"url": "https://github.com/EdgarDegas/DSBridge-Swift.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DSBridge-Swift",
"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/EdgarDegas/DSBridge-Swift.git
[1/359] Fetching dsbridge-swift
Fetched https://github.com/EdgarDegas/DSBridge-Swift.git from cache (0.84s)
Fetching https://github.com/apple/swift-syntax.git from cache
Fetched https://github.com/apple/swift-syntax.git from cache (0.88s)
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/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 509.1.1
Creating working copy for https://github.com/EdgarDegas/DSBridge-Swift.git
Working copy of https://github.com/EdgarDegas/DSBridge-Swift.git resolved at main (92a3d3f)
warning: '.resolve-product-dependencies': dependency 'dsbridge-swift' 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/EdgarDegas/DSBridge-Swift.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/17] Write sources
[14/17] Write swift-version--7754E27361AE5C74.txt
[16/19] Emitting module SwiftSyntax509
[17/19] Compiling SwiftSyntax509 Empty.swift
[18/65] Compiling SwiftSyntax AbsolutePosition.swift
[19/65] Compiling SwiftSyntax Assert.swift
[20/65] Compiling SwiftSyntax BumpPtrAllocator.swift
[21/65] Compiling SwiftSyntax CommonAncestor.swift
[22/65] Compiling SwiftSyntax Convenience.swift
[23/70] Compiling SwiftSyntax SyntaxText.swift
[24/70] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[25/70] Compiling SwiftSyntax TokenDiagnostic.swift
[26/70] Compiling SwiftSyntax TokenSyntax.swift
[27/70] Compiling SwiftSyntax Trivia.swift
[28/70] Compiling SwiftSyntax MemoryLayout.swift
[29/70] Compiling SwiftSyntax MissingNodeInitializers.swift
[30/70] Compiling SwiftSyntax RawSyntax.swift
[31/70] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[32/70] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[33/70] Compiling SwiftSyntax Syntax.swift
[34/70] Compiling SwiftSyntax SyntaxArena.swift
[35/70] Compiling SwiftSyntax SyntaxChildren.swift
[36/70] Compiling SwiftSyntax SyntaxCollection.swift
[37/70] Compiling SwiftSyntax SyntaxData.swift
[38/70] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[39/70] Compiling SwiftSyntax SyntaxBaseNodes.swift
[40/70] Compiling SwiftSyntax SyntaxCollections.swift
[41/70] Compiling SwiftSyntax SyntaxEnum.swift
[42/70] Compiling SwiftSyntax SyntaxKind.swift
[43/70] Emitting module SwiftSyntax
[44/70] Compiling SwiftSyntax Tokens.swift
[45/70] Compiling SwiftSyntax TriviaPieces.swift
[46/70] Compiling SwiftSyntax RawSyntaxNodes.swift
[47/70] Compiling SwiftSyntax RawSyntaxValidation.swift
[48/70] Compiling SwiftSyntax SyntaxDeclNodes.swift
[49/70] Compiling SwiftSyntax SyntaxExprNodes.swift
[50/70] Compiling SwiftSyntax SyntaxNodes.swift
[51/70] Compiling SwiftSyntax SyntaxPatternNodes.swift
[52/70] Compiling SwiftSyntax SyntaxStmtNodes.swift
[53/70] Compiling SwiftSyntax SyntaxTypeNodes.swift
[54/70] Compiling SwiftSyntax SyntaxRewriter.swift
[55/70] Compiling SwiftSyntax SyntaxTraits.swift
[56/70] Compiling SwiftSyntax SyntaxTransform.swift
[57/70] Compiling SwiftSyntax SyntaxVisitor.swift
[58/70] Compiling SwiftSyntax TokenKind.swift
[59/70] Compiling SwiftSyntax RawSyntaxTokenView.swift
[60/70] Compiling SwiftSyntax SourceLength.swift
[61/70] Compiling SwiftSyntax SourceLocation.swift
[62/70] Compiling SwiftSyntax SourcePresence.swift
[63/70] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[64/70] Compiling SwiftSyntax Utils.swift
[65/70] Compiling SwiftSyntax ChildNameForKeyPath.swift
[66/70] Compiling SwiftSyntax Keyword.swift
[67/70] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[68/70] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[69/122] Compiling SwiftDiagnostics Note.swift
[70/122] Compiling SwiftDiagnostics Message.swift
[71/122] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[72/122] Compiling SwiftDiagnostics FixIt.swift
[73/122] Compiling SwiftDiagnostics Diagnostic.swift
[74/122] Emitting module SwiftDiagnostics
[75/122] Compiling SwiftDiagnostics Convenience.swift
[76/122] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[77/122] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[78/122] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[79/122] Compiling SwiftBasicFormat Syntax+Extensions.swift
[80/122] Compiling SwiftBasicFormat BasicFormat.swift
[81/122] Emitting module SwiftBasicFormat
[82/122] Compiling SwiftParser Lexeme.swift
[83/122] Compiling SwiftParser LexemeSequence.swift
[84/122] Compiling SwiftParser Lexer.swift
[85/122] Compiling SwiftParser RegexLiteralLexer.swift
[86/126] Compiling SwiftParser Names.swift
[87/126] Compiling SwiftParser Nominals.swift
[88/126] Compiling SwiftParser Parameters.swift
[89/126] Compiling SwiftParser ParseSourceFile.swift
[90/126] Compiling SwiftParser UnicodeScalarExtensions.swift
[91/126] Compiling SwiftParser Lookahead.swift
[92/126] Compiling SwiftParser LoopProgressCondition.swift
[93/126] Compiling SwiftParser Modifiers.swift
[94/126] Compiling SwiftParser Statements.swift
[95/126] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[96/126] Compiling SwiftParser StringLiterals.swift
[97/126] Compiling SwiftParser SwiftParserCompatibility.swift
[98/126] Compiling SwiftParser SyntaxUtils.swift
[99/126] Compiling SwiftParser TokenConsumer.swift
[100/126] Compiling SwiftParser TokenPrecedence.swift
[101/126] Compiling SwiftParser TokenSpec.swift
[102/126] Compiling SwiftParser Parser.swift
[103/126] Compiling SwiftParser Patterns.swift
[104/126] Compiling SwiftParser Recovery.swift
[105/126] Compiling SwiftParser Specifiers.swift
[106/126] Compiling SwiftParser TokenSpecSet.swift
[107/126] Compiling SwiftParser TopLevel.swift
[108/126] Compiling SwiftParser TriviaParser.swift
[109/126] Compiling SwiftParser Types.swift
[110/126] Compiling SwiftParser IsLexerClassified.swift
[111/126] Compiling SwiftParser LayoutNodes+Parsable.swift
[112/126] Compiling SwiftParser Parser+TokenSpecSet.swift
[113/126] Compiling SwiftParser TokenSpecStaticMembers.swift
[114/126] Emitting module SwiftParser
[115/126] Compiling SwiftParser Directives.swift
[116/126] Compiling SwiftParser ExperimentalFeatures.swift
[117/126] Compiling SwiftParser Expressions.swift
[118/126] Compiling SwiftParser IncrementalParseTransition.swift
[119/126] Compiling SwiftParser Cursor.swift
[120/126] Compiling SwiftParser Attributes.swift
[121/126] Compiling SwiftParser Availability.swift
[122/126] Compiling SwiftParser CharacterInfo.swift
[123/126] Compiling SwiftParser CollectionNodes+Parsable.swift
[124/126] Compiling SwiftParser Declarations.swift
[125/149] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[126/150] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[127/150] Compiling SwiftOperators OperatorTable+Semantics.swift
[128/151] Compiling SwiftOperators PrecedenceGroup.swift
[129/151] Compiling SwiftOperators OperatorError.swift
[130/151] Compiling SwiftOperators OperatorTable.swift
[131/151] Compiling SwiftOperators PrecedenceGraph.swift
[132/151] Compiling SwiftOperators OperatorTable+Defaults.swift
[133/151] Compiling SwiftOperators OperatorError+Diagnostics.swift
[134/151] Emitting module SwiftOperators
[135/151] Compiling SwiftOperators OperatorTable+Folding.swift
[136/151] Compiling SwiftOperators Operator.swift
[137/151] Compiling SwiftOperators SyntaxSynthesis.swift
[138/151] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[139/151] Compiling SwiftParserDiagnostics Utils.swift
[140/151] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[141/151] Compiling SwiftParserDiagnostics MissingNodesError.swift
[142/151] Compiling SwiftParserDiagnostics MissingTokenError.swift
[143/151] Compiling SwiftParserDiagnostics PresenceUtils.swift
[144/151] Emitting module SwiftParserDiagnostics
[145/151] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[146/151] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[147/151] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[148/151] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[149/151] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[150/165] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[151/166] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[152/166] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[153/166] Emitting module SwiftSyntaxBuilder
[154/166] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[155/166] Compiling SwiftSyntaxBuilder Indenter.swift
[156/166] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[157/166] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[158/166] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[159/166] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[160/166] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[161/166] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[162/166] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[163/166] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[164/166] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[165/180] Compiling SwiftSyntaxMacros Macro.swift
[166/180] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[167/181] Compiling SwiftSyntaxMacros Macro+Format.swift
[168/181] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[169/181] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[170/181] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[171/181] Compiling SwiftSyntaxMacros MemberMacro.swift
[172/181] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[173/181] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[174/181] Emitting module SwiftSyntaxMacros
[175/181] Compiling SwiftSyntaxMacros AccessorMacro.swift
[176/181] Compiling SwiftSyntaxMacros AttachedMacro.swift
[177/181] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[178/181] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[179/181] Compiling SwiftSyntaxMacros PeerMacro.swift
[180/189] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[181/189] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[182/189] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[183/189] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[184/189] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[185/189] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[186/189] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[187/189] Emitting module SwiftSyntaxMacroExpansion
[188/196] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[189/196] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[190/196] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[191/196] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[192/196] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[193/196] Emitting module SwiftCompilerPluginMessageHandling
[194/196] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[195/198] Emitting module SwiftCompilerPlugin
[196/198] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[197/203] Compiling DSBridgeMacros Macros.swift
[198/203] Compiling DSBridgeMacros Unexposed.swift
[199/203] Compiling DSBridgeMacros FunctionDeclSyntax+Extensions.swift
[200/203] Emitting module DSBridgeMacros
[201/203] Compiling DSBridgeMacros Exposed.swift
[201/203] Write Objects.LinkFileList
[202/203] Linking DSBridgeMacros-tool
[204/222] Compiling DSBridge Method.swift
[205/222] Compiling DSBridge MethodQuery.swift
[206/224] Compiling DSBridge JSONSerializer.swift
[207/224] Compiling DSBridge JSONSerializing.swift
[208/224] Compiling DSBridge IncomingInvocation.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Error/ErrorLogging.swift:11:12: warning: var 'sharedLogger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public var sharedLogger: any ErrorLogging = ErrorLogger()
| |- warning: var 'sharedLogger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sharedLogger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sharedLogger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public protocol ErrorLogging {
[209/224] Compiling DSBridge InvocationDispatching.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Error/ErrorLogging.swift:11:12: warning: var 'sharedLogger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public var sharedLogger: any ErrorLogging = ErrorLogger()
| |- warning: var 'sharedLogger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sharedLogger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sharedLogger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public protocol ErrorLogging {
[210/224] Compiling DSBridge FromJS.Response.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Requesting/JavaScriptEvaluating.swift:55:21: warning: capture of 'self' with non-sendable type 'JavaScriptEvaluator?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | public typealias JavaScript = String
24 |
25 | open class JavaScriptEvaluator: JavaScriptEvaluating {
| `- note: class 'JavaScriptEvaluator' does not conform to the 'Sendable' protocol
26 | private let evaluating: (JavaScript) -> Void
27 | private var incrementalID: Int = 0
:
53 | serialQueue.async { [weak self] in
54 | guard
55 | let self,
| `- warning: capture of 'self' with non-sendable type 'JavaScriptEvaluator?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | let completion = completionByID[response.id]
57 | else {
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Requesting/JavaScriptEvaluating.swift:56:49: warning: capture of 'response' with non-sendable type 'FromJS.Response' in a `@Sendable` closure; this is an error in the Swift 6 language mode
54 | guard
55 | let self,
56 | let completion = completionByID[response.id]
| `- warning: capture of 'response' with non-sendable type 'FromJS.Response' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | else {
58 | return
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Requesting/FromJS.Response.swift:11:19: note: consider making struct 'Response' conform to the 'Sendable' protocol
9 |
10 | public enum FromJS {
11 | public struct Response {
| `- note: consider making struct 'Response' conform to the 'Sendable' protocol
12 | let id: Int
13 | let data: Any
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Requesting/JavaScriptEvaluating.swift:61:20: warning: capture of 'response' with non-sendable type 'FromJS.Response' in an isolated local function; this is an error in the Swift 6 language mode
59 | }
60 | defer {
61 | if response.completed {
| `- warning: capture of 'response' with non-sendable type 'FromJS.Response' in an isolated local function; this is an error in the Swift 6 language mode
62 | completionByID.removeValue(forKey: response.id)
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Requesting/FromJS.Response.swift:11:19: note: consider making struct 'Response' conform to the 'Sendable' protocol
9 |
10 | public enum FromJS {
11 | public struct Response {
| `- note: consider making struct 'Response' conform to the 'Sendable' protocol
12 | let id: Int
13 | let data: Any
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Requesting/JavaScriptEvaluating.swift:71:23: warning: capture of 'self' with non-sendable type 'JavaScriptEvaluator?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | public typealias JavaScript = String
24 |
25 | open class JavaScriptEvaluator: JavaScriptEvaluating {
| `- note: class 'JavaScriptEvaluator' does not conform to the 'Sendable' protocol
26 | private let evaluating: (JavaScript) -> Void
27 | private var incrementalID: Int = 0
:
69 | open func evaluate(_ javaScript: JavaScript) {
70 | serialQueue.async { [weak self] in
71 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'JavaScriptEvaluator?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | enqueue(javaScript)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Requesting/JavaScriptEvaluating.swift:78:23: warning: capture of 'self' with non-sendable type 'JavaScriptEvaluator?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | public typealias JavaScript = String
24 |
25 | open class JavaScriptEvaluator: JavaScriptEvaluating {
| `- note: class 'JavaScriptEvaluator' does not conform to the 'Sendable' protocol
26 | private let evaluating: (JavaScript) -> Void
27 | private var incrementalID: Int = 0
:
76 | open func initialize() {
77 | serialQueue.async { [weak self] in
78 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'JavaScriptEvaluator?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | initialized = true
80 | metronome.resume()
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Requesting/JavaScriptEvaluating.swift:90:23: warning: capture of 'self' with non-sendable type 'JavaScriptEvaluator?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | public typealias JavaScript = String
24 |
25 | open class JavaScriptEvaluator: JavaScriptEvaluating {
| `- note: class 'JavaScriptEvaluator' does not conform to the 'Sendable' protocol
26 | private let evaluating: (JavaScript) -> Void
27 | private var incrementalID: Int = 0
:
88 | ) {
89 | serialQueue.async { [weak self] in
90 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'JavaScriptEvaluator?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
91 | defer { incrementalID += 1 }
92 | let id = incrementalID
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Requesting/JavaScriptEvaluating.swift:93:20: warning: capture of 'completion' with non-sendable type 'JavaScriptEvaluator.Completion?' (aka 'Optional<(Any) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
91 | defer { incrementalID += 1 }
92 | let id = incrementalID
93 | if let completion {
| |- warning: capture of 'completion' with non-sendable type 'JavaScriptEvaluator.Completion?' (aka 'Optional<(Any) -> ()>') 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'
94 | completionByID[id] = completion
95 | }
[211/224] Compiling DSBridge JavaScriptEvaluating.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Requesting/JavaScriptEvaluating.swift:55:21: warning: capture of 'self' with non-sendable type 'JavaScriptEvaluator?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | public typealias JavaScript = String
24 |
25 | open class JavaScriptEvaluator: JavaScriptEvaluating {
| `- note: class 'JavaScriptEvaluator' does not conform to the 'Sendable' protocol
26 | private let evaluating: (JavaScript) -> Void
27 | private var incrementalID: Int = 0
:
53 | serialQueue.async { [weak self] in
54 | guard
55 | let self,
| `- warning: capture of 'self' with non-sendable type 'JavaScriptEvaluator?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | let completion = completionByID[response.id]
57 | else {
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Requesting/JavaScriptEvaluating.swift:56:49: warning: capture of 'response' with non-sendable type 'FromJS.Response' in a `@Sendable` closure; this is an error in the Swift 6 language mode
54 | guard
55 | let self,
56 | let completion = completionByID[response.id]
| `- warning: capture of 'response' with non-sendable type 'FromJS.Response' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | else {
58 | return
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Requesting/FromJS.Response.swift:11:19: note: consider making struct 'Response' conform to the 'Sendable' protocol
9 |
10 | public enum FromJS {
11 | public struct Response {
| `- note: consider making struct 'Response' conform to the 'Sendable' protocol
12 | let id: Int
13 | let data: Any
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Requesting/JavaScriptEvaluating.swift:61:20: warning: capture of 'response' with non-sendable type 'FromJS.Response' in an isolated local function; this is an error in the Swift 6 language mode
59 | }
60 | defer {
61 | if response.completed {
| `- warning: capture of 'response' with non-sendable type 'FromJS.Response' in an isolated local function; this is an error in the Swift 6 language mode
62 | completionByID.removeValue(forKey: response.id)
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Requesting/FromJS.Response.swift:11:19: note: consider making struct 'Response' conform to the 'Sendable' protocol
9 |
10 | public enum FromJS {
11 | public struct Response {
| `- note: consider making struct 'Response' conform to the 'Sendable' protocol
12 | let id: Int
13 | let data: Any
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Requesting/JavaScriptEvaluating.swift:71:23: warning: capture of 'self' with non-sendable type 'JavaScriptEvaluator?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | public typealias JavaScript = String
24 |
25 | open class JavaScriptEvaluator: JavaScriptEvaluating {
| `- note: class 'JavaScriptEvaluator' does not conform to the 'Sendable' protocol
26 | private let evaluating: (JavaScript) -> Void
27 | private var incrementalID: Int = 0
:
69 | open func evaluate(_ javaScript: JavaScript) {
70 | serialQueue.async { [weak self] in
71 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'JavaScriptEvaluator?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | enqueue(javaScript)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Requesting/JavaScriptEvaluating.swift:78:23: warning: capture of 'self' with non-sendable type 'JavaScriptEvaluator?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | public typealias JavaScript = String
24 |
25 | open class JavaScriptEvaluator: JavaScriptEvaluating {
| `- note: class 'JavaScriptEvaluator' does not conform to the 'Sendable' protocol
26 | private let evaluating: (JavaScript) -> Void
27 | private var incrementalID: Int = 0
:
76 | open func initialize() {
77 | serialQueue.async { [weak self] in
78 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'JavaScriptEvaluator?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | initialized = true
80 | metronome.resume()
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Requesting/JavaScriptEvaluating.swift:90:23: warning: capture of 'self' with non-sendable type 'JavaScriptEvaluator?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | public typealias JavaScript = String
24 |
25 | open class JavaScriptEvaluator: JavaScriptEvaluating {
| `- note: class 'JavaScriptEvaluator' does not conform to the 'Sendable' protocol
26 | private let evaluating: (JavaScript) -> Void
27 | private var incrementalID: Int = 0
:
88 | ) {
89 | serialQueue.async { [weak self] in
90 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'JavaScriptEvaluator?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
91 | defer { incrementalID += 1 }
92 | let id = incrementalID
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Requesting/JavaScriptEvaluating.swift:93:20: warning: capture of 'completion' with non-sendable type 'JavaScriptEvaluator.Completion?' (aka 'Optional<(Any) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
91 | defer { incrementalID += 1 }
92 | let id = incrementalID
93 | if let completion {
| |- warning: capture of 'completion' with non-sendable type 'JavaScriptEvaluator.Completion?' (aka 'Optional<(Any) -> ()>') 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'
94 | completionByID[id] = completion
95 | }
[212/224] Compiling DSBridge Keystone.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Error/ErrorLogging.swift:11:12: warning: var 'sharedLogger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public var sharedLogger: any ErrorLogging = ErrorLogger()
| |- warning: var 'sharedLogger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sharedLogger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sharedLogger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public protocol ErrorLogging {
[213/224] Compiling DSBridge Macros.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Error/ErrorLogging.swift:11:12: warning: var 'sharedLogger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public var sharedLogger: any ErrorLogging = ErrorLogger()
| |- warning: var 'sharedLogger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sharedLogger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sharedLogger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public protocol ErrorLogging {
[214/224] Compiling DSBridge PredefinedInterface.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Error/ErrorLogging.swift:11:12: warning: var 'sharedLogger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public var sharedLogger: any ErrorLogging = ErrorLogger()
| |- warning: var 'sharedLogger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sharedLogger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sharedLogger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public protocol ErrorLogging {
[215/224] Compiling DSBridge Response.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Error/ErrorLogging.swift:11:12: warning: var 'sharedLogger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public var sharedLogger: any ErrorLogging = ErrorLogger()
| |- warning: var 'sharedLogger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sharedLogger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sharedLogger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public protocol ErrorLogging {
[216/224] Compiling DSBridge Metronome.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Requesting/Metronome.swift:37:17: warning: capture of 'self' with non-sendable type 'Metronome' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | /// crashes that occur from calling resume multiple times on a timer that is
17 | /// already resumed (noted by https://github.com/SiftScience/sift-ios/issues/52
18 | final class Metronome {
| `- note: class 'Metronome' does not conform to the 'Sendable' protocol
19 | let timeInterval: TimeInterval
20 | let queue: DispatchQueue
:
35 | guard let self else { return }
36 | queue.async {
37 | self.eventHandler?()
| `- warning: capture of 'self' with non-sendable type 'Metronome' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | })
[217/224] Compiling DSBridge ExposedInterface.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Requesting/Metronome.swift:37:17: warning: capture of 'self' with non-sendable type 'Metronome' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | /// crashes that occur from calling resume multiple times on a timer that is
17 | /// already resumed (noted by https://github.com/SiftScience/sift-ios/issues/52
18 | final class Metronome {
| `- note: class 'Metronome' does not conform to the 'Sendable' protocol
19 | let timeInterval: TimeInterval
20 | let queue: DispatchQueue
:
35 | guard let self else { return }
36 | queue.async {
37 | self.eventHandler?()
| `- warning: capture of 'self' with non-sendable type 'Metronome' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | })
[218/224] Compiling DSBridge ErrorLogging.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Error/ErrorLogging.swift:11:12: warning: var 'sharedLogger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public var sharedLogger: any ErrorLogging = ErrorLogger()
| |- warning: var 'sharedLogger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sharedLogger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sharedLogger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public protocol ErrorLogging {
[219/224] Compiling DSBridge JSON.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Error/ErrorLogging.swift:11:12: warning: var 'sharedLogger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public var sharedLogger: any ErrorLogging = ErrorLogger()
| |- warning: var 'sharedLogger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sharedLogger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sharedLogger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public protocol ErrorLogging {
[220/224] Compiling DSBridge DSBridge.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Error/Error.swift:25:16: warning: static property 'hash' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | public enum Error {
25 | static var hash: String = "*hashed*"
| |- warning: static property 'hash' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hash' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'hash' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | static var hashObject = Hash()
27 | struct Hash { }
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Error/Error.swift:26:16: warning: static property 'hashObject' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 | public enum Error {
25 | static var hash: String = "*hashed*"
26 | static var hashObject = Hash()
| |- warning: static property 'hashObject' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hashObject' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'hashObject' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | struct Hash { }
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Error/Error.swift:82:14: warning: associated value 'failedToEncode' of 'Sendable'-conforming enum 'WritingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
80 |
81 | case underlyingJSONEncoding(_ error: Swift.Error)
82 | case failedToEncode(Any)
| `- warning: associated value 'failedToEncode' of 'Sendable'-conforming enum 'WritingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
83 | case invalidJSONObject(Any)
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Error/Error.swift:83:14: warning: associated value 'invalidJSONObject' of 'Sendable'-conforming enum 'WritingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
81 | case underlyingJSONEncoding(_ error: Swift.Error)
82 | case failedToEncode(Any)
83 | case invalidJSONObject(Any)
| `- warning: associated value 'invalidJSONObject' of 'Sendable'-conforming enum 'WritingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
84 | }
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Error/Error.swift:125:14: warning: associated value 'returnTypeMismatch' of 'Sendable'-conforming enum 'CallingJS' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
123 | }
124 |
125 | case returnTypeMismatch(Any)
| `- warning: associated value 'returnTypeMismatch' of 'Sendable'-conforming enum 'CallingJS' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
126 | case underlying(any Swift.Error)
127 | }
[221/224] Compiling DSBridge Error.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Error/Error.swift:25:16: warning: static property 'hash' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | public enum Error {
25 | static var hash: String = "*hashed*"
| |- warning: static property 'hash' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hash' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'hash' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | static var hashObject = Hash()
27 | struct Hash { }
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Error/Error.swift:26:16: warning: static property 'hashObject' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 | public enum Error {
25 | static var hash: String = "*hashed*"
26 | static var hashObject = Hash()
| |- warning: static property 'hashObject' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hashObject' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'hashObject' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | struct Hash { }
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Error/Error.swift:82:14: warning: associated value 'failedToEncode' of 'Sendable'-conforming enum 'WritingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
80 |
81 | case underlyingJSONEncoding(_ error: Swift.Error)
82 | case failedToEncode(Any)
| `- warning: associated value 'failedToEncode' of 'Sendable'-conforming enum 'WritingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
83 | case invalidJSONObject(Any)
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Error/Error.swift:83:14: warning: associated value 'invalidJSONObject' of 'Sendable'-conforming enum 'WritingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
81 | case underlyingJSONEncoding(_ error: Swift.Error)
82 | case failedToEncode(Any)
83 | case invalidJSONObject(Any)
| `- warning: associated value 'invalidJSONObject' of 'Sendable'-conforming enum 'WritingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
84 | }
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Error/Error.swift:125:14: warning: associated value 'returnTypeMismatch' of 'Sendable'-conforming enum 'CallingJS' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
123 | }
124 |
125 | case returnTypeMismatch(Any)
| `- warning: associated value 'returnTypeMismatch' of 'Sendable'-conforming enum 'CallingJS' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
126 | case underlying(any Swift.Error)
127 | }
[222/224] Emitting module DSBridge
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Error/Error.swift:25:16: warning: static property 'hash' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | public enum Error {
25 | static var hash: String = "*hashed*"
| |- warning: static property 'hash' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hash' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'hash' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | static var hashObject = Hash()
27 | struct Hash { }
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Error/Error.swift:26:16: warning: static property 'hashObject' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 | public enum Error {
25 | static var hash: String = "*hashed*"
26 | static var hashObject = Hash()
| |- warning: static property 'hashObject' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hashObject' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'hashObject' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | struct Hash { }
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Error/Error.swift:82:14: warning: associated value 'failedToEncode' of 'Sendable'-conforming enum 'WritingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
80 |
81 | case underlyingJSONEncoding(_ error: Swift.Error)
82 | case failedToEncode(Any)
| `- warning: associated value 'failedToEncode' of 'Sendable'-conforming enum 'WritingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
83 | case invalidJSONObject(Any)
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Error/Error.swift:83:14: warning: associated value 'invalidJSONObject' of 'Sendable'-conforming enum 'WritingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
81 | case underlyingJSONEncoding(_ error: Swift.Error)
82 | case failedToEncode(Any)
83 | case invalidJSONObject(Any)
| `- warning: associated value 'invalidJSONObject' of 'Sendable'-conforming enum 'WritingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
84 | }
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Error/Error.swift:125:14: warning: associated value 'returnTypeMismatch' of 'Sendable'-conforming enum 'CallingJS' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
123 | }
124 |
125 | case returnTypeMismatch(Any)
| `- warning: associated value 'returnTypeMismatch' of 'Sendable'-conforming enum 'CallingJS' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
126 | case underlying(any Swift.Error)
127 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Error/ErrorLogging.swift:11:12: warning: var 'sharedLogger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public var sharedLogger: any ErrorLogging = ErrorLogger()
| |- warning: var 'sharedLogger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sharedLogger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sharedLogger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public protocol ErrorLogging {
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/Requesting/Metronome.swift:37:17: warning: capture of 'self' with non-sendable type 'Metronome' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | /// crashes that occur from calling resume multiple times on a timer that is
17 | /// already resumed (noted by https://github.com/SiftScience/sift-ios/issues/52
18 | final class Metronome {
| `- note: class 'Metronome' does not conform to the 'Sendable' protocol
19 | let timeInterval: TimeInterval
20 | let queue: DispatchQueue
:
35 | guard let self else { return }
36 | queue.async {
37 | self.eventHandler?()
| `- warning: capture of 'self' with non-sendable type 'Metronome' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | })
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/UIDelegate.swift:23:15: warning: instance method 'webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
21 | }
22 |
23 | open func webView(
| |- warning: instance method 'webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
| |- note: candidate has non-matching type '(WKWebView, String, String?, WKFrameInfo, @escaping (String?) -> Void) -> ()'
| `- note: move 'webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:)' to an extension to silence this warning
24 | _ webView: WKWebView,
25 | runJavaScriptTextInputPanelWithPrompt prompt: String,
WebKit.WKUIDelegate:17:30: note: requirement 'webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:)' declared here
15 | optional func webView(_ webView: WKWebView, runJavaScriptConfirmPanelWithMessage message: String, initiatedByFrame frame: WKFrameInfo) async -> Bool
16 | @available(macOS 10.10, *)
17 | @MainActor optional func webView(_ webView: WKWebView, runJavaScriptTextInputPanelWithPrompt prompt: String, defaultText: String?, initiatedByFrame frame: WKFrameInfo, completionHandler: @escaping @MainActor @Sendable (String?) -> Void)
| `- note: requirement 'webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:)' declared here
18 | @available(macOS 10.10, *)
19 | optional func webView(_ webView: WKWebView, runJavaScriptTextInputPanelWithPrompt prompt: String, defaultText: String?, initiatedByFrame frame: WKFrameInfo) async -> String?
[223/224] Compiling DSBridge UIDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/UIDelegate.swift:23:15: warning: instance method 'webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
21 | }
22 |
23 | open func webView(
| |- warning: instance method 'webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
| |- note: candidate has non-matching type '(WKWebView, String, String?, WKFrameInfo, @escaping (String?) -> Void) -> ()'
| `- note: move 'webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:)' to an extension to silence this warning
24 | _ webView: WKWebView,
25 | runJavaScriptTextInputPanelWithPrompt prompt: String,
WebKit.WKUIDelegate:17:30: note: requirement 'webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:)' declared here
15 | optional func webView(_ webView: WKWebView, runJavaScriptConfirmPanelWithMessage message: String, initiatedByFrame frame: WKFrameInfo) async -> Bool
16 | @available(macOS 10.10, *)
17 | @MainActor optional func webView(_ webView: WKWebView, runJavaScriptTextInputPanelWithPrompt prompt: String, defaultText: String?, initiatedByFrame frame: WKFrameInfo, completionHandler: @escaping @MainActor @Sendable (String?) -> Void)
| `- note: requirement 'webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:)' declared here
18 | @available(macOS 10.10, *)
19 | optional func webView(_ webView: WKWebView, runJavaScriptTextInputPanelWithPrompt prompt: String, defaultText: String?, initiatedByFrame frame: WKFrameInfo) async -> String?
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/UIDelegate.swift:62:32: warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
46 | runJavaScriptTextInputPanelWithPrompt prompt: String,
47 | defaultText: String?, initiatedByFrame frame: WKFrameInfo,
48 | completionHandler: @escaping (String?) -> Void
| `- note: parameter 'completionHandler' is implicitly non-sendable
49 | ) {
50 | guard
:
60 | defaultText: defaultText,
61 | initiatedByFrame: frame,
62 | completionHandler: completionHandler
| `- warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
63 | )
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/UIDelegate.swift:67:30: warning: main actor-isolated class property 'injectedSelector' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
65 |
66 | open override func responds(to aSelector: Selector!) -> Bool {
67 | if aSelector == Self.injectedSelector {
| `- warning: main actor-isolated class property 'injectedSelector' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | return true
69 | } else {
:
80 | }
81 |
82 | open class var injectedSelector: Selector {
| `- note: class property declared here
83 | #selector(
84 | webView(
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/UIDelegate.swift:70:20: warning: main actor-isolated property 'designatedDelegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
9 |
10 | open class UIDelegate: NSObject, WKUIDelegate {
11 | open weak var designatedDelegate: (any WKUIDelegate)?
| `- note: property declared here
12 | open var invocationHandler: (String, String?) -> JSON
13 | public let prefix: String
:
68 | return true
69 | } else {
70 | return designatedDelegate?.responds(to: aSelector) ?? false
| `- warning: main actor-isolated property 'designatedDelegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
71 | }
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/UIDelegate.swift:75:12: warning: main actor-isolated property 'designatedDelegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
9 |
10 | open class UIDelegate: NSObject, WKUIDelegate {
11 | open weak var designatedDelegate: (any WKUIDelegate)?
| `- note: property declared here
12 | open var invocationHandler: (String, String?) -> JSON
13 | public let prefix: String
:
73 |
74 | open override func forwardingTarget(for aSelector: Selector!) -> Any? {
75 | if designatedDelegate?.responds(to: aSelector) == true {
| `- warning: main actor-isolated property 'designatedDelegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
76 | return designatedDelegate
77 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/UIDelegate.swift:76:20: warning: main actor-isolated property 'designatedDelegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
9 |
10 | open class UIDelegate: NSObject, WKUIDelegate {
11 | open weak var designatedDelegate: (any WKUIDelegate)?
| `- note: property declared here
12 | open var invocationHandler: (String, String?) -> JSON
13 | public let prefix: String
:
74 | open override func forwardingTarget(for aSelector: Selector!) -> Any? {
75 | if designatedDelegate?.responds(to: aSelector) == true {
76 | return designatedDelegate
| `- warning: main actor-isolated property 'designatedDelegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
77 | } else {
78 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/UIDelegate.swift:83:9: error: argument of '#selector' refers to instance method 'webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:)' that is not exposed to Objective-C
21 | }
22 |
23 | open func webView(
| `- note: add '@objc' to expose this instance method to Objective-C
24 | _ webView: WKWebView,
25 | runJavaScriptTextInputPanelWithPrompt prompt: String,
:
81 |
82 | open class var injectedSelector: Selector {
83 | #selector(
| `- error: argument of '#selector' refers to instance method 'webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:)' that is not exposed to Objective-C
84 | webView(
85 | _:
[224/224] Compiling DSBridge WebView.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/UIDelegate.swift:23:15: warning: instance method 'webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
21 | }
22 |
23 | open func webView(
| |- warning: instance method 'webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
| |- note: candidate has non-matching type '(WKWebView, String, String?, WKFrameInfo, @escaping (String?) -> Void) -> ()'
| `- note: move 'webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:)' to an extension to silence this warning
24 | _ webView: WKWebView,
25 | runJavaScriptTextInputPanelWithPrompt prompt: String,
WebKit.WKUIDelegate:17:30: note: requirement 'webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:)' declared here
15 | optional func webView(_ webView: WKWebView, runJavaScriptConfirmPanelWithMessage message: String, initiatedByFrame frame: WKFrameInfo) async -> Bool
16 | @available(macOS 10.10, *)
17 | @MainActor optional func webView(_ webView: WKWebView, runJavaScriptTextInputPanelWithPrompt prompt: String, defaultText: String?, initiatedByFrame frame: WKFrameInfo, completionHandler: @escaping @MainActor @Sendable (String?) -> Void)
| `- note: requirement 'webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:)' declared here
18 | @available(macOS 10.10, *)
19 | optional func webView(_ webView: WKWebView, runJavaScriptTextInputPanelWithPrompt prompt: String, defaultText: String?, initiatedByFrame frame: WKFrameInfo) async -> String?
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/UIDelegate.swift:62:32: warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
46 | runJavaScriptTextInputPanelWithPrompt prompt: String,
47 | defaultText: String?, initiatedByFrame frame: WKFrameInfo,
48 | completionHandler: @escaping (String?) -> Void
| `- note: parameter 'completionHandler' is implicitly non-sendable
49 | ) {
50 | guard
:
60 | defaultText: defaultText,
61 | initiatedByFrame: frame,
62 | completionHandler: completionHandler
| `- warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
63 | )
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/UIDelegate.swift:67:30: warning: main actor-isolated class property 'injectedSelector' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
65 |
66 | open override func responds(to aSelector: Selector!) -> Bool {
67 | if aSelector == Self.injectedSelector {
| `- warning: main actor-isolated class property 'injectedSelector' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | return true
69 | } else {
:
80 | }
81 |
82 | open class var injectedSelector: Selector {
| `- note: class property declared here
83 | #selector(
84 | webView(
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/UIDelegate.swift:70:20: warning: main actor-isolated property 'designatedDelegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
9 |
10 | open class UIDelegate: NSObject, WKUIDelegate {
11 | open weak var designatedDelegate: (any WKUIDelegate)?
| `- note: property declared here
12 | open var invocationHandler: (String, String?) -> JSON
13 | public let prefix: String
:
68 | return true
69 | } else {
70 | return designatedDelegate?.responds(to: aSelector) ?? false
| `- warning: main actor-isolated property 'designatedDelegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
71 | }
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/UIDelegate.swift:75:12: warning: main actor-isolated property 'designatedDelegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
9 |
10 | open class UIDelegate: NSObject, WKUIDelegate {
11 | open weak var designatedDelegate: (any WKUIDelegate)?
| `- note: property declared here
12 | open var invocationHandler: (String, String?) -> JSON
13 | public let prefix: String
:
73 |
74 | open override func forwardingTarget(for aSelector: Selector!) -> Any? {
75 | if designatedDelegate?.responds(to: aSelector) == true {
| `- warning: main actor-isolated property 'designatedDelegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
76 | return designatedDelegate
77 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/UIDelegate.swift:76:20: warning: main actor-isolated property 'designatedDelegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
9 |
10 | open class UIDelegate: NSObject, WKUIDelegate {
11 | open weak var designatedDelegate: (any WKUIDelegate)?
| `- note: property declared here
12 | open var invocationHandler: (String, String?) -> JSON
13 | public let prefix: String
:
74 | open override func forwardingTarget(for aSelector: Selector!) -> Any? {
75 | if designatedDelegate?.responds(to: aSelector) == true {
76 | return designatedDelegate
| `- warning: main actor-isolated property 'designatedDelegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
77 | } else {
78 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/DSBridge/UIDelegate.swift:83:9: error: argument of '#selector' refers to instance method 'webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:)' that is not exposed to Objective-C
21 | }
22 |
23 | open func webView(
| `- note: add '@objc' to expose this instance method to Objective-C
24 | _ webView: WKWebView,
25 | runJavaScriptTextInputPanelWithPrompt prompt: String,
:
81 |
82 | open class var injectedSelector: Selector {
83 | #selector(
| `- error: argument of '#selector' refers to instance method 'webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:)' that is not exposed to Objective-C
84 | webView(
85 | _:
BUILD FAILURE 6.0 macosSpm