Build Information
Failed to build RosSwift, reference 1.3.6 (5510d8
), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 17:43:24 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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
167 |
168 | let masterHost: String
:
354 | // FIXME: check result
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
| `- warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:356:30: warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
354 | // FIXME: check result
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
| `- warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:357:41: warning: capture of 'self' with non-sendable type 'Master' in an isolated closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
| `- warning: capture of 'self' with non-sendable type 'Master' in an isolated closure; this is an error in the Swift 6 language mode
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
359 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:91:78: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | let promise = self.keepAlive ? promise : (promise ?? context.eventLoop.makePromise())
90 | if !self.keepAlive {
91 | promise!.futureResult.whenComplete { (_: Result<Void, Error>) in context.close(promise: nil) }
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:196:69: warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
176 | }
177 |
178 | final class XMLRPCServer {
| `- note: class 'XMLRPCServer' does not conform to the 'Sendable' protocol
179 | private var channel: Channel?
180 | private var boot: ServerBootstrap?
:
194 | .childChannelInitializer { channel in
195 | channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap {
196 | channel.pipeline.addHandler(HTTPHandler(server: self))
| `- warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:196:69: warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
176 | }
177 |
178 | final class XMLRPCServer {
| `- note: class 'XMLRPCServer' does not conform to the 'Sendable' protocol
179 | private var channel: Channel?
180 | private var boot: ServerBootstrap?
:
194 | .childChannelInitializer { channel in
195 | channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap {
196 | channel.pipeline.addHandler(HTTPHandler(server: self))
| `- warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | }
198 | }
[621/640] Compiling RosSwift XMLRPCManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/ConnectionManager.swift:186:65: warning: capture of 'self' with non-sendable type 'ConnectionManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
134 | }
135 |
136 | internal final class ConnectionManager {
| `- note: class 'ConnectionManager' does not conform to the 'Sendable' protocol
137 | var channel: Channel?
138 | var boot: ServerBootstrap?
:
184 | .childChannelInitializer {
185 | $0.pipeline.addHandlers([ByteToMessageHandler(MessageDelimiterCodec()),
186 | ConnectionHandler(ros: self.ros)])
| `- warning: capture of 'self' with non-sendable type 'ConnectionManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | }
188 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:246:68: warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
244 | .channelInitializer { channel in
245 | channel.pipeline.addHandlers([ByteToMessageHandler(XmlRpcMessageDelimiterCodec()),
246 | XmlRpcHandler(owner: self)])
| `- warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
247 | }
248 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:368:29: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
366 | switch result {
367 | case .success(let r):
368 | promise.succeed(r)
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
369 | case .failure(let err):
370 | promise.fail(err)
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
9 | import NIO
10 | import NIOConcurrencyHelpers
11 | import rpcobject
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
12 | import RosNetwork
13 | #if os(Linux)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:356:30: warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
354 | // FIXME: check result
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
| `- warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:356:30: warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
354 | // FIXME: check result
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
| `- warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:357:41: warning: capture of 'self' with non-sendable type 'Master' in an isolated closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
| `- warning: capture of 'self' with non-sendable type 'Master' in an isolated closure; this is an error in the Swift 6 language mode
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
359 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:91:78: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | let promise = self.keepAlive ? promise : (promise ?? context.eventLoop.makePromise())
90 | if !self.keepAlive {
91 | promise!.futureResult.whenComplete { (_: Result<Void, Error>) in context.close(promise: nil) }
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:196:69: warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
176 | }
177 |
178 | final class XMLRPCServer {
| `- note: class 'XMLRPCServer' does not conform to the 'Sendable' protocol
179 | private var channel: Channel?
180 | private var boot: ServerBootstrap?
:
194 | .childChannelInitializer { channel in
195 | channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap {
196 | channel.pipeline.addHandler(HTTPHandler(server: self))
| `- warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:196:69: warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
176 | }
177 |
178 | final class XMLRPCServer {
| `- note: class 'XMLRPCServer' does not conform to the 'Sendable' protocol
179 | private var channel: Channel?
180 | private var boot: ServerBootstrap?
:
194 | .childChannelInitializer { channel in
195 | channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap {
196 | channel.pipeline.addHandler(HTTPHandler(server: self))
| `- warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | }
198 | }
[622/640] Compiling RosSwift XMLRpcServer.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/ConnectionManager.swift:186:65: warning: capture of 'self' with non-sendable type 'ConnectionManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
134 | }
135 |
136 | internal final class ConnectionManager {
| `- note: class 'ConnectionManager' does not conform to the 'Sendable' protocol
137 | var channel: Channel?
138 | var boot: ServerBootstrap?
:
184 | .childChannelInitializer {
185 | $0.pipeline.addHandlers([ByteToMessageHandler(MessageDelimiterCodec()),
186 | ConnectionHandler(ros: self.ros)])
| `- warning: capture of 'self' with non-sendable type 'ConnectionManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | }
188 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:246:68: warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
244 | .channelInitializer { channel in
245 | channel.pipeline.addHandlers([ByteToMessageHandler(XmlRpcMessageDelimiterCodec()),
246 | XmlRpcHandler(owner: self)])
| `- warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
247 | }
248 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:368:29: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
366 | switch result {
367 | case .success(let r):
368 | promise.succeed(r)
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
369 | case .failure(let err):
370 | promise.fail(err)
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
9 | import NIO
10 | import NIOConcurrencyHelpers
11 | import rpcobject
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
12 | import RosNetwork
13 | #if os(Linux)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:356:30: warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
354 | // FIXME: check result
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
| `- warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:356:30: warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
354 | // FIXME: check result
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
| `- warning: capture of 'self' with non-sendable type 'Master' in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/Master.swift:357:41: warning: capture of 'self' with non-sendable type 'Master' in an isolated closure; this is an error in the Swift 6 language mode
164 |
165 |
166 | final class Master {
| `- note: class 'Master' does not conform to the 'Sendable' protocol
167 |
168 | let masterHost: String
:
355 |
356 | let result = self.lock.withLock { () -> Result<XmlRpcValue, ValidateError> in
357 | guard let handler = self.handlers[ObjectIdentifier(channel)] else {
| `- warning: capture of 'self' with non-sendable type 'Master' in an isolated closure; this is an error in the Swift 6 language mode
358 | fatalError("failed to connect to \(host):\(port) for method \(method)")
359 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:91:78: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | let promise = self.keepAlive ? promise : (promise ?? context.eventLoop.makePromise())
90 | if !self.keepAlive {
91 | promise!.futureResult.whenComplete { (_: Result<Void, Error>) in context.close(promise: nil) }
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:196:69: warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
176 | }
177 |
178 | final class XMLRPCServer {
| `- note: class 'XMLRPCServer' does not conform to the 'Sendable' protocol
179 | private var channel: Channel?
180 | private var boot: ServerBootstrap?
:
194 | .childChannelInitializer { channel in
195 | channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap {
196 | channel.pipeline.addHandler(HTTPHandler(server: self))
| `- warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/XMLRpcServer.swift:196:69: warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
176 | }
177 |
178 | final class XMLRPCServer {
| `- note: class 'XMLRPCServer' does not conform to the 'Sendable' protocol
179 | private var channel: Channel?
180 | private var boot: ServerBootstrap?
:
194 | .childChannelInitializer { channel in
195 | channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap {
196 | channel.pipeline.addHandler(HTTPHandler(server: self))
| `- warning: capture of 'self' with non-sendable type 'XMLRPCServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 | }
198 | }
[623/640] Compiling RosSwift TimerEvent.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TimerManager.swift:5:5: warning: let 'gTimerManager' is not concurrency-safe because non-'Sendable' type 'InternalTimerManager' (aka 'TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>') may have shared mutable state; this is an error in the Swift 6 language mode
3 | import Atomics
4 |
5 | let gTimerManager = InternalTimerManager()
| |- warning: let 'gTimerManager' is not concurrency-safe because non-'Sendable' type 'InternalTimerManager' (aka 'TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gTimerManager' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | func getInternalTimerManager() -> InternalTimerManager {
:
11 | typealias InternalTimerManager = TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>
12 |
13 | final class TimerManager<T, D: BasicDurationBase, E: Event> where E.EventTime == T {
| `- note: generic class 'TimerManager' does not conform to the 'Sendable' protocol
14 | var timers: [TimerHandle: TimerInfo] = [:]
15 | let timersMutex = DispatchQueue(label: "TimerManager", attributes: .concurrent)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TimerManager.swift:86:40: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
84 | timers[handle] = info
85 | if !threadStarted {
86 | thread = Thread(block: threadFunc)
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
87 | thread?.start()
88 | threadStarted = true
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:259:97: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
257 | let args = XmlRpcValue(anyArray: [ros.name, topic, xmlrpcManager.serverURI])
258 | do {
259 | let response = try ros.master.execute(method: "unregisterPublisher", request: args).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
260 | ROS_DEBUG("response = \(response)")
261 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
9 | import Foundation
10 | import StdMsgs
11 | import rpcobject
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
12 | import RosTime
13 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:384:91: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
382 | var payload = XmlRpcValue()
383 | do {
384 | payload = try ros.master.execute(method: "registerSubscriber", request: args).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
385 | } catch {
386 | ROS_ERROR("registerSubscriber \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:496:90: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
494 | var payload = XmlRpcValue()
495 | do {
496 | payload = try ros.master.execute(method: "registerPublisher", request: args).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
497 | } catch {
498 | ROS_ERROR("registerPublisher \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:21: warning: capture of 'it' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'it' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/Subscription/Subscription.swift:16:22: note: class 'Subscription' does not conform to the 'Sendable' protocol
14 | protocol TransportUDP {}
15 |
16 | internal final class Subscription {
| `- note: class 'Subscription' does not conform to the 'Sendable' protocol
17 | final class CallBackInfo {
18 | let callbackQueue: CallbackQueueInterface
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:33: warning: capture of 'self' with non-sendable type 'TopicManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 |
26 | internal final class TopicManager {
| `- note: class 'TopicManager' does not conform to the 'Sendable' protocol
27 |
28 | let advertisedTopicsMutex = NSRecursiveLock()
:
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'self' with non-sendable type 'TopicManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:60: warning: capture of 'pub' with non-sendable type 'Publication' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'pub' with non-sendable type 'Publication' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/Publication.swift:51:13: note: class 'Publication' does not conform to the 'Sendable' protocol
49 | }
50 |
51 | final class Publication {
| `- note: class 'Publication' does not conform to the 'Sendable' protocol
52 | let name: String
53 | let datatype: String
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportPublisherLink.swift:60:55: warning: capture of 'self' with non-sendable type 'TransportPublisherLink' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import StdMsgs
10 |
11 | final class TransportPublisherLink: PublisherLink {
| `- note: class 'TransportPublisherLink' does not conform to the 'Sendable' protocol
12 | var parent: Subscription
13 | var connectionId: Int
:
58 | switch result {
59 | case .success:
60 | ROS_DEBUG("Header written for topic \(self.parent.name)")
| `- warning: capture of 'self' with non-sendable type 'TransportPublisherLink' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | case .failure(let error):
62 | ROS_ERROR("failed to write header: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportPublisherLink.swift:60:55: warning: implicit capture of 'self' requires that 'TransportPublisherLink' conforms to `Sendable`; this is an error in the Swift 6 language mode
9 | import StdMsgs
10 |
11 | final class TransportPublisherLink: PublisherLink {
| `- note: class 'TransportPublisherLink' does not conform to the 'Sendable' protocol
12 | var parent: Subscription
13 | var connectionId: Int
:
58 | switch result {
59 | case .success:
60 | ROS_DEBUG("Header written for topic \(self.parent.name)")
| `- warning: implicit capture of 'self' requires that 'TransportPublisherLink' conforms to `Sendable`; this is an error in the Swift 6 language mode
61 | case .failure(let error):
62 | ROS_ERROR("failed to write header: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportSubscriberLink.swift:79:34: warning: capture of 'm' with non-sendable type 'SerializedMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | func enqueueMessage(m: SerializedMessage) {
78 | connection.write(buffer: m.buf).whenFailure({ error in
79 | ROS_ERROR("writing \(m), \(error)")
| `- warning: capture of 'm' with non-sendable type 'SerializedMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | })
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SerializedMessage.swift:12:20: note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
10 | import LoggerAPI
11 |
12 | public final class SerializedMessage {
| `- note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
13 | public var buf : [UInt8]
14 | public var message : Message?
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportSubscriberLink.swift:79:34: warning: implicit capture of 'm' requires that 'SerializedMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
77 | func enqueueMessage(m: SerializedMessage) {
78 | connection.write(buffer: m.buf).whenFailure({ error in
79 | ROS_ERROR("writing \(m), \(error)")
| `- warning: implicit capture of 'm' requires that 'SerializedMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
80 | })
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SerializedMessage.swift:12:20: note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
10 | import LoggerAPI
11 |
12 | public final class SerializedMessage {
| `- note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
13 | public var buf : [UInt8]
14 | public var message : Message?
[624/640] Compiling RosSwift TimerManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TimerManager.swift:5:5: warning: let 'gTimerManager' is not concurrency-safe because non-'Sendable' type 'InternalTimerManager' (aka 'TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>') may have shared mutable state; this is an error in the Swift 6 language mode
3 | import Atomics
4 |
5 | let gTimerManager = InternalTimerManager()
| |- warning: let 'gTimerManager' is not concurrency-safe because non-'Sendable' type 'InternalTimerManager' (aka 'TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gTimerManager' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | func getInternalTimerManager() -> InternalTimerManager {
:
11 | typealias InternalTimerManager = TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>
12 |
13 | final class TimerManager<T, D: BasicDurationBase, E: Event> where E.EventTime == T {
| `- note: generic class 'TimerManager' does not conform to the 'Sendable' protocol
14 | var timers: [TimerHandle: TimerInfo] = [:]
15 | let timersMutex = DispatchQueue(label: "TimerManager", attributes: .concurrent)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TimerManager.swift:86:40: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
84 | timers[handle] = info
85 | if !threadStarted {
86 | thread = Thread(block: threadFunc)
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
87 | thread?.start()
88 | threadStarted = true
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:259:97: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
257 | let args = XmlRpcValue(anyArray: [ros.name, topic, xmlrpcManager.serverURI])
258 | do {
259 | let response = try ros.master.execute(method: "unregisterPublisher", request: args).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
260 | ROS_DEBUG("response = \(response)")
261 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
9 | import Foundation
10 | import StdMsgs
11 | import rpcobject
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
12 | import RosTime
13 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:384:91: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
382 | var payload = XmlRpcValue()
383 | do {
384 | payload = try ros.master.execute(method: "registerSubscriber", request: args).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
385 | } catch {
386 | ROS_ERROR("registerSubscriber \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:496:90: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
494 | var payload = XmlRpcValue()
495 | do {
496 | payload = try ros.master.execute(method: "registerPublisher", request: args).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
497 | } catch {
498 | ROS_ERROR("registerPublisher \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:21: warning: capture of 'it' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'it' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/Subscription/Subscription.swift:16:22: note: class 'Subscription' does not conform to the 'Sendable' protocol
14 | protocol TransportUDP {}
15 |
16 | internal final class Subscription {
| `- note: class 'Subscription' does not conform to the 'Sendable' protocol
17 | final class CallBackInfo {
18 | let callbackQueue: CallbackQueueInterface
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:33: warning: capture of 'self' with non-sendable type 'TopicManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 |
26 | internal final class TopicManager {
| `- note: class 'TopicManager' does not conform to the 'Sendable' protocol
27 |
28 | let advertisedTopicsMutex = NSRecursiveLock()
:
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'self' with non-sendable type 'TopicManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:60: warning: capture of 'pub' with non-sendable type 'Publication' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'pub' with non-sendable type 'Publication' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/Publication.swift:51:13: note: class 'Publication' does not conform to the 'Sendable' protocol
49 | }
50 |
51 | final class Publication {
| `- note: class 'Publication' does not conform to the 'Sendable' protocol
52 | let name: String
53 | let datatype: String
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportPublisherLink.swift:60:55: warning: capture of 'self' with non-sendable type 'TransportPublisherLink' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import StdMsgs
10 |
11 | final class TransportPublisherLink: PublisherLink {
| `- note: class 'TransportPublisherLink' does not conform to the 'Sendable' protocol
12 | var parent: Subscription
13 | var connectionId: Int
:
58 | switch result {
59 | case .success:
60 | ROS_DEBUG("Header written for topic \(self.parent.name)")
| `- warning: capture of 'self' with non-sendable type 'TransportPublisherLink' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | case .failure(let error):
62 | ROS_ERROR("failed to write header: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportPublisherLink.swift:60:55: warning: implicit capture of 'self' requires that 'TransportPublisherLink' conforms to `Sendable`; this is an error in the Swift 6 language mode
9 | import StdMsgs
10 |
11 | final class TransportPublisherLink: PublisherLink {
| `- note: class 'TransportPublisherLink' does not conform to the 'Sendable' protocol
12 | var parent: Subscription
13 | var connectionId: Int
:
58 | switch result {
59 | case .success:
60 | ROS_DEBUG("Header written for topic \(self.parent.name)")
| `- warning: implicit capture of 'self' requires that 'TransportPublisherLink' conforms to `Sendable`; this is an error in the Swift 6 language mode
61 | case .failure(let error):
62 | ROS_ERROR("failed to write header: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportSubscriberLink.swift:79:34: warning: capture of 'm' with non-sendable type 'SerializedMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | func enqueueMessage(m: SerializedMessage) {
78 | connection.write(buffer: m.buf).whenFailure({ error in
79 | ROS_ERROR("writing \(m), \(error)")
| `- warning: capture of 'm' with non-sendable type 'SerializedMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | })
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SerializedMessage.swift:12:20: note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
10 | import LoggerAPI
11 |
12 | public final class SerializedMessage {
| `- note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
13 | public var buf : [UInt8]
14 | public var message : Message?
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportSubscriberLink.swift:79:34: warning: implicit capture of 'm' requires that 'SerializedMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
77 | func enqueueMessage(m: SerializedMessage) {
78 | connection.write(buffer: m.buf).whenFailure({ error in
79 | ROS_ERROR("writing \(m), \(error)")
| `- warning: implicit capture of 'm' requires that 'SerializedMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
80 | })
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SerializedMessage.swift:12:20: note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
10 | import LoggerAPI
11 |
12 | public final class SerializedMessage {
| `- note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
13 | public var buf : [UInt8]
14 | public var message : Message?
[625/640] Compiling RosSwift TopicManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TimerManager.swift:5:5: warning: let 'gTimerManager' is not concurrency-safe because non-'Sendable' type 'InternalTimerManager' (aka 'TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>') may have shared mutable state; this is an error in the Swift 6 language mode
3 | import Atomics
4 |
5 | let gTimerManager = InternalTimerManager()
| |- warning: let 'gTimerManager' is not concurrency-safe because non-'Sendable' type 'InternalTimerManager' (aka 'TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gTimerManager' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | func getInternalTimerManager() -> InternalTimerManager {
:
11 | typealias InternalTimerManager = TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>
12 |
13 | final class TimerManager<T, D: BasicDurationBase, E: Event> where E.EventTime == T {
| `- note: generic class 'TimerManager' does not conform to the 'Sendable' protocol
14 | var timers: [TimerHandle: TimerInfo] = [:]
15 | let timersMutex = DispatchQueue(label: "TimerManager", attributes: .concurrent)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TimerManager.swift:86:40: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
84 | timers[handle] = info
85 | if !threadStarted {
86 | thread = Thread(block: threadFunc)
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
87 | thread?.start()
88 | threadStarted = true
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:259:97: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
257 | let args = XmlRpcValue(anyArray: [ros.name, topic, xmlrpcManager.serverURI])
258 | do {
259 | let response = try ros.master.execute(method: "unregisterPublisher", request: args).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
260 | ROS_DEBUG("response = \(response)")
261 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
9 | import Foundation
10 | import StdMsgs
11 | import rpcobject
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
12 | import RosTime
13 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:384:91: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
382 | var payload = XmlRpcValue()
383 | do {
384 | payload = try ros.master.execute(method: "registerSubscriber", request: args).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
385 | } catch {
386 | ROS_ERROR("registerSubscriber \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:496:90: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
494 | var payload = XmlRpcValue()
495 | do {
496 | payload = try ros.master.execute(method: "registerPublisher", request: args).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
497 | } catch {
498 | ROS_ERROR("registerPublisher \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:21: warning: capture of 'it' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'it' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/Subscription/Subscription.swift:16:22: note: class 'Subscription' does not conform to the 'Sendable' protocol
14 | protocol TransportUDP {}
15 |
16 | internal final class Subscription {
| `- note: class 'Subscription' does not conform to the 'Sendable' protocol
17 | final class CallBackInfo {
18 | let callbackQueue: CallbackQueueInterface
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:33: warning: capture of 'self' with non-sendable type 'TopicManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 |
26 | internal final class TopicManager {
| `- note: class 'TopicManager' does not conform to the 'Sendable' protocol
27 |
28 | let advertisedTopicsMutex = NSRecursiveLock()
:
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'self' with non-sendable type 'TopicManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:60: warning: capture of 'pub' with non-sendable type 'Publication' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'pub' with non-sendable type 'Publication' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/Publication.swift:51:13: note: class 'Publication' does not conform to the 'Sendable' protocol
49 | }
50 |
51 | final class Publication {
| `- note: class 'Publication' does not conform to the 'Sendable' protocol
52 | let name: String
53 | let datatype: String
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportPublisherLink.swift:60:55: warning: capture of 'self' with non-sendable type 'TransportPublisherLink' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import StdMsgs
10 |
11 | final class TransportPublisherLink: PublisherLink {
| `- note: class 'TransportPublisherLink' does not conform to the 'Sendable' protocol
12 | var parent: Subscription
13 | var connectionId: Int
:
58 | switch result {
59 | case .success:
60 | ROS_DEBUG("Header written for topic \(self.parent.name)")
| `- warning: capture of 'self' with non-sendable type 'TransportPublisherLink' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | case .failure(let error):
62 | ROS_ERROR("failed to write header: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportPublisherLink.swift:60:55: warning: implicit capture of 'self' requires that 'TransportPublisherLink' conforms to `Sendable`; this is an error in the Swift 6 language mode
9 | import StdMsgs
10 |
11 | final class TransportPublisherLink: PublisherLink {
| `- note: class 'TransportPublisherLink' does not conform to the 'Sendable' protocol
12 | var parent: Subscription
13 | var connectionId: Int
:
58 | switch result {
59 | case .success:
60 | ROS_DEBUG("Header written for topic \(self.parent.name)")
| `- warning: implicit capture of 'self' requires that 'TransportPublisherLink' conforms to `Sendable`; this is an error in the Swift 6 language mode
61 | case .failure(let error):
62 | ROS_ERROR("failed to write header: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportSubscriberLink.swift:79:34: warning: capture of 'm' with non-sendable type 'SerializedMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | func enqueueMessage(m: SerializedMessage) {
78 | connection.write(buffer: m.buf).whenFailure({ error in
79 | ROS_ERROR("writing \(m), \(error)")
| `- warning: capture of 'm' with non-sendable type 'SerializedMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | })
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SerializedMessage.swift:12:20: note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
10 | import LoggerAPI
11 |
12 | public final class SerializedMessage {
| `- note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
13 | public var buf : [UInt8]
14 | public var message : Message?
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportSubscriberLink.swift:79:34: warning: implicit capture of 'm' requires that 'SerializedMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
77 | func enqueueMessage(m: SerializedMessage) {
78 | connection.write(buffer: m.buf).whenFailure({ error in
79 | ROS_ERROR("writing \(m), \(error)")
| `- warning: implicit capture of 'm' requires that 'SerializedMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
80 | })
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SerializedMessage.swift:12:20: note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
10 | import LoggerAPI
11 |
12 | public final class SerializedMessage {
| `- note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
13 | public var buf : [UInt8]
14 | public var message : Message?
[626/640] Compiling RosSwift TransportHints.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TimerManager.swift:5:5: warning: let 'gTimerManager' is not concurrency-safe because non-'Sendable' type 'InternalTimerManager' (aka 'TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>') may have shared mutable state; this is an error in the Swift 6 language mode
3 | import Atomics
4 |
5 | let gTimerManager = InternalTimerManager()
| |- warning: let 'gTimerManager' is not concurrency-safe because non-'Sendable' type 'InternalTimerManager' (aka 'TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gTimerManager' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | func getInternalTimerManager() -> InternalTimerManager {
:
11 | typealias InternalTimerManager = TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>
12 |
13 | final class TimerManager<T, D: BasicDurationBase, E: Event> where E.EventTime == T {
| `- note: generic class 'TimerManager' does not conform to the 'Sendable' protocol
14 | var timers: [TimerHandle: TimerInfo] = [:]
15 | let timersMutex = DispatchQueue(label: "TimerManager", attributes: .concurrent)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TimerManager.swift:86:40: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
84 | timers[handle] = info
85 | if !threadStarted {
86 | thread = Thread(block: threadFunc)
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
87 | thread?.start()
88 | threadStarted = true
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:259:97: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
257 | let args = XmlRpcValue(anyArray: [ros.name, topic, xmlrpcManager.serverURI])
258 | do {
259 | let response = try ros.master.execute(method: "unregisterPublisher", request: args).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
260 | ROS_DEBUG("response = \(response)")
261 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
9 | import Foundation
10 | import StdMsgs
11 | import rpcobject
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
12 | import RosTime
13 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:384:91: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
382 | var payload = XmlRpcValue()
383 | do {
384 | payload = try ros.master.execute(method: "registerSubscriber", request: args).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
385 | } catch {
386 | ROS_ERROR("registerSubscriber \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:496:90: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
494 | var payload = XmlRpcValue()
495 | do {
496 | payload = try ros.master.execute(method: "registerPublisher", request: args).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
497 | } catch {
498 | ROS_ERROR("registerPublisher \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:21: warning: capture of 'it' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'it' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/Subscription/Subscription.swift:16:22: note: class 'Subscription' does not conform to the 'Sendable' protocol
14 | protocol TransportUDP {}
15 |
16 | internal final class Subscription {
| `- note: class 'Subscription' does not conform to the 'Sendable' protocol
17 | final class CallBackInfo {
18 | let callbackQueue: CallbackQueueInterface
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:33: warning: capture of 'self' with non-sendable type 'TopicManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 |
26 | internal final class TopicManager {
| `- note: class 'TopicManager' does not conform to the 'Sendable' protocol
27 |
28 | let advertisedTopicsMutex = NSRecursiveLock()
:
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'self' with non-sendable type 'TopicManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:60: warning: capture of 'pub' with non-sendable type 'Publication' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'pub' with non-sendable type 'Publication' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/Publication.swift:51:13: note: class 'Publication' does not conform to the 'Sendable' protocol
49 | }
50 |
51 | final class Publication {
| `- note: class 'Publication' does not conform to the 'Sendable' protocol
52 | let name: String
53 | let datatype: String
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportPublisherLink.swift:60:55: warning: capture of 'self' with non-sendable type 'TransportPublisherLink' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import StdMsgs
10 |
11 | final class TransportPublisherLink: PublisherLink {
| `- note: class 'TransportPublisherLink' does not conform to the 'Sendable' protocol
12 | var parent: Subscription
13 | var connectionId: Int
:
58 | switch result {
59 | case .success:
60 | ROS_DEBUG("Header written for topic \(self.parent.name)")
| `- warning: capture of 'self' with non-sendable type 'TransportPublisherLink' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | case .failure(let error):
62 | ROS_ERROR("failed to write header: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportPublisherLink.swift:60:55: warning: implicit capture of 'self' requires that 'TransportPublisherLink' conforms to `Sendable`; this is an error in the Swift 6 language mode
9 | import StdMsgs
10 |
11 | final class TransportPublisherLink: PublisherLink {
| `- note: class 'TransportPublisherLink' does not conform to the 'Sendable' protocol
12 | var parent: Subscription
13 | var connectionId: Int
:
58 | switch result {
59 | case .success:
60 | ROS_DEBUG("Header written for topic \(self.parent.name)")
| `- warning: implicit capture of 'self' requires that 'TransportPublisherLink' conforms to `Sendable`; this is an error in the Swift 6 language mode
61 | case .failure(let error):
62 | ROS_ERROR("failed to write header: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportSubscriberLink.swift:79:34: warning: capture of 'm' with non-sendable type 'SerializedMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | func enqueueMessage(m: SerializedMessage) {
78 | connection.write(buffer: m.buf).whenFailure({ error in
79 | ROS_ERROR("writing \(m), \(error)")
| `- warning: capture of 'm' with non-sendable type 'SerializedMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | })
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SerializedMessage.swift:12:20: note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
10 | import LoggerAPI
11 |
12 | public final class SerializedMessage {
| `- note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
13 | public var buf : [UInt8]
14 | public var message : Message?
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportSubscriberLink.swift:79:34: warning: implicit capture of 'm' requires that 'SerializedMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
77 | func enqueueMessage(m: SerializedMessage) {
78 | connection.write(buffer: m.buf).whenFailure({ error in
79 | ROS_ERROR("writing \(m), \(error)")
| `- warning: implicit capture of 'm' requires that 'SerializedMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
80 | })
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SerializedMessage.swift:12:20: note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
10 | import LoggerAPI
11 |
12 | public final class SerializedMessage {
| `- note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
13 | public var buf : [UInt8]
14 | public var message : Message?
[627/640] Compiling RosSwift TransportPublisherLink.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TimerManager.swift:5:5: warning: let 'gTimerManager' is not concurrency-safe because non-'Sendable' type 'InternalTimerManager' (aka 'TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>') may have shared mutable state; this is an error in the Swift 6 language mode
3 | import Atomics
4 |
5 | let gTimerManager = InternalTimerManager()
| |- warning: let 'gTimerManager' is not concurrency-safe because non-'Sendable' type 'InternalTimerManager' (aka 'TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gTimerManager' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | func getInternalTimerManager() -> InternalTimerManager {
:
11 | typealias InternalTimerManager = TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>
12 |
13 | final class TimerManager<T, D: BasicDurationBase, E: Event> where E.EventTime == T {
| `- note: generic class 'TimerManager' does not conform to the 'Sendable' protocol
14 | var timers: [TimerHandle: TimerInfo] = [:]
15 | let timersMutex = DispatchQueue(label: "TimerManager", attributes: .concurrent)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TimerManager.swift:86:40: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
84 | timers[handle] = info
85 | if !threadStarted {
86 | thread = Thread(block: threadFunc)
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
87 | thread?.start()
88 | threadStarted = true
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:259:97: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
257 | let args = XmlRpcValue(anyArray: [ros.name, topic, xmlrpcManager.serverURI])
258 | do {
259 | let response = try ros.master.execute(method: "unregisterPublisher", request: args).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
260 | ROS_DEBUG("response = \(response)")
261 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
9 | import Foundation
10 | import StdMsgs
11 | import rpcobject
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
12 | import RosTime
13 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:384:91: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
382 | var payload = XmlRpcValue()
383 | do {
384 | payload = try ros.master.execute(method: "registerSubscriber", request: args).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
385 | } catch {
386 | ROS_ERROR("registerSubscriber \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:496:90: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
494 | var payload = XmlRpcValue()
495 | do {
496 | payload = try ros.master.execute(method: "registerPublisher", request: args).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
497 | } catch {
498 | ROS_ERROR("registerPublisher \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:21: warning: capture of 'it' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'it' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/Subscription/Subscription.swift:16:22: note: class 'Subscription' does not conform to the 'Sendable' protocol
14 | protocol TransportUDP {}
15 |
16 | internal final class Subscription {
| `- note: class 'Subscription' does not conform to the 'Sendable' protocol
17 | final class CallBackInfo {
18 | let callbackQueue: CallbackQueueInterface
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:33: warning: capture of 'self' with non-sendable type 'TopicManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 |
26 | internal final class TopicManager {
| `- note: class 'TopicManager' does not conform to the 'Sendable' protocol
27 |
28 | let advertisedTopicsMutex = NSRecursiveLock()
:
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'self' with non-sendable type 'TopicManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:60: warning: capture of 'pub' with non-sendable type 'Publication' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'pub' with non-sendable type 'Publication' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/Publication.swift:51:13: note: class 'Publication' does not conform to the 'Sendable' protocol
49 | }
50 |
51 | final class Publication {
| `- note: class 'Publication' does not conform to the 'Sendable' protocol
52 | let name: String
53 | let datatype: String
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportPublisherLink.swift:60:55: warning: capture of 'self' with non-sendable type 'TransportPublisherLink' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import StdMsgs
10 |
11 | final class TransportPublisherLink: PublisherLink {
| `- note: class 'TransportPublisherLink' does not conform to the 'Sendable' protocol
12 | var parent: Subscription
13 | var connectionId: Int
:
58 | switch result {
59 | case .success:
60 | ROS_DEBUG("Header written for topic \(self.parent.name)")
| `- warning: capture of 'self' with non-sendable type 'TransportPublisherLink' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | case .failure(let error):
62 | ROS_ERROR("failed to write header: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportPublisherLink.swift:60:55: warning: implicit capture of 'self' requires that 'TransportPublisherLink' conforms to `Sendable`; this is an error in the Swift 6 language mode
9 | import StdMsgs
10 |
11 | final class TransportPublisherLink: PublisherLink {
| `- note: class 'TransportPublisherLink' does not conform to the 'Sendable' protocol
12 | var parent: Subscription
13 | var connectionId: Int
:
58 | switch result {
59 | case .success:
60 | ROS_DEBUG("Header written for topic \(self.parent.name)")
| `- warning: implicit capture of 'self' requires that 'TransportPublisherLink' conforms to `Sendable`; this is an error in the Swift 6 language mode
61 | case .failure(let error):
62 | ROS_ERROR("failed to write header: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportSubscriberLink.swift:79:34: warning: capture of 'm' with non-sendable type 'SerializedMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | func enqueueMessage(m: SerializedMessage) {
78 | connection.write(buffer: m.buf).whenFailure({ error in
79 | ROS_ERROR("writing \(m), \(error)")
| `- warning: capture of 'm' with non-sendable type 'SerializedMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | })
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SerializedMessage.swift:12:20: note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
10 | import LoggerAPI
11 |
12 | public final class SerializedMessage {
| `- note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
13 | public var buf : [UInt8]
14 | public var message : Message?
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportSubscriberLink.swift:79:34: warning: implicit capture of 'm' requires that 'SerializedMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
77 | func enqueueMessage(m: SerializedMessage) {
78 | connection.write(buffer: m.buf).whenFailure({ error in
79 | ROS_ERROR("writing \(m), \(error)")
| `- warning: implicit capture of 'm' requires that 'SerializedMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
80 | })
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SerializedMessage.swift:12:20: note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
10 | import LoggerAPI
11 |
12 | public final class SerializedMessage {
| `- note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
13 | public var buf : [UInt8]
14 | public var message : Message?
[628/640] Compiling RosSwift TransportSubscriberLink.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TimerManager.swift:5:5: warning: let 'gTimerManager' is not concurrency-safe because non-'Sendable' type 'InternalTimerManager' (aka 'TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>') may have shared mutable state; this is an error in the Swift 6 language mode
3 | import Atomics
4 |
5 | let gTimerManager = InternalTimerManager()
| |- warning: let 'gTimerManager' is not concurrency-safe because non-'Sendable' type 'InternalTimerManager' (aka 'TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gTimerManager' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | func getInternalTimerManager() -> InternalTimerManager {
:
11 | typealias InternalTimerManager = TimerManager<SteadyTime, WallDuration, SteadyTimerEvent>
12 |
13 | final class TimerManager<T, D: BasicDurationBase, E: Event> where E.EventTime == T {
| `- note: generic class 'TimerManager' does not conform to the 'Sendable' protocol
14 | var timers: [TimerHandle: TimerInfo] = [:]
15 | let timersMutex = DispatchQueue(label: "TimerManager", attributes: .concurrent)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TimerManager.swift:86:40: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
84 | timers[handle] = info
85 | if !threadStarted {
86 | thread = Thread(block: threadFunc)
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
87 | thread?.start()
88 | threadStarted = true
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:259:97: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
257 | let args = XmlRpcValue(anyArray: [ros.name, topic, xmlrpcManager.serverURI])
258 | do {
259 | let response = try ros.master.execute(method: "unregisterPublisher", request: args).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
260 | ROS_DEBUG("response = \(response)")
261 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
9 | import Foundation
10 | import StdMsgs
11 | import rpcobject
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
12 | import RosTime
13 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:384:91: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
382 | var payload = XmlRpcValue()
383 | do {
384 | payload = try ros.master.execute(method: "registerSubscriber", request: args).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
385 | } catch {
386 | ROS_ERROR("registerSubscriber \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:496:90: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
494 | var payload = XmlRpcValue()
495 | do {
496 | payload = try ros.master.execute(method: "registerPublisher", request: args).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
497 | } catch {
498 | ROS_ERROR("registerPublisher \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:21: warning: capture of 'it' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'it' with non-sendable type 'Subscription' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/Subscription/Subscription.swift:16:22: note: class 'Subscription' does not conform to the 'Sendable' protocol
14 | protocol TransportUDP {}
15 |
16 | internal final class Subscription {
| `- note: class 'Subscription' does not conform to the 'Sendable' protocol
17 | final class CallBackInfo {
18 | let callbackQueue: CallbackQueueInterface
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:33: warning: capture of 'self' with non-sendable type 'TopicManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 |
26 | internal final class TopicManager {
| `- note: class 'TopicManager' does not conform to the 'Sendable' protocol
27 |
28 | let advertisedTopicsMutex = NSRecursiveLock()
:
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'self' with non-sendable type 'TopicManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TopicManager.swift:488:60: warning: capture of 'pub' with non-sendable type 'Publication' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 | }) {
487 | DispatchQueue(label: "adding").async {
488 | it.add(ros: self.ros, localConnection: pub)
| `- warning: capture of 'pub' with non-sendable type 'Publication' in a `@Sendable` closure; this is an error in the Swift 6 language mode
489 | }
490 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/Publication.swift:51:13: note: class 'Publication' does not conform to the 'Sendable' protocol
49 | }
50 |
51 | final class Publication {
| `- note: class 'Publication' does not conform to the 'Sendable' protocol
52 | let name: String
53 | let datatype: String
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportPublisherLink.swift:60:55: warning: capture of 'self' with non-sendable type 'TransportPublisherLink' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import StdMsgs
10 |
11 | final class TransportPublisherLink: PublisherLink {
| `- note: class 'TransportPublisherLink' does not conform to the 'Sendable' protocol
12 | var parent: Subscription
13 | var connectionId: Int
:
58 | switch result {
59 | case .success:
60 | ROS_DEBUG("Header written for topic \(self.parent.name)")
| `- warning: capture of 'self' with non-sendable type 'TransportPublisherLink' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | case .failure(let error):
62 | ROS_ERROR("failed to write header: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportPublisherLink.swift:60:55: warning: implicit capture of 'self' requires that 'TransportPublisherLink' conforms to `Sendable`; this is an error in the Swift 6 language mode
9 | import StdMsgs
10 |
11 | final class TransportPublisherLink: PublisherLink {
| `- note: class 'TransportPublisherLink' does not conform to the 'Sendable' protocol
12 | var parent: Subscription
13 | var connectionId: Int
:
58 | switch result {
59 | case .success:
60 | ROS_DEBUG("Header written for topic \(self.parent.name)")
| `- warning: implicit capture of 'self' requires that 'TransportPublisherLink' conforms to `Sendable`; this is an error in the Swift 6 language mode
61 | case .failure(let error):
62 | ROS_ERROR("failed to write header: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportSubscriberLink.swift:79:34: warning: capture of 'm' with non-sendable type 'SerializedMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | func enqueueMessage(m: SerializedMessage) {
78 | connection.write(buffer: m.buf).whenFailure({ error in
79 | ROS_ERROR("writing \(m), \(error)")
| `- warning: capture of 'm' with non-sendable type 'SerializedMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | })
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SerializedMessage.swift:12:20: note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
10 | import LoggerAPI
11 |
12 | public final class SerializedMessage {
| `- note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
13 | public var buf : [UInt8]
14 | public var message : Message?
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/TransportSubscriberLink.swift:79:34: warning: implicit capture of 'm' requires that 'SerializedMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
77 | func enqueueMessage(m: SerializedMessage) {
78 | connection.write(buffer: m.buf).whenFailure({ error in
79 | ROS_ERROR("writing \(m), \(error)")
| `- warning: implicit capture of 'm' requires that 'SerializedMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
80 | })
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/SerializedMessage.swift:12:20: note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
10 | import LoggerAPI
11 |
12 | public final class SerializedMessage {
| `- note: class 'SerializedMessage' does not conform to the 'Sendable' protocol
13 | public var buf : [UInt8]
14 | public var message : Message?
[629/640] Compiling RosSwift inboundConnection.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/inboundConnection.swift:49:44: warning: capture of 'self' with non-sendable type 'InboundConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | final class InboundConnection {
| `- note: class 'InboundConnection' does not conform to the 'Sendable' protocol
19 |
20 | var channel: Channel?
:
47 | _ = channel.pipeline.addHandlers([
48 | ByteToMessageHandler(LengthFieldBasedFrameDecoder(lengthFieldLength: .four, lengthFieldEndianness: .little)),
49 | InboundHandler(parent: self)])
| `- warning: capture of 'self' with non-sendable type 'InboundConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | return channel
51 | }.wait()
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:78:90: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
76 | let params = XmlRpcValue(anyArray: [ros.name, mappedKey])
77 | do {
78 | let payload = try ros.master.execute(method: "deleteParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
79 | return payload.valid()
80 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
7 |
8 | import Foundation
9 | import rpcobject
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
10 | import NIO
11 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:183:95: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
181 | let params = XmlRpcValue(str: ros.name)
182 | do {
183 | let parameters = try ros.master.execute(method: "getParamNames", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
184 |
185 | if !parameters.isArray {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:242:87: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
240 |
241 | do {
242 | let payload = try ros.master.execute(method: "hasParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
243 |
244 | var result = false
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:405:90: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
403 |
404 | do {
405 | let payload = try ros.master.execute(method: "searchParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
406 | result = payload.string
407 | } catch Master.ValidateError.malformed(let str) {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:436:89: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
434 | let params = XmlRpcValue(anyArray: [ros.name, mappedKey, v])
435 | do {
436 | let parameter = try ros.master.execute(method: "setParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
437 | if let res = parameter.int {
438 | if res != 0 {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:485:104: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
483 |
484 | do {
485 | let result = try ros.master.execute(method: "subscribeParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
486 | ROS_DEBUG("cached_parameters: Subscribed to parameter [\(mappedKey)]" +
487 | " with result:\n\(result)")
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:504:81: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
502 | let params = XmlRpcValue(anyArray: [ros.name, mappedKey])
503 | do {
504 | let v = try ros.master.execute(method: "getParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
505 | if v.isArray && v.size() == 1 {
506 | value = v[0]
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:533:16: warning: capture of 'self' with non-sendable type 'Param' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 |
46 | public final class Param {
| `- note: class 'Param' does not conform to the 'Sendable' protocol
47 |
48 | let parameterQueue = DispatchQueue(label: "parameterQueue")
:
531 |
532 | parameterQueue.async {
533 | if self.gSubscribedParameters.keys.contains(cleanKey) {
| `- warning: capture of 'self' with non-sendable type 'Param' in a `@Sendable` closure; this is an error in the Swift 6 language mode
534 | self.gParameters[cleanKey] = value
535 | self.gSubscribedParameters[cleanKey]?.handler?(value)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:534:46: warning: capture of 'value' with non-sendable type 'XmlRpcValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
532 | parameterQueue.async {
533 | if self.gSubscribedParameters.keys.contains(cleanKey) {
534 | self.gParameters[cleanKey] = value
| `- warning: capture of 'value' with non-sendable type 'XmlRpcValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
535 | self.gSubscribedParameters[cleanKey]?.handler?(value)
536 | }
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosconsole.swift:111:16: warning: static property 'gInitialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 |
110 | internal struct Console {
111 | static var gInitialized = false
| |- warning: static property 'gInitialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gInitialized' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'gInitialized' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 | static var gExtraFixedTokens = StringStringMap()
113 | static let gLocationsQueue = DispatchQueue(label: "location_mutex")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosconsole.swift:112:16: warning: static property 'gExtraFixedTokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
110 | internal struct Console {
111 | static var gInitialized = false
112 | static var gExtraFixedTokens = StringStringMap()
| |- warning: static property 'gExtraFixedTokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gExtraFixedTokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'gExtraFixedTokens' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | static let gLocationsQueue = DispatchQueue(label: "location_mutex")
114 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:32:28: warning: static property 'globalRos' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | fileprivate static var globalRos = Set<Ros>()
| |- warning: static property 'globalRos' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalRos' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalRos' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | fileprivate static var atexitRegistered = false
34 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:33:28: warning: static property 'atexitRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | fileprivate static var globalRos = Set<Ros>()
33 | fileprivate static var atexitRegistered = false
| |- warning: static property 'atexitRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'atexitRegistered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'atexitRegistered' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | public typealias InitOption = Set<InitOptions>
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:323:17: warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | public typealias StringStringMap = [String: String]
13 |
14 | public final class Ros: Hashable {
| `- note: class 'Ros' does not conform to the 'Sendable' protocol
15 |
16 | public static func == (lhs: Ros, rhs: Ros) -> Bool {
:
321 | // we have to avoid calling wait inside an EventLoop
322 | DispatchQueue(label: "shutdown").async {
323 | self.requestShutdown()
| `- warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
324 | }
325 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:345:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
343 | ROS_ERROR("Caught kill, stopping...")
344 | DispatchQueue.main.async {
345 | self.requestShutdown()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
346 | }
347 | }
[630/640] Compiling RosSwift param.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/inboundConnection.swift:49:44: warning: capture of 'self' with non-sendable type 'InboundConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | final class InboundConnection {
| `- note: class 'InboundConnection' does not conform to the 'Sendable' protocol
19 |
20 | var channel: Channel?
:
47 | _ = channel.pipeline.addHandlers([
48 | ByteToMessageHandler(LengthFieldBasedFrameDecoder(lengthFieldLength: .four, lengthFieldEndianness: .little)),
49 | InboundHandler(parent: self)])
| `- warning: capture of 'self' with non-sendable type 'InboundConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | return channel
51 | }.wait()
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:78:90: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
76 | let params = XmlRpcValue(anyArray: [ros.name, mappedKey])
77 | do {
78 | let payload = try ros.master.execute(method: "deleteParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
79 | return payload.valid()
80 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
7 |
8 | import Foundation
9 | import rpcobject
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
10 | import NIO
11 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:183:95: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
181 | let params = XmlRpcValue(str: ros.name)
182 | do {
183 | let parameters = try ros.master.execute(method: "getParamNames", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
184 |
185 | if !parameters.isArray {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:242:87: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
240 |
241 | do {
242 | let payload = try ros.master.execute(method: "hasParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
243 |
244 | var result = false
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:405:90: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
403 |
404 | do {
405 | let payload = try ros.master.execute(method: "searchParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
406 | result = payload.string
407 | } catch Master.ValidateError.malformed(let str) {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:436:89: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
434 | let params = XmlRpcValue(anyArray: [ros.name, mappedKey, v])
435 | do {
436 | let parameter = try ros.master.execute(method: "setParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
437 | if let res = parameter.int {
438 | if res != 0 {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:485:104: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
483 |
484 | do {
485 | let result = try ros.master.execute(method: "subscribeParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
486 | ROS_DEBUG("cached_parameters: Subscribed to parameter [\(mappedKey)]" +
487 | " with result:\n\(result)")
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:504:81: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
502 | let params = XmlRpcValue(anyArray: [ros.name, mappedKey])
503 | do {
504 | let v = try ros.master.execute(method: "getParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
505 | if v.isArray && v.size() == 1 {
506 | value = v[0]
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:533:16: warning: capture of 'self' with non-sendable type 'Param' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 |
46 | public final class Param {
| `- note: class 'Param' does not conform to the 'Sendable' protocol
47 |
48 | let parameterQueue = DispatchQueue(label: "parameterQueue")
:
531 |
532 | parameterQueue.async {
533 | if self.gSubscribedParameters.keys.contains(cleanKey) {
| `- warning: capture of 'self' with non-sendable type 'Param' in a `@Sendable` closure; this is an error in the Swift 6 language mode
534 | self.gParameters[cleanKey] = value
535 | self.gSubscribedParameters[cleanKey]?.handler?(value)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:534:46: warning: capture of 'value' with non-sendable type 'XmlRpcValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
532 | parameterQueue.async {
533 | if self.gSubscribedParameters.keys.contains(cleanKey) {
534 | self.gParameters[cleanKey] = value
| `- warning: capture of 'value' with non-sendable type 'XmlRpcValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
535 | self.gSubscribedParameters[cleanKey]?.handler?(value)
536 | }
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosconsole.swift:111:16: warning: static property 'gInitialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 |
110 | internal struct Console {
111 | static var gInitialized = false
| |- warning: static property 'gInitialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gInitialized' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'gInitialized' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 | static var gExtraFixedTokens = StringStringMap()
113 | static let gLocationsQueue = DispatchQueue(label: "location_mutex")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosconsole.swift:112:16: warning: static property 'gExtraFixedTokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
110 | internal struct Console {
111 | static var gInitialized = false
112 | static var gExtraFixedTokens = StringStringMap()
| |- warning: static property 'gExtraFixedTokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gExtraFixedTokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'gExtraFixedTokens' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | static let gLocationsQueue = DispatchQueue(label: "location_mutex")
114 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:32:28: warning: static property 'globalRos' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | fileprivate static var globalRos = Set<Ros>()
| |- warning: static property 'globalRos' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalRos' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalRos' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | fileprivate static var atexitRegistered = false
34 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:33:28: warning: static property 'atexitRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | fileprivate static var globalRos = Set<Ros>()
33 | fileprivate static var atexitRegistered = false
| |- warning: static property 'atexitRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'atexitRegistered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'atexitRegistered' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | public typealias InitOption = Set<InitOptions>
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:323:17: warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | public typealias StringStringMap = [String: String]
13 |
14 | public final class Ros: Hashable {
| `- note: class 'Ros' does not conform to the 'Sendable' protocol
15 |
16 | public static func == (lhs: Ros, rhs: Ros) -> Bool {
:
321 | // we have to avoid calling wait inside an EventLoop
322 | DispatchQueue(label: "shutdown").async {
323 | self.requestShutdown()
| `- warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
324 | }
325 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:345:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
343 | ROS_ERROR("Caught kill, stopping...")
344 | DispatchQueue.main.async {
345 | self.requestShutdown()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
346 | }
347 | }
[631/640] Compiling RosSwift rosconsole.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/inboundConnection.swift:49:44: warning: capture of 'self' with non-sendable type 'InboundConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | final class InboundConnection {
| `- note: class 'InboundConnection' does not conform to the 'Sendable' protocol
19 |
20 | var channel: Channel?
:
47 | _ = channel.pipeline.addHandlers([
48 | ByteToMessageHandler(LengthFieldBasedFrameDecoder(lengthFieldLength: .four, lengthFieldEndianness: .little)),
49 | InboundHandler(parent: self)])
| `- warning: capture of 'self' with non-sendable type 'InboundConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | return channel
51 | }.wait()
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:78:90: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
76 | let params = XmlRpcValue(anyArray: [ros.name, mappedKey])
77 | do {
78 | let payload = try ros.master.execute(method: "deleteParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
79 | return payload.valid()
80 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
7 |
8 | import Foundation
9 | import rpcobject
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
10 | import NIO
11 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:183:95: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
181 | let params = XmlRpcValue(str: ros.name)
182 | do {
183 | let parameters = try ros.master.execute(method: "getParamNames", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
184 |
185 | if !parameters.isArray {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:242:87: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
240 |
241 | do {
242 | let payload = try ros.master.execute(method: "hasParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
243 |
244 | var result = false
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:405:90: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
403 |
404 | do {
405 | let payload = try ros.master.execute(method: "searchParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
406 | result = payload.string
407 | } catch Master.ValidateError.malformed(let str) {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:436:89: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
434 | let params = XmlRpcValue(anyArray: [ros.name, mappedKey, v])
435 | do {
436 | let parameter = try ros.master.execute(method: "setParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
437 | if let res = parameter.int {
438 | if res != 0 {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:485:104: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
483 |
484 | do {
485 | let result = try ros.master.execute(method: "subscribeParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
486 | ROS_DEBUG("cached_parameters: Subscribed to parameter [\(mappedKey)]" +
487 | " with result:\n\(result)")
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:504:81: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
502 | let params = XmlRpcValue(anyArray: [ros.name, mappedKey])
503 | do {
504 | let v = try ros.master.execute(method: "getParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
505 | if v.isArray && v.size() == 1 {
506 | value = v[0]
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:533:16: warning: capture of 'self' with non-sendable type 'Param' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 |
46 | public final class Param {
| `- note: class 'Param' does not conform to the 'Sendable' protocol
47 |
48 | let parameterQueue = DispatchQueue(label: "parameterQueue")
:
531 |
532 | parameterQueue.async {
533 | if self.gSubscribedParameters.keys.contains(cleanKey) {
| `- warning: capture of 'self' with non-sendable type 'Param' in a `@Sendable` closure; this is an error in the Swift 6 language mode
534 | self.gParameters[cleanKey] = value
535 | self.gSubscribedParameters[cleanKey]?.handler?(value)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:534:46: warning: capture of 'value' with non-sendable type 'XmlRpcValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
532 | parameterQueue.async {
533 | if self.gSubscribedParameters.keys.contains(cleanKey) {
534 | self.gParameters[cleanKey] = value
| `- warning: capture of 'value' with non-sendable type 'XmlRpcValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
535 | self.gSubscribedParameters[cleanKey]?.handler?(value)
536 | }
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosconsole.swift:111:16: warning: static property 'gInitialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 |
110 | internal struct Console {
111 | static var gInitialized = false
| |- warning: static property 'gInitialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gInitialized' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'gInitialized' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 | static var gExtraFixedTokens = StringStringMap()
113 | static let gLocationsQueue = DispatchQueue(label: "location_mutex")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosconsole.swift:112:16: warning: static property 'gExtraFixedTokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
110 | internal struct Console {
111 | static var gInitialized = false
112 | static var gExtraFixedTokens = StringStringMap()
| |- warning: static property 'gExtraFixedTokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gExtraFixedTokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'gExtraFixedTokens' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | static let gLocationsQueue = DispatchQueue(label: "location_mutex")
114 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:32:28: warning: static property 'globalRos' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | fileprivate static var globalRos = Set<Ros>()
| |- warning: static property 'globalRos' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalRos' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalRos' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | fileprivate static var atexitRegistered = false
34 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:33:28: warning: static property 'atexitRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | fileprivate static var globalRos = Set<Ros>()
33 | fileprivate static var atexitRegistered = false
| |- warning: static property 'atexitRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'atexitRegistered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'atexitRegistered' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | public typealias InitOption = Set<InitOptions>
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:323:17: warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | public typealias StringStringMap = [String: String]
13 |
14 | public final class Ros: Hashable {
| `- note: class 'Ros' does not conform to the 'Sendable' protocol
15 |
16 | public static func == (lhs: Ros, rhs: Ros) -> Bool {
:
321 | // we have to avoid calling wait inside an EventLoop
322 | DispatchQueue(label: "shutdown").async {
323 | self.requestShutdown()
| `- warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
324 | }
325 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:345:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
343 | ROS_ERROR("Caught kill, stopping...")
344 | DispatchQueue.main.async {
345 | self.requestShutdown()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
346 | }
347 | }
[632/640] Compiling RosSwift rosout_appender.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/inboundConnection.swift:49:44: warning: capture of 'self' with non-sendable type 'InboundConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | final class InboundConnection {
| `- note: class 'InboundConnection' does not conform to the 'Sendable' protocol
19 |
20 | var channel: Channel?
:
47 | _ = channel.pipeline.addHandlers([
48 | ByteToMessageHandler(LengthFieldBasedFrameDecoder(lengthFieldLength: .four, lengthFieldEndianness: .little)),
49 | InboundHandler(parent: self)])
| `- warning: capture of 'self' with non-sendable type 'InboundConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | return channel
51 | }.wait()
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:78:90: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
76 | let params = XmlRpcValue(anyArray: [ros.name, mappedKey])
77 | do {
78 | let payload = try ros.master.execute(method: "deleteParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
79 | return payload.valid()
80 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
7 |
8 | import Foundation
9 | import rpcobject
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
10 | import NIO
11 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:183:95: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
181 | let params = XmlRpcValue(str: ros.name)
182 | do {
183 | let parameters = try ros.master.execute(method: "getParamNames", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
184 |
185 | if !parameters.isArray {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:242:87: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
240 |
241 | do {
242 | let payload = try ros.master.execute(method: "hasParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
243 |
244 | var result = false
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:405:90: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
403 |
404 | do {
405 | let payload = try ros.master.execute(method: "searchParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
406 | result = payload.string
407 | } catch Master.ValidateError.malformed(let str) {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:436:89: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
434 | let params = XmlRpcValue(anyArray: [ros.name, mappedKey, v])
435 | do {
436 | let parameter = try ros.master.execute(method: "setParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
437 | if let res = parameter.int {
438 | if res != 0 {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:485:104: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
483 |
484 | do {
485 | let result = try ros.master.execute(method: "subscribeParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
486 | ROS_DEBUG("cached_parameters: Subscribed to parameter [\(mappedKey)]" +
487 | " with result:\n\(result)")
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:504:81: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
502 | let params = XmlRpcValue(anyArray: [ros.name, mappedKey])
503 | do {
504 | let v = try ros.master.execute(method: "getParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
505 | if v.isArray && v.size() == 1 {
506 | value = v[0]
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:533:16: warning: capture of 'self' with non-sendable type 'Param' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 |
46 | public final class Param {
| `- note: class 'Param' does not conform to the 'Sendable' protocol
47 |
48 | let parameterQueue = DispatchQueue(label: "parameterQueue")
:
531 |
532 | parameterQueue.async {
533 | if self.gSubscribedParameters.keys.contains(cleanKey) {
| `- warning: capture of 'self' with non-sendable type 'Param' in a `@Sendable` closure; this is an error in the Swift 6 language mode
534 | self.gParameters[cleanKey] = value
535 | self.gSubscribedParameters[cleanKey]?.handler?(value)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:534:46: warning: capture of 'value' with non-sendable type 'XmlRpcValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
532 | parameterQueue.async {
533 | if self.gSubscribedParameters.keys.contains(cleanKey) {
534 | self.gParameters[cleanKey] = value
| `- warning: capture of 'value' with non-sendable type 'XmlRpcValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
535 | self.gSubscribedParameters[cleanKey]?.handler?(value)
536 | }
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosconsole.swift:111:16: warning: static property 'gInitialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 |
110 | internal struct Console {
111 | static var gInitialized = false
| |- warning: static property 'gInitialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gInitialized' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'gInitialized' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 | static var gExtraFixedTokens = StringStringMap()
113 | static let gLocationsQueue = DispatchQueue(label: "location_mutex")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosconsole.swift:112:16: warning: static property 'gExtraFixedTokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
110 | internal struct Console {
111 | static var gInitialized = false
112 | static var gExtraFixedTokens = StringStringMap()
| |- warning: static property 'gExtraFixedTokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gExtraFixedTokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'gExtraFixedTokens' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | static let gLocationsQueue = DispatchQueue(label: "location_mutex")
114 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:32:28: warning: static property 'globalRos' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | fileprivate static var globalRos = Set<Ros>()
| |- warning: static property 'globalRos' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalRos' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalRos' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | fileprivate static var atexitRegistered = false
34 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:33:28: warning: static property 'atexitRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | fileprivate static var globalRos = Set<Ros>()
33 | fileprivate static var atexitRegistered = false
| |- warning: static property 'atexitRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'atexitRegistered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'atexitRegistered' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | public typealias InitOption = Set<InitOptions>
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:323:17: warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | public typealias StringStringMap = [String: String]
13 |
14 | public final class Ros: Hashable {
| `- note: class 'Ros' does not conform to the 'Sendable' protocol
15 |
16 | public static func == (lhs: Ros, rhs: Ros) -> Bool {
:
321 | // we have to avoid calling wait inside an EventLoop
322 | DispatchQueue(label: "shutdown").async {
323 | self.requestShutdown()
| `- warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
324 | }
325 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:345:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
343 | ROS_ERROR("Caught kill, stopping...")
344 | DispatchQueue.main.async {
345 | self.requestShutdown()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
346 | }
347 | }
[633/640] Compiling RosSwift rosswift.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/inboundConnection.swift:49:44: warning: capture of 'self' with non-sendable type 'InboundConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | final class InboundConnection {
| `- note: class 'InboundConnection' does not conform to the 'Sendable' protocol
19 |
20 | var channel: Channel?
:
47 | _ = channel.pipeline.addHandlers([
48 | ByteToMessageHandler(LengthFieldBasedFrameDecoder(lengthFieldLength: .four, lengthFieldEndianness: .little)),
49 | InboundHandler(parent: self)])
| `- warning: capture of 'self' with non-sendable type 'InboundConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | return channel
51 | }.wait()
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:78:90: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
76 | let params = XmlRpcValue(anyArray: [ros.name, mappedKey])
77 | do {
78 | let payload = try ros.master.execute(method: "deleteParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
79 | return payload.valid()
80 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
7 |
8 | import Foundation
9 | import rpcobject
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
10 | import NIO
11 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:183:95: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
181 | let params = XmlRpcValue(str: ros.name)
182 | do {
183 | let parameters = try ros.master.execute(method: "getParamNames", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
184 |
185 | if !parameters.isArray {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:242:87: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
240 |
241 | do {
242 | let payload = try ros.master.execute(method: "hasParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
243 |
244 | var result = false
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:405:90: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
403 |
404 | do {
405 | let payload = try ros.master.execute(method: "searchParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
406 | result = payload.string
407 | } catch Master.ValidateError.malformed(let str) {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:436:89: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
434 | let params = XmlRpcValue(anyArray: [ros.name, mappedKey, v])
435 | do {
436 | let parameter = try ros.master.execute(method: "setParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
437 | if let res = parameter.int {
438 | if res != 0 {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:485:104: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
483 |
484 | do {
485 | let result = try ros.master.execute(method: "subscribeParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
486 | ROS_DEBUG("cached_parameters: Subscribed to parameter [\(mappedKey)]" +
487 | " with result:\n\(result)")
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:504:81: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
502 | let params = XmlRpcValue(anyArray: [ros.name, mappedKey])
503 | do {
504 | let v = try ros.master.execute(method: "getParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
505 | if v.isArray && v.size() == 1 {
506 | value = v[0]
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:533:16: warning: capture of 'self' with non-sendable type 'Param' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 |
46 | public final class Param {
| `- note: class 'Param' does not conform to the 'Sendable' protocol
47 |
48 | let parameterQueue = DispatchQueue(label: "parameterQueue")
:
531 |
532 | parameterQueue.async {
533 | if self.gSubscribedParameters.keys.contains(cleanKey) {
| `- warning: capture of 'self' with non-sendable type 'Param' in a `@Sendable` closure; this is an error in the Swift 6 language mode
534 | self.gParameters[cleanKey] = value
535 | self.gSubscribedParameters[cleanKey]?.handler?(value)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:534:46: warning: capture of 'value' with non-sendable type 'XmlRpcValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
532 | parameterQueue.async {
533 | if self.gSubscribedParameters.keys.contains(cleanKey) {
534 | self.gParameters[cleanKey] = value
| `- warning: capture of 'value' with non-sendable type 'XmlRpcValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
535 | self.gSubscribedParameters[cleanKey]?.handler?(value)
536 | }
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosconsole.swift:111:16: warning: static property 'gInitialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 |
110 | internal struct Console {
111 | static var gInitialized = false
| |- warning: static property 'gInitialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gInitialized' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'gInitialized' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 | static var gExtraFixedTokens = StringStringMap()
113 | static let gLocationsQueue = DispatchQueue(label: "location_mutex")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosconsole.swift:112:16: warning: static property 'gExtraFixedTokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
110 | internal struct Console {
111 | static var gInitialized = false
112 | static var gExtraFixedTokens = StringStringMap()
| |- warning: static property 'gExtraFixedTokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gExtraFixedTokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'gExtraFixedTokens' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | static let gLocationsQueue = DispatchQueue(label: "location_mutex")
114 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:32:28: warning: static property 'globalRos' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | fileprivate static var globalRos = Set<Ros>()
| |- warning: static property 'globalRos' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalRos' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalRos' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | fileprivate static var atexitRegistered = false
34 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:33:28: warning: static property 'atexitRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | fileprivate static var globalRos = Set<Ros>()
33 | fileprivate static var atexitRegistered = false
| |- warning: static property 'atexitRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'atexitRegistered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'atexitRegistered' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | public typealias InitOption = Set<InitOptions>
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:323:17: warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | public typealias StringStringMap = [String: String]
13 |
14 | public final class Ros: Hashable {
| `- note: class 'Ros' does not conform to the 'Sendable' protocol
15 |
16 | public static func == (lhs: Ros, rhs: Ros) -> Bool {
:
321 | // we have to avoid calling wait inside an EventLoop
322 | DispatchQueue(label: "shutdown").async {
323 | self.requestShutdown()
| `- warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
324 | }
325 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:345:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
343 | ROS_ERROR("Caught kill, stopping...")
344 | DispatchQueue.main.async {
345 | self.requestShutdown()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
346 | }
347 | }
[634/640] Compiling RosSwift thisNode.swift
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/nio/inboundConnection.swift:49:44: warning: capture of 'self' with non-sendable type 'InboundConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | final class InboundConnection {
| `- note: class 'InboundConnection' does not conform to the 'Sendable' protocol
19 |
20 | var channel: Channel?
:
47 | _ = channel.pipeline.addHandlers([
48 | ByteToMessageHandler(LengthFieldBasedFrameDecoder(lengthFieldLength: .four, lengthFieldEndianness: .little)),
49 | InboundHandler(parent: self)])
| `- warning: capture of 'self' with non-sendable type 'InboundConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | return channel
51 | }.wait()
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:78:90: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
76 | let params = XmlRpcValue(anyArray: [ros.name, mappedKey])
77 | do {
78 | let payload = try ros.master.execute(method: "deleteParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
79 | return payload.valid()
80 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
7 |
8 | import Foundation
9 | import rpcobject
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'rpcobject'
10 | import NIO
11 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:183:95: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
181 | let params = XmlRpcValue(str: ros.name)
182 | do {
183 | let parameters = try ros.master.execute(method: "getParamNames", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
184 |
185 | if !parameters.isArray {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:242:87: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
240 |
241 | do {
242 | let payload = try ros.master.execute(method: "hasParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
243 |
244 | var result = false
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:405:90: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
403 |
404 | do {
405 | let payload = try ros.master.execute(method: "searchParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
406 | result = payload.string
407 | } catch Master.ValidateError.malformed(let str) {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:436:89: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
434 | let params = XmlRpcValue(anyArray: [ros.name, mappedKey, v])
435 | do {
436 | let parameter = try ros.master.execute(method: "setParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
437 | if let res = parameter.int {
438 | if res != 0 {
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:485:104: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
483 |
484 | do {
485 | let result = try ros.master.execute(method: "subscribeParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
486 | ROS_DEBUG("cached_parameters: Subscribed to parameter [\(mappedKey)]" +
487 | " with result:\n\(result)")
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:504:81: warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
502 | let params = XmlRpcValue(anyArray: [ros.name, mappedKey])
503 | do {
504 | let v = try ros.master.execute(method: "getParam", request: params).wait()
| `- warning: type 'XmlRpcValue' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
505 | if v.isArray && v.size() == 1 {
506 | value = v[0]
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:533:16: warning: capture of 'self' with non-sendable type 'Param' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 |
46 | public final class Param {
| `- note: class 'Param' does not conform to the 'Sendable' protocol
47 |
48 | let parameterQueue = DispatchQueue(label: "parameterQueue")
:
531 |
532 | parameterQueue.async {
533 | if self.gSubscribedParameters.keys.contains(cleanKey) {
| `- warning: capture of 'self' with non-sendable type 'Param' in a `@Sendable` closure; this is an error in the Swift 6 language mode
534 | self.gParameters[cleanKey] = value
535 | self.gSubscribedParameters[cleanKey]?.handler?(value)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/param.swift:534:46: warning: capture of 'value' with non-sendable type 'XmlRpcValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
532 | parameterQueue.async {
533 | if self.gSubscribedParameters.keys.contains(cleanKey) {
534 | self.gParameters[cleanKey] = value
| `- warning: capture of 'value' with non-sendable type 'XmlRpcValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
535 | self.gSubscribedParameters[cleanKey]?.handler?(value)
536 | }
/Users/admin/builder/spi-builder-workspace/Sources/rpcobject/XmlRpcValue.swift:16:13: note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
14 | /// Remote Procedure Call (RPC) Object
15 |
16 | public enum XmlRpcValue: Equatable, ConvertableToXml {
| `- note: enum 'XmlRpcValue' does not conform to the 'Sendable' protocol
17 | case invalid
18 | case boolean(Bool)
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosconsole.swift:111:16: warning: static property 'gInitialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 |
110 | internal struct Console {
111 | static var gInitialized = false
| |- warning: static property 'gInitialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gInitialized' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'gInitialized' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 | static var gExtraFixedTokens = StringStringMap()
113 | static let gLocationsQueue = DispatchQueue(label: "location_mutex")
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosconsole.swift:112:16: warning: static property 'gExtraFixedTokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
110 | internal struct Console {
111 | static var gInitialized = false
112 | static var gExtraFixedTokens = StringStringMap()
| |- warning: static property 'gExtraFixedTokens' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gExtraFixedTokens' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'gExtraFixedTokens' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | static let gLocationsQueue = DispatchQueue(label: "location_mutex")
114 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:32:28: warning: static property 'globalRos' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | fileprivate static var globalRos = Set<Ros>()
| |- warning: static property 'globalRos' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalRos' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalRos' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | fileprivate static var atexitRegistered = false
34 |
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:33:28: warning: static property 'atexitRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | fileprivate static var globalRos = Set<Ros>()
33 | fileprivate static var atexitRegistered = false
| |- warning: static property 'atexitRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'atexitRegistered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'atexitRegistered' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | public typealias InitOption = Set<InitOptions>
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:323:17: warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | public typealias StringStringMap = [String: String]
13 |
14 | public final class Ros: Hashable {
| `- note: class 'Ros' does not conform to the 'Sendable' protocol
15 |
16 | public static func == (lhs: Ros, rhs: Ros) -> Bool {
:
321 | // we have to avoid calling wait inside an EventLoop
322 | DispatchQueue(label: "shutdown").async {
323 | self.requestShutdown()
| `- warning: capture of 'self' with non-sendable type 'Ros' in a `@Sendable` closure; this is an error in the Swift 6 language mode
324 | }
325 | }
/Users/admin/builder/spi-builder-workspace/Sources/rosswift/rosswift.swift:345:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
343 | ROS_ERROR("Caught kill, stopping...")
344 | DispatchQueue.main.async {
345 | self.requestShutdown()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
346 | }
347 | }
[635/645] Compiling listener main.swift
/Users/admin/builder/spi-builder-workspace/Sources/listener/main.swift:3:22: warning: setter for 'arguments' is deprecated: Do not modify CommandLine.arguments. It will become read-only in a future version of Swift.
1 | import RosSwift
2 |
3 | let ros = Ros(argv: &CommandLine.arguments, name: "listener", options: [.anonymousName])
| `- warning: setter for 'arguments' is deprecated: Do not modify CommandLine.arguments. It will become read-only in a future version of Swift.
4 | let n = ros.createNode()
5 |
/Users/admin/builder/spi-builder-workspace/Sources/listener/main.swift:9:9: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
7 | class Config {
8 | @RosParameter(name: "~value", ros: ros)
9 | var value: Int
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/listener/main.swift:19:32: error: main actor-isolated var 'config' can not be referenced from a nonisolated context
10 | }
11 |
12 | var config = Config()
| `- note: var declared here
13 | config.value = 12
14 |
:
16 | struct B {
17 | let value : Double
18 | func chatterCallback(msg: String) {
| `- note: add '@MainActor' to make instance method 'chatterCallback(msg:)' part of global actor 'MainActor'
19 | print("I [the struct \(config.value)] saw: [\(msg)]")
| `- error: main actor-isolated var 'config' can not be referenced from a nonisolated context
20 | }
21 | }
[636/645] Emitting module listener
/Users/admin/builder/spi-builder-workspace/Sources/listener/main.swift:3:22: warning: setter for 'arguments' is deprecated: Do not modify CommandLine.arguments. It will become read-only in a future version of Swift.
1 | import RosSwift
2 |
3 | let ros = Ros(argv: &CommandLine.arguments, name: "listener", options: [.anonymousName])
| `- warning: setter for 'arguments' is deprecated: Do not modify CommandLine.arguments. It will become read-only in a future version of Swift.
4 | let n = ros.createNode()
5 |
/Users/admin/builder/spi-builder-workspace/Sources/listener/main.swift:9:9: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
7 | class Config {
8 | @RosParameter(name: "~value", ros: ros)
9 | var value: Int
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
10 | }
11 |
BUILD FAILURE 6.0 macosSpm