Build Information
Successful build of SwiftSMTP with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
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 /Users/admin/builder/spi-builder-workspace/.git/
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: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/Kitura/Swift-SMTP.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/7] Write sources
[6/7] Write swift-version-6F35C1178C84523A.txt
[8/29] Compiling Logging MetadataProvider.swift
[9/29] Compiling Logging LogHandler.swift
[10/29] Emitting module Logging
[11/29] Compiling Logging Locks.swift
[12/29] Compiling Logging Logging.swift
[13/31] Compiling Cryptor KeyDerivation.swift
[14/32] Compiling Cryptor Updatable.swift
[15/32] Emitting module LoggerAPI
[16/32] Compiling LoggerAPI Logger.swift
[17/32] Compiling Socket SocketUtils.swift
[18/32] Compiling Socket SocketProtocols.swift
[19/32] Compiling Cryptor Crypto.swift
[20/32] Compiling Cryptor Cryptor.swift
[21/32] Compiling Cryptor HMAC.swift
[22/32] Emitting module Cryptor
[23/32] Compiling Cryptor Digest.swift
[24/32] Compiling Cryptor StreamCryptor.swift
[25/32] Compiling Cryptor Status.swift
[26/32] Compiling Cryptor Random.swift
[27/32] Compiling Cryptor SSLPointerTricks.swift
[28/32] Compiling Socket Socket+Hashable.swift
[29/32] Compiling Socket Socket+Equatable.swift
[30/32] Emitting module Socket
[31/32] Compiling Socket Socket.swift
[32/35] Compiling Cryptor Utilities.swift
[33/35] Emitting module SSLService
[34/35] Compiling SSLService SSLPointerTricks.swift
[35/35] Compiling SSLService SSLService.swift
[36/48] Compiling SwiftSMTP SMTPError.swift
[37/48] Compiling SwiftSMTP Response.swift
[38/48] Compiling SwiftSMTP SMTP.swift
[39/49] Compiling SwiftSMTP Common.swift
/Users/admin/builder/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
| |- 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 |
Foundation.NSCache:2:12: note: generic class 'NSCache' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.6, *)
2 | open class NSCache<KeyType, ObjectType> : NSObject where KeyType : AnyObject, ObjectType : AnyObject {
| `- note: generic class 'NSCache' does not conform to the 'Sendable' protocol
3 | open var name: String { get set }
4 | unowned(unsafe) open var delegate: (any NSCacheDelegate)? { get set }
[40/49] Compiling SwiftSMTP DataSender.swift
/Users/admin/builder/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
| |- 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 |
Foundation.NSCache:2:12: note: generic class 'NSCache' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.6, *)
2 | open class NSCache<KeyType, ObjectType> : NSObject where KeyType : AnyObject, ObjectType : AnyObject {
| `- note: generic class 'NSCache' does not conform to the 'Sendable' protocol
3 | open var name: String { get set }
4 | unowned(unsafe) open var delegate: (any NSCacheDelegate)? { get set }
[41/49] Compiling SwiftSMTP Mail.swift
[42/49] Compiling SwiftSMTP MailSender.swift
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
[43/49] Compiling SwiftSMTP AuthMethod.swift
[44/49] Compiling SwiftSMTP Command.swift
[45/49] Compiling SwiftSMTP SMTPSocket.swift
[46/49] Emitting module SwiftSMTP
/Users/admin/builder/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
| |- 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 |
Foundation.NSCache:2:12: note: generic class 'NSCache' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.6, *)
2 | open class NSCache<KeyType, ObjectType> : NSObject where KeyType : AnyObject, ObjectType : AnyObject {
| `- note: generic class 'NSCache' does not conform to the 'Sendable' protocol
3 | open var name: String { get set }
4 | unowned(unsafe) open var delegate: (any NSCacheDelegate)? { get set }
[47/49] Compiling SwiftSMTP Attachment.swift
[48/49] Compiling SwiftSMTP AuthEncoder.swift
[49/49] Compiling SwiftSMTP TLSConfiguration.swift
Build complete! (31.49s)
Fetching https://github.com/Kitura/BlueCryptor.git
Fetching https://github.com/Kitura/BlueSocket.git
Fetching https://github.com/Kitura/LoggerAPI.git
Fetching https://github.com/Kitura/BlueSSLService.git
[1/771] Fetching loggerapi
[171/2423] Fetching loggerapi, bluecryptor
[419/4511] Fetching loggerapi, bluecryptor, bluesslservice
[440/7453] Fetching loggerapi, bluecryptor, bluesslservice, bluesocket
Fetched https://github.com/Kitura/LoggerAPI.git from cache (1.18s)
Fetched https://github.com/Kitura/BlueSocket.git from cache (1.18s)
Fetched https://github.com/Kitura/BlueSSLService.git from cache (1.18s)
Fetched https://github.com/Kitura/BlueCryptor.git from cache (1.18s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 1.9.200 (0.66s)
Fetching https://github.com/apple/swift-log.git
[1/3361] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.18s)
Computing version for https://github.com/Kitura/BlueCryptor.git
Computed https://github.com/Kitura/BlueCryptor.git at 2.0.2 (0.64s)
Computing version for https://github.com/Kitura/BlueSSLService.git
Computed https://github.com/Kitura/BlueSSLService.git at 2.0.2 (0.64s)
Computing version for https://github.com/Kitura/BlueSocket.git
Computed https://github.com/Kitura/BlueSocket.git at 2.0.4 (0.65s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.5.4 (0.64s)
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/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/BlueSSLService.git
Working copy of https://github.com/Kitura/BlueSSLService.git resolved at 2.0.2
Creating working copy for https://github.com/Kitura/BlueSocket.git
Working copy of https://github.com/Kitura/BlueSocket.git resolved at 2.0.4
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 1.9.200
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" : "/Users/admin/builder/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.