Build Information
Successful build of ReactiveSSE, reference 0.4.0 (4370ee
), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 15:42:18 UTC.
Swift 6 data race errors: 11
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/banjun/ReactiveSSE.git
Reference: 0.4.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/banjun/ReactiveSSE
* tag 0.4.0 -> FETCH_HEAD
HEAD is now at 4370eea pod 0.4.0 updating pod example project
Cloned https://github.com/banjun/ReactiveSSE.git
Revision (git rev-parse @):
4370eea87cccac449f2b8c0eaacc747678c0d86f
SUCCESS checkout https://github.com/banjun/ReactiveSSE.git at 0.4.0
Fetching https://github.com/Quick/Quick.git
Fetching https://github.com/Quick/Nimble.git
Fetching https://github.com/ReactiveCocoa/ReactiveSwift
Fetching https://github.com/kareman/FootlessParser
[1/1836] Fetching footlessparser
[185/16559] Fetching footlessparser, quick
[186/68997] Fetching footlessparser, quick, reactiveswift
[26537/88215] Fetching footlessparser, quick, reactiveswift, nimble
Fetched https://github.com/ReactiveCocoa/ReactiveSwift from cache (2.66s)
Fetched https://github.com/Quick/Nimble.git from cache (2.66s)
[15219/16559] Fetching footlessparser, quick
Fetched https://github.com/Quick/Quick.git from cache (6.76s)
Fetched https://github.com/kareman/FootlessParser from cache (6.76s)
Computing version for https://github.com/kareman/FootlessParser
Computed https://github.com/kareman/FootlessParser at 0.5.2 (2.44s)
Computing version for https://github.com/ReactiveCocoa/ReactiveSwift
Computed https://github.com/ReactiveCocoa/ReactiveSwift at 6.2.1 (0.65s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 8.0.7 (0.68s)
Computing version for https://github.com/Quick/Quick.git
Computed https://github.com/Quick/Quick.git at 2.2.0 (0.66s)
Creating working copy for https://github.com/kareman/FootlessParser
Working copy of https://github.com/kareman/FootlessParser resolved at 0.5.2
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 8.0.7
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 2.2.0
Creating working copy for https://github.com/ReactiveCocoa/ReactiveSwift
Working copy of https://github.com/ReactiveCocoa/ReactiveSwift resolved at 6.2.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": "reactivesse",
"name": "ReactiveSSE",
"url": "https://github.com/banjun/ReactiveSSE.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ReactiveSSE",
"dependencies": [
{
"identity": "reactiveswift",
"name": "ReactiveSwift",
"url": "https://github.com/ReactiveCocoa/ReactiveSwift",
"version": "6.7.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ReactiveSwift",
"dependencies": [
]
},
{
"identity": "footlessparser",
"name": "FootlessParser",
"url": "https://github.com/kareman/FootlessParser",
"version": "0.5.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/FootlessParser",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/banjun/ReactiveSSE.git
[1/340] Fetching reactivesse
Fetched https://github.com/banjun/ReactiveSSE.git from cache (0.84s)
Fetching https://github.com/ReactiveCocoa/ReactiveSwift from cache
Fetching https://github.com/kareman/FootlessParser from cache
Fetched https://github.com/kareman/FootlessParser from cache (0.59s)
Fetched https://github.com/ReactiveCocoa/ReactiveSwift from cache (0.59s)
Computing version for https://github.com/kareman/FootlessParser
Computed https://github.com/kareman/FootlessParser at 0.5.2 (0.02s)
Computing version for https://github.com/ReactiveCocoa/ReactiveSwift
Computed https://github.com/ReactiveCocoa/ReactiveSwift at 6.7.0 (0.69s)
Creating working copy for https://github.com/kareman/FootlessParser
Working copy of https://github.com/kareman/FootlessParser resolved at 0.5.2
Creating working copy for https://github.com/banjun/ReactiveSSE.git
Working copy of https://github.com/banjun/ReactiveSSE.git resolved at 0.4.0 (4370eea)
Creating working copy for https://github.com/ReactiveCocoa/ReactiveSwift
Working copy of https://github.com/ReactiveCocoa/ReactiveSwift resolved at 6.7.0
warning: '.resolve-product-dependencies': dependency 'reactivesse' is not used by any target
Found 2 product dependencies
- ReactiveSwift
- FootlessParser
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/banjun/ReactiveSSE.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/4] Write sources
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/31] Emitting module ReactiveSwift
[6/33] Compiling ReactiveSwift UninhabitedTypeGuards.swift
[7/33] Compiling ReactiveSwift ValidatingProperty.swift
[8/33] Compiling FootlessParser Converters.swift
[9/33] Compiling FootlessParser Parsers.swift
[10/33] Compiling FootlessParser Parser.swift
[11/33] Compiling FootlessParser Error.swift
[12/33] Compiling FootlessParser StringParser.swift
[13/33] Compiling FootlessParser Parser+Operators.swift
[14/33] Emitting module FootlessParser
[15/33] Compiling ReactiveSwift Reactive.swift
[16/33] Compiling ReactiveSwift ResultExtensions.swift
[17/33] Compiling ReactiveSwift Scheduler.swift
[18/33] Compiling ReactiveSwift Signal.swift
[19/33] Compiling ReactiveSwift Optional.swift
[20/33] Compiling ReactiveSwift Property.swift
[21/33] Compiling ReactiveSwift Event.swift
[22/33] Compiling ReactiveSwift EventLogger.swift
[23/33] Compiling ReactiveSwift Lifetime.swift
[24/33] Compiling ReactiveSwift Observer.swift
[25/33] Compiling ReactiveSwift Deprecations+Removals.swift
[26/33] Compiling ReactiveSwift Disposable.swift
[27/33] Compiling ReactiveSwift Action.swift
[28/33] Compiling ReactiveSwift Atomic.swift
[29/33] Compiling ReactiveSwift Bag.swift
[30/33] Compiling ReactiveSwift Flatten.swift
[31/33] Compiling ReactiveSwift FoundationExtensions.swift
[32/33] Compiling ReactiveSwift SignalProducer.swift
[33/33] Compiling ReactiveSwift UnidirectionalBinding.swift
[34/40] Compiling ReactiveSSE SSError.swift
[35/40] Emitting module ReactiveSSE
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/EventStream.swift:17:16: warning: static property 'nameChar' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
15 | }
16 |
17 | static let nameChar: Parser<Character, Character> = noneOf(["\r\n", "\r", "\n", ":"])
| `- warning: static property 'nameChar' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
18 | static let anyChar: Parser<Character, Character> = noneOf(["\r\n", "\r", "\n"])
19 | static let space: Parser<Character, Character> = char(" ")
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FootlessParser/Sources/FootlessParser/Parser.swift:2:15: note: generic struct 'Parser' does not conform to the 'Sendable' protocol
1 | // would've liked a generic typealias here.
2 | public struct Parser<Token, Output> {
| `- note: generic struct 'Parser' does not conform to the 'Sendable' protocol
3 | public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
4 | public let parse: ParseFunction
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/EventStream.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FootlessParser'
1 | import FootlessParser
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FootlessParser'
2 |
3 | // https://html.spec.whatwg.org/multipage/server-sent-events.html
:
15 | }
16 |
17 | static let nameChar: Parser<Character, Character> = noneOf(["\r\n", "\r", "\n", ":"])
| |- note: annotate 'nameChar' with '@MainActor' 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 | static let anyChar: Parser<Character, Character> = noneOf(["\r\n", "\r", "\n"])
19 | static let space: Parser<Character, Character> = char(" ")
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/EventStream.swift:18:16: warning: static property 'anyChar' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | static let nameChar: Parser<Character, Character> = noneOf(["\r\n", "\r", "\n", ":"])
18 | static let anyChar: Parser<Character, Character> = noneOf(["\r\n", "\r", "\n"])
| |- warning: static property 'anyChar' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'anyChar' with '@MainActor' 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 | static let space: Parser<Character, Character> = char(" ")
20 | static let eol: Parser<Character, Character> = oneOf(["\r\n", "\r", "\n"])
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FootlessParser/Sources/FootlessParser/Parser.swift:2:15: note: generic struct 'Parser' does not conform to the 'Sendable' protocol
1 | // would've liked a generic typealias here.
2 | public struct Parser<Token, Output> {
| `- note: generic struct 'Parser' does not conform to the 'Sendable' protocol
3 | public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
4 | public let parse: ParseFunction
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/EventStream.swift:19:16: warning: static property 'space' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
17 | static let nameChar: Parser<Character, Character> = noneOf(["\r\n", "\r", "\n", ":"])
18 | static let anyChar: Parser<Character, Character> = noneOf(["\r\n", "\r", "\n"])
19 | static let space: Parser<Character, Character> = char(" ")
| |- warning: static property 'space' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'space' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | static let eol: Parser<Character, Character> = oneOf(["\r\n", "\r", "\n"])
21 | static let name: Parser<Character, String> = oneOrMore(nameChar)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FootlessParser/Sources/FootlessParser/Parser.swift:2:15: note: generic struct 'Parser' does not conform to the 'Sendable' protocol
1 | // would've liked a generic typealias here.
2 | public struct Parser<Token, Output> {
| `- note: generic struct 'Parser' does not conform to the 'Sendable' protocol
3 | public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
4 | public let parse: ParseFunction
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/EventStream.swift:20:16: warning: static property 'eol' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
18 | static let anyChar: Parser<Character, Character> = noneOf(["\r\n", "\r", "\n"])
19 | static let space: Parser<Character, Character> = char(" ")
20 | static let eol: Parser<Character, Character> = oneOf(["\r\n", "\r", "\n"])
| |- warning: static property 'eol' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eol' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | static let name: Parser<Character, String> = oneOrMore(nameChar)
22 | static let value: Parser<Character, String> = zeroOrMore(anyChar)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FootlessParser/Sources/FootlessParser/Parser.swift:2:15: note: generic struct 'Parser' does not conform to the 'Sendable' protocol
1 | // would've liked a generic typealias here.
2 | public struct Parser<Token, Output> {
| `- note: generic struct 'Parser' does not conform to the 'Sendable' protocol
3 | public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
4 | public let parse: ParseFunction
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/EventStream.swift:21:16: warning: static property 'name' is not concurrency-safe because non-'Sendable' type 'Parser<Character, String>' may have shared mutable state; this is an error in the Swift 6 language mode
19 | static let space: Parser<Character, Character> = char(" ")
20 | static let eol: Parser<Character, Character> = oneOf(["\r\n", "\r", "\n"])
21 | static let name: Parser<Character, String> = oneOrMore(nameChar)
| |- warning: static property 'name' is not concurrency-safe because non-'Sendable' type 'Parser<Character, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'name' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | static let value: Parser<Character, String> = zeroOrMore(anyChar)
23 | static let event: Parser<Character, [Event]> = zeroOrMore((Event.comment <^> comment) <|> (Event.field <^> field)) <* eol
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FootlessParser/Sources/FootlessParser/Parser.swift:2:15: note: generic struct 'Parser' does not conform to the 'Sendable' protocol
1 | // would've liked a generic typealias here.
2 | public struct Parser<Token, Output> {
| `- note: generic struct 'Parser' does not conform to the 'Sendable' protocol
3 | public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
4 | public let parse: ParseFunction
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/EventStream.swift:22:16: warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Parser<Character, String>' may have shared mutable state; this is an error in the Swift 6 language mode
20 | static let eol: Parser<Character, Character> = oneOf(["\r\n", "\r", "\n"])
21 | static let name: Parser<Character, String> = oneOrMore(nameChar)
22 | static let value: Parser<Character, String> = zeroOrMore(anyChar)
| |- warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Parser<Character, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'value' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | static let event: Parser<Character, [Event]> = zeroOrMore((Event.comment <^> comment) <|> (Event.field <^> field)) <* eol
24 | static let comment: Parser<Character, Comment> = (char(":") *> value <* eol)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FootlessParser/Sources/FootlessParser/Parser.swift:2:15: note: generic struct 'Parser' does not conform to the 'Sendable' protocol
1 | // would've liked a generic typealias here.
2 | public struct Parser<Token, Output> {
| `- note: generic struct 'Parser' does not conform to the 'Sendable' protocol
3 | public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
4 | public let parse: ParseFunction
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/EventStream.swift:23:16: warning: static property 'event' is not concurrency-safe because non-'Sendable' type 'Parser<Character, [EventStream.Event]>' may have shared mutable state; this is an error in the Swift 6 language mode
21 | static let name: Parser<Character, String> = oneOrMore(nameChar)
22 | static let value: Parser<Character, String> = zeroOrMore(anyChar)
23 | static let event: Parser<Character, [Event]> = zeroOrMore((Event.comment <^> comment) <|> (Event.field <^> field)) <* eol
| |- warning: static property 'event' is not concurrency-safe because non-'Sendable' type 'Parser<Character, [EventStream.Event]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'event' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | static let comment: Parser<Character, Comment> = (char(":") *> value <* eol)
25 | static let field: Parser<Character, Field> = curry(Field.init) <^> name <* char(":") <* optional(space) <*> value <* eol
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FootlessParser/Sources/FootlessParser/Parser.swift:2:15: note: generic struct 'Parser' does not conform to the 'Sendable' protocol
1 | // would've liked a generic typealias here.
2 | public struct Parser<Token, Output> {
| `- note: generic struct 'Parser' does not conform to the 'Sendable' protocol
3 | public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
4 | public let parse: ParseFunction
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/EventStream.swift:24:16: warning: static property 'comment' is not concurrency-safe because non-'Sendable' type 'Parser<Character, EventStream.Comment>' (aka 'Parser<Character, String>') may have shared mutable state; this is an error in the Swift 6 language mode
22 | static let value: Parser<Character, String> = zeroOrMore(anyChar)
23 | static let event: Parser<Character, [Event]> = zeroOrMore((Event.comment <^> comment) <|> (Event.field <^> field)) <* eol
24 | static let comment: Parser<Character, Comment> = (char(":") *> value <* eol)
| |- warning: static property 'comment' is not concurrency-safe because non-'Sendable' type 'Parser<Character, EventStream.Comment>' (aka 'Parser<Character, String>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'comment' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | static let field: Parser<Character, Field> = curry(Field.init) <^> name <* char(":") <* optional(space) <*> value <* eol
26 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FootlessParser/Sources/FootlessParser/Parser.swift:2:15: note: generic struct 'Parser' does not conform to the 'Sendable' protocol
1 | // would've liked a generic typealias here.
2 | public struct Parser<Token, Output> {
| `- note: generic struct 'Parser' does not conform to the 'Sendable' protocol
3 | public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
4 | public let parse: ParseFunction
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/EventStream.swift:25:16: warning: static property 'field' is not concurrency-safe because non-'Sendable' type 'Parser<Character, EventStream.Field>' may have shared mutable state; this is an error in the Swift 6 language mode
23 | static let event: Parser<Character, [Event]> = zeroOrMore((Event.comment <^> comment) <|> (Event.field <^> field)) <* eol
24 | static let comment: Parser<Character, Comment> = (char(":") *> value <* eol)
25 | static let field: Parser<Character, Field> = curry(Field.init) <^> name <* char(":") <* optional(space) <*> value <* eol
| |- warning: static property 'field' is not concurrency-safe because non-'Sendable' type 'Parser<Character, EventStream.Field>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'field' with '@MainActor' 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 | }
27 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FootlessParser/Sources/FootlessParser/Parser.swift:2:15: note: generic struct 'Parser' does not conform to the 'Sendable' protocol
1 | // would've liked a generic typealias here.
2 | public struct Parser<Token, Output> {
| `- note: generic struct 'Parser' does not conform to the 'Sendable' protocol
3 | public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
4 | public let parse: ParseFunction
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:5:9: warning: stored property 'pipe' of 'Sendable'-conforming class 'SessionDataPipe' has non-sendable type '(output: Signal<String, SSError>, input: Signal<String, SSError>.Observer)'; this is an error in the Swift 6 language mode
3 |
4 | final class SessionDataPipe: NSObject, URLSessionDataDelegate {
5 | let pipe = Signal<String, SSError>.pipe()
| `- warning: stored property 'pipe' of 'Sendable'-conforming class 'SessionDataPipe' has non-sendable type '(output: Signal<String, SSError>, input: Signal<String, SSError>.Observer)'; this is an error in the Swift 6 language mode
6 |
7 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/ReactiveSwift/Sources/Signal.swift:20:20: note: generic class 'Signal' does not conform to the 'Sendable' protocol
18 | /// 1. its input observer receives a terminating event; or
19 | /// 2. it has no active observers, and is not being retained.
20 | public final class Signal<Value, Error: Swift.Error> {
| `- note: generic class 'Signal' does not conform to the 'Sendable' protocol
21 | /// The `Signal` core which manages the event stream.
22 | ///
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ReactiveSwift'
1 | import Foundation
2 | import ReactiveSwift
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ReactiveSwift'
3 |
4 | final class SessionDataPipe: NSObject, URLSessionDataDelegate {
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:5:9: warning: stored property 'pipe' of 'Sendable'-conforming class 'SessionDataPipe' has non-sendable type '(output: Signal<String, SSError>, input: Signal<String, SSError>.Observer)'; this is an error in the Swift 6 language mode
3 |
4 | final class SessionDataPipe: NSObject, URLSessionDataDelegate {
5 | let pipe = Signal<String, SSError>.pipe()
| `- warning: stored property 'pipe' of 'Sendable'-conforming class 'SessionDataPipe' has non-sendable type '(output: Signal<String, SSError>, input: Signal<String, SSError>.Observer)'; this is an error in the Swift 6 language mode
6 |
7 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/ReactiveSwift/Sources/Observer.swift:12:21: note: class 'Observer' does not conform to the 'Sendable' protocol
10 | /// An Observer is a simple wrapper around a function which can receive Events
11 | /// (typically from a Signal).
12 | public final class Observer {
| `- note: class 'Observer' does not conform to the 'Sendable' protocol
13 | public typealias Action = (Event) -> Void
14 | private let _send: Action
[36/40] Compiling ReactiveSSE ReactiveSSE.swift
[37/40] Compiling ReactiveSSE SSEvent.swift
[38/40] Compiling ReactiveSSE EventStream.swift
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/EventStream.swift:17:16: warning: static property 'nameChar' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
15 | }
16 |
17 | static let nameChar: Parser<Character, Character> = noneOf(["\r\n", "\r", "\n", ":"])
| `- warning: static property 'nameChar' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
18 | static let anyChar: Parser<Character, Character> = noneOf(["\r\n", "\r", "\n"])
19 | static let space: Parser<Character, Character> = char(" ")
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FootlessParser/Sources/FootlessParser/Parser.swift:2:15: note: generic struct 'Parser' does not conform to the 'Sendable' protocol
1 | // would've liked a generic typealias here.
2 | public struct Parser<Token, Output> {
| `- note: generic struct 'Parser' does not conform to the 'Sendable' protocol
3 | public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
4 | public let parse: ParseFunction
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/EventStream.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FootlessParser'
1 | import FootlessParser
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FootlessParser'
2 |
3 | // https://html.spec.whatwg.org/multipage/server-sent-events.html
:
15 | }
16 |
17 | static let nameChar: Parser<Character, Character> = noneOf(["\r\n", "\r", "\n", ":"])
| |- note: annotate 'nameChar' with '@MainActor' 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 | static let anyChar: Parser<Character, Character> = noneOf(["\r\n", "\r", "\n"])
19 | static let space: Parser<Character, Character> = char(" ")
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/EventStream.swift:18:16: warning: static property 'anyChar' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | static let nameChar: Parser<Character, Character> = noneOf(["\r\n", "\r", "\n", ":"])
18 | static let anyChar: Parser<Character, Character> = noneOf(["\r\n", "\r", "\n"])
| |- warning: static property 'anyChar' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'anyChar' with '@MainActor' 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 | static let space: Parser<Character, Character> = char(" ")
20 | static let eol: Parser<Character, Character> = oneOf(["\r\n", "\r", "\n"])
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FootlessParser/Sources/FootlessParser/Parser.swift:2:15: note: generic struct 'Parser' does not conform to the 'Sendable' protocol
1 | // would've liked a generic typealias here.
2 | public struct Parser<Token, Output> {
| `- note: generic struct 'Parser' does not conform to the 'Sendable' protocol
3 | public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
4 | public let parse: ParseFunction
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/EventStream.swift:19:16: warning: static property 'space' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
17 | static let nameChar: Parser<Character, Character> = noneOf(["\r\n", "\r", "\n", ":"])
18 | static let anyChar: Parser<Character, Character> = noneOf(["\r\n", "\r", "\n"])
19 | static let space: Parser<Character, Character> = char(" ")
| |- warning: static property 'space' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'space' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | static let eol: Parser<Character, Character> = oneOf(["\r\n", "\r", "\n"])
21 | static let name: Parser<Character, String> = oneOrMore(nameChar)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FootlessParser/Sources/FootlessParser/Parser.swift:2:15: note: generic struct 'Parser' does not conform to the 'Sendable' protocol
1 | // would've liked a generic typealias here.
2 | public struct Parser<Token, Output> {
| `- note: generic struct 'Parser' does not conform to the 'Sendable' protocol
3 | public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
4 | public let parse: ParseFunction
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/EventStream.swift:20:16: warning: static property 'eol' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
18 | static let anyChar: Parser<Character, Character> = noneOf(["\r\n", "\r", "\n"])
19 | static let space: Parser<Character, Character> = char(" ")
20 | static let eol: Parser<Character, Character> = oneOf(["\r\n", "\r", "\n"])
| |- warning: static property 'eol' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eol' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | static let name: Parser<Character, String> = oneOrMore(nameChar)
22 | static let value: Parser<Character, String> = zeroOrMore(anyChar)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FootlessParser/Sources/FootlessParser/Parser.swift:2:15: note: generic struct 'Parser' does not conform to the 'Sendable' protocol
1 | // would've liked a generic typealias here.
2 | public struct Parser<Token, Output> {
| `- note: generic struct 'Parser' does not conform to the 'Sendable' protocol
3 | public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
4 | public let parse: ParseFunction
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/EventStream.swift:21:16: warning: static property 'name' is not concurrency-safe because non-'Sendable' type 'Parser<Character, String>' may have shared mutable state; this is an error in the Swift 6 language mode
19 | static let space: Parser<Character, Character> = char(" ")
20 | static let eol: Parser<Character, Character> = oneOf(["\r\n", "\r", "\n"])
21 | static let name: Parser<Character, String> = oneOrMore(nameChar)
| |- warning: static property 'name' is not concurrency-safe because non-'Sendable' type 'Parser<Character, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'name' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | static let value: Parser<Character, String> = zeroOrMore(anyChar)
23 | static let event: Parser<Character, [Event]> = zeroOrMore((Event.comment <^> comment) <|> (Event.field <^> field)) <* eol
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FootlessParser/Sources/FootlessParser/Parser.swift:2:15: note: generic struct 'Parser' does not conform to the 'Sendable' protocol
1 | // would've liked a generic typealias here.
2 | public struct Parser<Token, Output> {
| `- note: generic struct 'Parser' does not conform to the 'Sendable' protocol
3 | public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
4 | public let parse: ParseFunction
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/EventStream.swift:22:16: warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Parser<Character, String>' may have shared mutable state; this is an error in the Swift 6 language mode
20 | static let eol: Parser<Character, Character> = oneOf(["\r\n", "\r", "\n"])
21 | static let name: Parser<Character, String> = oneOrMore(nameChar)
22 | static let value: Parser<Character, String> = zeroOrMore(anyChar)
| |- warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Parser<Character, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'value' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | static let event: Parser<Character, [Event]> = zeroOrMore((Event.comment <^> comment) <|> (Event.field <^> field)) <* eol
24 | static let comment: Parser<Character, Comment> = (char(":") *> value <* eol)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FootlessParser/Sources/FootlessParser/Parser.swift:2:15: note: generic struct 'Parser' does not conform to the 'Sendable' protocol
1 | // would've liked a generic typealias here.
2 | public struct Parser<Token, Output> {
| `- note: generic struct 'Parser' does not conform to the 'Sendable' protocol
3 | public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
4 | public let parse: ParseFunction
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/EventStream.swift:23:16: warning: static property 'event' is not concurrency-safe because non-'Sendable' type 'Parser<Character, [EventStream.Event]>' may have shared mutable state; this is an error in the Swift 6 language mode
21 | static let name: Parser<Character, String> = oneOrMore(nameChar)
22 | static let value: Parser<Character, String> = zeroOrMore(anyChar)
23 | static let event: Parser<Character, [Event]> = zeroOrMore((Event.comment <^> comment) <|> (Event.field <^> field)) <* eol
| |- warning: static property 'event' is not concurrency-safe because non-'Sendable' type 'Parser<Character, [EventStream.Event]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'event' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | static let comment: Parser<Character, Comment> = (char(":") *> value <* eol)
25 | static let field: Parser<Character, Field> = curry(Field.init) <^> name <* char(":") <* optional(space) <*> value <* eol
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FootlessParser/Sources/FootlessParser/Parser.swift:2:15: note: generic struct 'Parser' does not conform to the 'Sendable' protocol
1 | // would've liked a generic typealias here.
2 | public struct Parser<Token, Output> {
| `- note: generic struct 'Parser' does not conform to the 'Sendable' protocol
3 | public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
4 | public let parse: ParseFunction
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/EventStream.swift:24:16: warning: static property 'comment' is not concurrency-safe because non-'Sendable' type 'Parser<Character, EventStream.Comment>' (aka 'Parser<Character, String>') may have shared mutable state; this is an error in the Swift 6 language mode
22 | static let value: Parser<Character, String> = zeroOrMore(anyChar)
23 | static let event: Parser<Character, [Event]> = zeroOrMore((Event.comment <^> comment) <|> (Event.field <^> field)) <* eol
24 | static let comment: Parser<Character, Comment> = (char(":") *> value <* eol)
| |- warning: static property 'comment' is not concurrency-safe because non-'Sendable' type 'Parser<Character, EventStream.Comment>' (aka 'Parser<Character, String>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'comment' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | static let field: Parser<Character, Field> = curry(Field.init) <^> name <* char(":") <* optional(space) <*> value <* eol
26 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FootlessParser/Sources/FootlessParser/Parser.swift:2:15: note: generic struct 'Parser' does not conform to the 'Sendable' protocol
1 | // would've liked a generic typealias here.
2 | public struct Parser<Token, Output> {
| `- note: generic struct 'Parser' does not conform to the 'Sendable' protocol
3 | public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
4 | public let parse: ParseFunction
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/EventStream.swift:25:16: warning: static property 'field' is not concurrency-safe because non-'Sendable' type 'Parser<Character, EventStream.Field>' may have shared mutable state; this is an error in the Swift 6 language mode
23 | static let event: Parser<Character, [Event]> = zeroOrMore((Event.comment <^> comment) <|> (Event.field <^> field)) <* eol
24 | static let comment: Parser<Character, Comment> = (char(":") *> value <* eol)
25 | static let field: Parser<Character, Field> = curry(Field.init) <^> name <* char(":") <* optional(space) <*> value <* eol
| |- warning: static property 'field' is not concurrency-safe because non-'Sendable' type 'Parser<Character, EventStream.Field>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'field' with '@MainActor' 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 | }
27 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FootlessParser/Sources/FootlessParser/Parser.swift:2:15: note: generic struct 'Parser' does not conform to the 'Sendable' protocol
1 | // would've liked a generic typealias here.
2 | public struct Parser<Token, Output> {
| `- note: generic struct 'Parser' does not conform to the 'Sendable' protocol
3 | public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
4 | public let parse: ParseFunction
[39/40] Compiling ReactiveSSE SessionDataPipe.swift
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:5:9: warning: stored property 'pipe' of 'Sendable'-conforming class 'SessionDataPipe' has non-sendable type '(output: Signal<String, SSError>, input: Signal<String, SSError>.Observer)'; this is an error in the Swift 6 language mode
3 |
4 | final class SessionDataPipe: NSObject, URLSessionDataDelegate {
5 | let pipe = Signal<String, SSError>.pipe()
| `- warning: stored property 'pipe' of 'Sendable'-conforming class 'SessionDataPipe' has non-sendable type '(output: Signal<String, SSError>, input: Signal<String, SSError>.Observer)'; this is an error in the Swift 6 language mode
6 |
7 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/ReactiveSwift/Sources/Signal.swift:20:20: note: generic class 'Signal' does not conform to the 'Sendable' protocol
18 | /// 1. its input observer receives a terminating event; or
19 | /// 2. it has no active observers, and is not being retained.
20 | public final class Signal<Value, Error: Swift.Error> {
| `- note: generic class 'Signal' does not conform to the 'Sendable' protocol
21 | /// The `Signal` core which manages the event stream.
22 | ///
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ReactiveSwift'
1 | import Foundation
2 | import ReactiveSwift
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ReactiveSwift'
3 |
4 | final class SessionDataPipe: NSObject, URLSessionDataDelegate {
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:5:9: warning: stored property 'pipe' of 'Sendable'-conforming class 'SessionDataPipe' has non-sendable type '(output: Signal<String, SSError>, input: Signal<String, SSError>.Observer)'; this is an error in the Swift 6 language mode
3 |
4 | final class SessionDataPipe: NSObject, URLSessionDataDelegate {
5 | let pipe = Signal<String, SSError>.pipe()
| `- warning: stored property 'pipe' of 'Sendable'-conforming class 'SessionDataPipe' has non-sendable type '(output: Signal<String, SSError>, input: Signal<String, SSError>.Observer)'; this is an error in the Swift 6 language mode
6 |
7 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/ReactiveSwift/Sources/Observer.swift:12:21: note: class 'Observer' does not conform to the 'Sendable' protocol
10 | /// An Observer is a simple wrapper around a function which can receive Events
11 | /// (typically from a Signal).
12 | public final class Observer {
| `- note: class 'Observer' does not conform to the 'Sendable' protocol
13 | public typealias Action = (Event) -> Void
14 | private let _send: Action
[40/40] Compiling ReactiveSSE ReactiveOperator.swift
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/EventStream.swift:23:16: warning: static property 'event' is not concurrency-safe because non-'Sendable' type 'Parser<Character, [EventStream.Event]>' may have shared mutable state; this is an error in the Swift 6 language mode
21 | static let name: Parser<Character, String> = oneOrMore(nameChar)
22 | static let value: Parser<Character, String> = zeroOrMore(anyChar)
23 | static let event: Parser<Character, [Event]> = zeroOrMore((Event.comment <^> comment) <|> (Event.field <^> field)) <* eol
| `- warning: static property 'event' is not concurrency-safe because non-'Sendable' type 'Parser<Character, [EventStream.Event]>' may have shared mutable state; this is an error in the Swift 6 language mode
24 | static let comment: Parser<Character, Comment> = (char(":") *> value <* eol)
25 | static let field: Parser<Character, Field> = curry(Field.init) <^> name <* char(":") <* optional(space) <*> value <* eol
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FootlessParser/Sources/FootlessParser/Parser.swift:2:15: note: generic struct 'Parser' does not conform to the 'Sendable' protocol
1 | // would've liked a generic typealias here.
2 | public struct Parser<Token, Output> {
| `- note: generic struct 'Parser' does not conform to the 'Sendable' protocol
3 | public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
4 | public let parse: ParseFunction
/Users/admin/builder/spi-builder-workspace/ReactiveSSE/Classes/EventStream.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FootlessParser'
1 | import FootlessParser
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FootlessParser'
2 |
3 | // https://html.spec.whatwg.org/multipage/server-sent-events.html
:
21 | static let name: Parser<Character, String> = oneOrMore(nameChar)
22 | static let value: Parser<Character, String> = zeroOrMore(anyChar)
23 | static let event: Parser<Character, [Event]> = zeroOrMore((Event.comment <^> comment) <|> (Event.field <^> field)) <* eol
| |- note: annotate 'event' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | static let comment: Parser<Character, Comment> = (char(":") *> value <* eol)
25 | static let field: Parser<Character, Field> = curry(Field.init) <^> name <* char(":") <* optional(space) <*> value <* eol
Build complete! (20.13s)
Build complete.
{
"dependencies" : [
{
"identity" : "reactiveswift",
"requirement" : {
"range" : [
{
"lower_bound" : "6.0.0",
"upper_bound" : "7.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/ReactiveCocoa/ReactiveSwift"
},
{
"identity" : "footlessparser",
"requirement" : {
"range" : [
{
"lower_bound" : "0.5.2",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/kareman/FootlessParser"
}
],
"manifest_display_name" : "ReactiveSSE",
"name" : "ReactiveSSE",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "ReactiveSSE",
"targets" : [
"ReactiveSSE"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ReactiveSSETests",
"module_type" : "SwiftTarget",
"name" : "ReactiveSSETests",
"path" : "Tests/ReactiveSSETests",
"product_dependencies" : [
"FootlessParser",
"ReactiveSwift"
],
"sources" : [
"Tests.swift"
],
"target_dependencies" : [
"ReactiveSSE"
],
"type" : "test"
},
{
"c99name" : "ReactiveSSE",
"module_type" : "SwiftTarget",
"name" : "ReactiveSSE",
"path" : "ReactiveSSE",
"product_dependencies" : [
"FootlessParser",
"ReactiveSwift"
],
"product_memberships" : [
"ReactiveSSE"
],
"sources" : [
"Classes/EventStream.swift",
"Classes/ReactiveOperator.swift",
"Classes/ReactiveSSE.swift",
"Classes/SSError.swift",
"Classes/SSEvent.swift",
"Classes/SessionDataPipe.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.