Build Information
Successful build of SwiftSMTP with Swift 6.0 for Linux.
Swift 6 data race errors: 3
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Kitura/Swift-SMTP.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/Kitura/Swift-SMTP
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 0501eae Update CI (#127)
Cloned https://github.com/Kitura/Swift-SMTP.git
Revision (git rev-parse @):
0501eae561a4331b9d4328acd52091eb9fcb989e
SUCCESS checkout https://github.com/Kitura/Swift-SMTP.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/Kitura/Swift-SMTP.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Fetching https://github.com/Kitura/LoggerAPI.git
Fetching https://github.com/Kitura/BlueCryptor.git
Fetching https://github.com/Kitura/BlueSocket.git
Fetching https://github.com/Kitura/BlueSSLService.git
[1/771] Fetching loggerapi
[179/3713] Fetching loggerapi, bluesocket
[238/5801] Fetching loggerapi, bluesocket, bluesslservice
[339/7453] Fetching loggerapi, bluesocket, bluesslservice, bluecryptor
Fetched https://github.com/Kitura/BlueSocket.git from cache (0.39s)
Fetched https://github.com/Kitura/BlueSSLService.git from cache (0.39s)
Fetched https://github.com/Kitura/BlueCryptor.git from cache (0.39s)
Fetched https://github.com/Kitura/LoggerAPI.git from cache (0.40s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 1.9.200 (0.52s)
Fetching https://github.com/apple/swift-log.git
[1/3353] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.43s)
Computing version for https://github.com/Kitura/BlueCryptor.git
Computed https://github.com/Kitura/BlueCryptor.git at 2.0.2 (0.51s)
Fetching https://github.com/Kitura/OpenSSL.git
[1/203] Fetching openssl
Fetched https://github.com/Kitura/OpenSSL.git from cache (0.23s)
Computing version for https://github.com/Kitura/BlueSSLService.git
Computed https://github.com/Kitura/BlueSSLService.git at 2.0.2 (0.52s)
Computing version for https://github.com/Kitura/OpenSSL.git
Computed https://github.com/Kitura/OpenSSL.git at 2.3.1 (1.37s)
Computing version for https://github.com/Kitura/BlueSocket.git
Computed https://github.com/Kitura/BlueSocket.git at 2.0.4 (0.51s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.5.4 (0.53s)
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 1.9.200
Creating working copy for https://github.com/Kitura/BlueSSLService.git
Working copy of https://github.com/Kitura/BlueSSLService.git resolved at 2.0.2
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.5.4
Creating working copy for https://github.com/Kitura/BlueCryptor.git
Working copy of https://github.com/Kitura/BlueCryptor.git resolved at 2.0.2
Creating working copy for https://github.com/Kitura/OpenSSL.git
Working copy of https://github.com/Kitura/OpenSSL.git resolved at 2.3.1
Creating working copy for https://github.com/Kitura/BlueSocket.git
Working copy of https://github.com/Kitura/BlueSocket.git resolved at 2.0.4
Building for debugging...
[0/7] Write sources
[6/7] Write swift-version-24593BA9C3E375BF.txt
[8/29] Emitting module Logging
[9/29] Compiling Logging Locks.swift
[10/29] Compiling Logging MetadataProvider.swift
[11/29] Compiling Logging LogHandler.swift
[12/29] Compiling Logging Logging.swift
[14/32] Emitting module Socket
[15/32] Emitting module LoggerAPI
[16/32] Compiling Cryptor Updatable.swift
[17/33] Compiling Cryptor Status.swift
[18/33] Compiling Cryptor KeyDerivation.swift
[19/33] Compiling Cryptor Random.swift
[20/33] Compiling Cryptor StreamCryptor.swift
[21/33] Compiling Cryptor SSLPointerTricks.swift
[22/33] Compiling Cryptor Crypto.swift
[23/33] Compiling Cryptor Cryptor.swift
[24/33] Emitting module Cryptor
[25/33] Compiling Cryptor Digest.swift
[26/33] Compiling Cryptor HMAC.swift
[27/33] Compiling LoggerAPI Logger.swift
[28/34] Compiling Socket Socket+Equatable.swift
[30/34] Compiling Cryptor Utilities.swift
[32/35] Compiling Socket Socket+Hashable.swift
[33/35] Compiling Socket SocketProtocols.swift
[34/35] Compiling Socket Socket.swift
[35/35] Compiling Socket SocketUtils.swift
[37/39] Compiling SSLService SSLPointerTricks.swift
[38/39] Compiling SSLService SSLService.swift
[39/39] Emitting module SSLService
[41/53] Compiling SwiftSMTP SMTPError.swift
[42/53] Compiling SwiftSMTP Response.swift
[43/53] Compiling SwiftSMTP SMTP.swift
[44/53] Compiling SwiftSMTP SMTPSocket.swift
[45/54] Compiling SwiftSMTP TLSConfiguration.swift
[46/54] Compiling SwiftSMTP Common.swift
/host/spi-builder-workspace/Sources/SwiftSMTP/Common.swift:24:5: warning: let 'cache' is not concurrency-safe because non-'Sendable' type 'NSCache<AnyObject, AnyObject>' may have shared mutable state; this is an error in the Swift 6 language mode
22 | }
23 |
24 | let cache = NSCache<AnyObject, AnyObject>()
| `- warning: let 'cache' is not concurrency-safe because non-'Sendable' type 'NSCache<AnyObject, AnyObject>' may have shared mutable state; this is an error in the Swift 6 language mode
25 | let CRLF = "\r\n"
26 |
Foundation.NSCache:1:12: note: generic class 'NSCache' does not conform to the 'Sendable' protocol
1 | open class NSCache<KeyType, ObjectType> : NSObject where KeyType : AnyObject, ObjectType : AnyObject {
| `- note: generic class 'NSCache' does not conform to the 'Sendable' protocol
2 | open var name: String
3 | open var totalCostLimit: Int
/host/spi-builder-workspace/Sources/SwiftSMTP/Common.swift:17:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
15 | **/
16 |
17 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
18 |
19 | enum Result<T, Error> {
:
22 | }
23 |
24 | let cache = NSCache<AnyObject, AnyObject>()
| |- note: annotate 'cache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | let CRLF = "\r\n"
26 |
[47/54] Compiling SwiftSMTP DataSender.swift
/host/spi-builder-workspace/Sources/SwiftSMTP/Common.swift:24:5: warning: let 'cache' is not concurrency-safe because non-'Sendable' type 'NSCache<AnyObject, AnyObject>' may have shared mutable state; this is an error in the Swift 6 language mode
22 | }
23 |
24 | let cache = NSCache<AnyObject, AnyObject>()
| `- warning: let 'cache' is not concurrency-safe because non-'Sendable' type 'NSCache<AnyObject, AnyObject>' may have shared mutable state; this is an error in the Swift 6 language mode
25 | let CRLF = "\r\n"
26 |
Foundation.NSCache:1:12: note: generic class 'NSCache' does not conform to the 'Sendable' protocol
1 | open class NSCache<KeyType, ObjectType> : NSObject where KeyType : AnyObject, ObjectType : AnyObject {
| `- note: generic class 'NSCache' does not conform to the 'Sendable' protocol
2 | open var name: String
3 | open var totalCostLimit: Int
/host/spi-builder-workspace/Sources/SwiftSMTP/Common.swift:17:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
15 | **/
16 |
17 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
18 |
19 | enum Result<T, Error> {
:
22 | }
23 |
24 | let cache = NSCache<AnyObject, AnyObject>()
| |- note: annotate 'cache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | let CRLF = "\r\n"
26 |
[48/54] Compiling SwiftSMTP AuthMethod.swift
[49/54] Compiling SwiftSMTP Command.swift
[50/54] Emitting module SwiftSMTP
/host/spi-builder-workspace/Sources/SwiftSMTP/Common.swift:24:5: warning: let 'cache' is not concurrency-safe because non-'Sendable' type 'NSCache<AnyObject, AnyObject>' may have shared mutable state; this is an error in the Swift 6 language mode
22 | }
23 |
24 | let cache = NSCache<AnyObject, AnyObject>()
| `- warning: let 'cache' is not concurrency-safe because non-'Sendable' type 'NSCache<AnyObject, AnyObject>' may have shared mutable state; this is an error in the Swift 6 language mode
25 | let CRLF = "\r\n"
26 |
Foundation.NSCache:1:12: note: generic class 'NSCache' does not conform to the 'Sendable' protocol
1 | open class NSCache<KeyType, ObjectType> : NSObject where KeyType : AnyObject, ObjectType : AnyObject {
| `- note: generic class 'NSCache' does not conform to the 'Sendable' protocol
2 | open var name: String
3 | open var totalCostLimit: Int
/host/spi-builder-workspace/Sources/SwiftSMTP/Common.swift:17:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
15 | **/
16 |
17 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
18 |
19 | enum Result<T, Error> {
:
22 | }
23 |
24 | let cache = NSCache<AnyObject, AnyObject>()
| |- note: annotate 'cache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | let CRLF = "\r\n"
26 |
/host/spi-builder-workspace/Sources/SwiftSMTP/Mail.swift:187:16: warning: static property 'smtpDateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
185 |
186 | extension DateFormatter {
187 | static let smtpDateFormatter: DateFormatter = {
| `- warning: static property 'smtpDateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
188 | let formatter = DateFormatter()
189 | formatter.dateFormat = "EEE, d MMM yyyy HH:mm:ss ZZZ"
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/SwiftSMTP/Mail.swift:17:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
15 | **/
16 |
17 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
18 |
19 | /// Represents an email that can be sent through an `SMTP` instance.
:
185 |
186 | extension DateFormatter {
187 | static let smtpDateFormatter: DateFormatter = {
| |- note: annotate 'smtpDateFormatter' 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
188 | let formatter = DateFormatter()
189 | formatter.dateFormat = "EEE, d MMM yyyy HH:mm:ss ZZZ"
/host/spi-builder-workspace/Sources/SwiftSMTP/MailSender.swift:137:16: warning: static property 'emailRegex' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression?' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | private extension NSRegularExpression {
137 | static let emailRegex = try? NSRegularExpression(pattern: "^[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,64}")
| `- warning: static property 'emailRegex' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression?' may have shared mutable state; this is an error in the Swift 6 language mode
138 | }
139 |
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
1 | open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
| `- note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
2 | override open func copy() -> Any
3 | open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/SwiftSMTP/MailSender.swift:17:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
15 | **/
16 |
17 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
18 |
19 | #if os(Linux)
:
135 |
136 | private extension NSRegularExpression {
137 | static let emailRegex = try? NSRegularExpression(pattern: "^[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,64}")
| |- note: annotate 'emailRegex' 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
138 | }
139 |
[51/54] Compiling SwiftSMTP Mail.swift
/host/spi-builder-workspace/Sources/SwiftSMTP/Mail.swift:187:16: warning: static property 'smtpDateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
185 |
186 | extension DateFormatter {
187 | static let smtpDateFormatter: DateFormatter = {
| `- warning: static property 'smtpDateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
188 | let formatter = DateFormatter()
189 | formatter.dateFormat = "EEE, d MMM yyyy HH:mm:ss ZZZ"
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/SwiftSMTP/Mail.swift:17:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
15 | **/
16 |
17 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
18 |
19 | /// Represents an email that can be sent through an `SMTP` instance.
:
185 |
186 | extension DateFormatter {
187 | static let smtpDateFormatter: DateFormatter = {
| |- note: annotate 'smtpDateFormatter' 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
188 | let formatter = DateFormatter()
189 | formatter.dateFormat = "EEE, d MMM yyyy HH:mm:ss ZZZ"
/host/spi-builder-workspace/Sources/SwiftSMTP/MailSender.swift:137:16: warning: static property 'emailRegex' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression?' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | private extension NSRegularExpression {
137 | static let emailRegex = try? NSRegularExpression(pattern: "^[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,64}")
| `- warning: static property 'emailRegex' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression?' may have shared mutable state; this is an error in the Swift 6 language mode
138 | }
139 |
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
1 | open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
| `- note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
2 | override open func copy() -> Any
3 | open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/SwiftSMTP/MailSender.swift:17:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
15 | **/
16 |
17 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
18 |
19 | #if os(Linux)
:
135 |
136 | private extension NSRegularExpression {
137 | static let emailRegex = try? NSRegularExpression(pattern: "^[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,64}")
| |- note: annotate 'emailRegex' 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
138 | }
139 |
/host/spi-builder-workspace/Sources/SwiftSMTP/MailSender.swift:52:13: warning: capture of 'self' with non-sendable type 'MailSender' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | public typealias Completion = (([Mail], [(Mail, Error)]) -> Void)?
29 |
30 | class MailSender {
| `- note: class 'MailSender' does not conform to the 'Sendable' protocol
31 | private var socket: SMTPSocket
32 | private var mailsToSend: [Mail]
:
50 | func send() {
51 | DispatchQueue.global().async {
52 | self.sendNext()
| `- warning: capture of 'self' with non-sendable type 'MailSender' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | }
54 | }
/host/spi-builder-workspace/Sources/SwiftSMTP/MailSender.swift:80:13: warning: capture of 'self' with non-sendable type 'MailSender' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | public typealias Completion = (([Mail], [(Mail, Error)]) -> Void)?
29 |
30 | class MailSender {
| `- note: class 'MailSender' does not conform to the 'Sendable' protocol
31 | private var socket: SMTPSocket
32 | private var mailsToSend: [Mail]
:
78 | }
79 | DispatchQueue.global().async {
80 | self.sendNext()
| `- warning: capture of 'self' with non-sendable type 'MailSender' in a `@Sendable` closure; this is an error in the Swift 6 language mode
81 | }
82 | }
[52/54] Compiling SwiftSMTP MailSender.swift
/host/spi-builder-workspace/Sources/SwiftSMTP/Mail.swift:187:16: warning: static property 'smtpDateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
185 |
186 | extension DateFormatter {
187 | static let smtpDateFormatter: DateFormatter = {
| `- warning: static property 'smtpDateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
188 | let formatter = DateFormatter()
189 | formatter.dateFormat = "EEE, d MMM yyyy HH:mm:ss ZZZ"
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/SwiftSMTP/Mail.swift:17:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
15 | **/
16 |
17 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
18 |
19 | /// Represents an email that can be sent through an `SMTP` instance.
:
185 |
186 | extension DateFormatter {
187 | static let smtpDateFormatter: DateFormatter = {
| |- note: annotate 'smtpDateFormatter' 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
188 | let formatter = DateFormatter()
189 | formatter.dateFormat = "EEE, d MMM yyyy HH:mm:ss ZZZ"
/host/spi-builder-workspace/Sources/SwiftSMTP/MailSender.swift:137:16: warning: static property 'emailRegex' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression?' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | private extension NSRegularExpression {
137 | static let emailRegex = try? NSRegularExpression(pattern: "^[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,64}")
| `- warning: static property 'emailRegex' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression?' may have shared mutable state; this is an error in the Swift 6 language mode
138 | }
139 |
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
1 | open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
| `- note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
2 | override open func copy() -> Any
3 | open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/SwiftSMTP/MailSender.swift:17:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
15 | **/
16 |
17 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
18 |
19 | #if os(Linux)
:
135 |
136 | private extension NSRegularExpression {
137 | static let emailRegex = try? NSRegularExpression(pattern: "^[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,64}")
| |- note: annotate 'emailRegex' 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
138 | }
139 |
/host/spi-builder-workspace/Sources/SwiftSMTP/MailSender.swift:52:13: warning: capture of 'self' with non-sendable type 'MailSender' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | public typealias Completion = (([Mail], [(Mail, Error)]) -> Void)?
29 |
30 | class MailSender {
| `- note: class 'MailSender' does not conform to the 'Sendable' protocol
31 | private var socket: SMTPSocket
32 | private var mailsToSend: [Mail]
:
50 | func send() {
51 | DispatchQueue.global().async {
52 | self.sendNext()
| `- warning: capture of 'self' with non-sendable type 'MailSender' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | }
54 | }
/host/spi-builder-workspace/Sources/SwiftSMTP/MailSender.swift:80:13: warning: capture of 'self' with non-sendable type 'MailSender' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | public typealias Completion = (([Mail], [(Mail, Error)]) -> Void)?
29 |
30 | class MailSender {
| `- note: class 'MailSender' does not conform to the 'Sendable' protocol
31 | private var socket: SMTPSocket
32 | private var mailsToSend: [Mail]
:
78 | }
79 | DispatchQueue.global().async {
80 | self.sendNext()
| `- warning: capture of 'self' with non-sendable type 'MailSender' in a `@Sendable` closure; this is an error in the Swift 6 language mode
81 | }
82 | }
[53/54] Compiling SwiftSMTP Attachment.swift
[54/54] Compiling SwiftSMTP AuthEncoder.swift
Build complete! (37.26s)
Build complete.
{
"dependencies" : [
{
"identity" : "bluesocket",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.2",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Kitura/BlueSocket.git"
},
{
"identity" : "bluesslservice",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.1",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Kitura/BlueSSLService.git"
},
{
"identity" : "bluecryptor",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.1",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Kitura/BlueCryptor.git"
},
{
"identity" : "loggerapi",
"requirement" : {
"range" : [
{
"lower_bound" : "1.9.200",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Kitura/LoggerAPI.git"
}
],
"manifest_display_name" : "SwiftSMTP",
"name" : "SwiftSMTP",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftSMTP",
"targets" : [
"SwiftSMTP"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftSMTPTests",
"module_type" : "SwiftTarget",
"name" : "SwiftSMTPTests",
"path" : "Tests/SwiftSMTPTests",
"sources" : [
"Constant.swift",
"TestAttachment.swift",
"TestAuthEncoder.swift",
"TestDataSender.swift",
"TestMailSender.swift",
"TestMiscellaneous.swift",
"TestSMTPSocket.swift",
"TestTLSMode.swift"
],
"target_dependencies" : [
"SwiftSMTP"
],
"type" : "test"
},
{
"c99name" : "SwiftSMTP",
"module_type" : "SwiftTarget",
"name" : "SwiftSMTP",
"path" : "Sources/SwiftSMTP",
"product_dependencies" : [
"Socket",
"SSLService",
"Cryptor",
"LoggerAPI"
],
"product_memberships" : [
"SwiftSMTP"
],
"sources" : [
"Attachment.swift",
"AuthEncoder.swift",
"AuthMethod.swift",
"Command.swift",
"Common.swift",
"DataSender.swift",
"Mail.swift",
"MailSender.swift",
"Response.swift",
"SMTP.swift",
"SMTPError.swift",
"SMTPSocket.swift",
"TLSConfiguration.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.