The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of SwiftSMTP, reference 6.0.0 (4b7666), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 11:38:53 UTC.

Swift 6 data race errors: 1

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

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Kitura/Swift-SMTP.git
Reference: 6.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Kitura/Swift-SMTP
 * tag               6.0.0      -> FETCH_HEAD
HEAD is now at 4b7666b Misc dependency update (#125)
Cloned https://github.com/Kitura/Swift-SMTP.git
Revision (git rev-parse @):
4b7666bb8cee33f0cb367786af17b9a2ebb63047
SUCCESS checkout https://github.com/Kitura/Swift-SMTP.git at 6.0.0
Fetching https://github.com/Kitura/BlueSocket.git
Fetching https://github.com/Kitura/LoggerAPI.git
Fetching https://github.com/Kitura/BlueSSLService.git
Fetching https://github.com/Kitura/BlueCryptor.git
[8/771] Fetching loggerapi
[171/2411] Fetching loggerapi, bluecryptor
[507/5353] Fetching loggerapi, bluecryptor, bluesocket
[658/7441] Fetching loggerapi, bluecryptor, bluesocket, bluesslservice
Fetched https://github.com/Kitura/BlueSSLService.git from cache (1.00s)
Fetched https://github.com/Kitura/BlueCryptor.git from cache (1.00s)
Fetched https://github.com/Kitura/LoggerAPI.git from cache (1.00s)
[1648/2942] Fetching bluesocket
Fetched https://github.com/Kitura/BlueSocket.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.57s)
Fetching https://github.com/apple/swift-log.git
[1/3708] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.11s)
Computing version for https://github.com/Kitura/BlueCryptor.git
Computed https://github.com/Kitura/BlueCryptor.git at 2.0.2 (0.56s)
Computing version for https://github.com/Kitura/BlueSSLService.git
Computed https://github.com/Kitura/BlueSSLService.git at 2.0.2 (0.57s)
Computing version for https://github.com/Kitura/BlueSocket.git
Computed https://github.com/Kitura/BlueSocket.git at 2.0.4 (0.57s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.2 (0.45s)
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/BlueSocket.git
Working copy of https://github.com/Kitura/BlueSocket.git resolved at 2.0.4
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.2
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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "swift-smtp",
      "name": "SwiftSMTP",
      "url": "https://github.com/Kitura/Swift-SMTP.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Swift-SMTP",
      "dependencies": [
        {
          "identity": "bluesocket",
          "name": "Socket",
          "url": "https://github.com/Kitura/BlueSocket.git",
          "version": "2.0.4",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BlueSocket",
          "dependencies": [
          ]
        },
        {
          "identity": "bluesslservice",
          "name": "SSLService",
          "url": "https://github.com/Kitura/BlueSSLService.git",
          "version": "2.0.2",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BlueSSLService",
          "dependencies": [
            {
              "identity": "bluesocket",
              "name": "Socket",
              "url": "https://github.com/Kitura/BlueSocket.git",
              "version": "2.0.4",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BlueSocket",
              "dependencies": [
              ]
            }
          ]
        },
        {
          "identity": "bluecryptor",
          "name": "Cryptor",
          "url": "https://github.com/Kitura/BlueCryptor.git",
          "version": "2.0.2",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BlueCryptor",
          "dependencies": [
          ]
        },
        {
          "identity": "loggerapi",
          "name": "LoggerAPI",
          "url": "https://github.com/Kitura/LoggerAPI.git",
          "version": "1.9.200",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/LoggerAPI",
          "dependencies": [
            {
              "identity": "swift-log",
              "name": "swift-log",
              "url": "https://github.com/apple/swift-log.git",
              "version": "1.6.2",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
              "dependencies": [
              ]
            }
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/Kitura/Swift-SMTP.git
[1/2587] Fetching swift-smtp
Fetched https://github.com/Kitura/Swift-SMTP.git from cache (1.17s)
Fetching https://github.com/Kitura/BlueCryptor.git from cache
Fetching https://github.com/Kitura/BlueSSLService.git from cache
Fetching https://github.com/Kitura/LoggerAPI.git from cache
Fetching https://github.com/Kitura/BlueSocket.git from cache
Fetched https://github.com/Kitura/LoggerAPI.git from cache (0.48s)
Fetched https://github.com/Kitura/BlueCryptor.git from cache (0.48s)
Fetched https://github.com/Kitura/BlueSSLService.git from cache (0.60s)
Fetched https://github.com/Kitura/BlueSocket.git from cache (0.60s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 1.9.200 (0.03s)
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-log.git from cache (0.54s)
Computing version for https://github.com/Kitura/BlueCryptor.git
Computed https://github.com/Kitura/BlueCryptor.git at 2.0.2 (0.02s)
Computing version for https://github.com/Kitura/BlueSSLService.git
Computed https://github.com/Kitura/BlueSSLService.git at 2.0.2 (0.02s)
Computing version for https://github.com/Kitura/BlueSocket.git
Computed https://github.com/Kitura/BlueSocket.git at 2.0.4 (0.02s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.2 (0.02s)
Creating working copy for https://github.com/Kitura/Swift-SMTP.git
Working copy of https://github.com/Kitura/Swift-SMTP.git resolved at 6.0.0 (4b7666b)
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/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.2
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/BlueSSLService.git
Working copy of https://github.com/Kitura/BlueSSLService.git resolved at 2.0.2
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 1.9.200
warning: '.resolve-product-dependencies': dependency 'swift-smtp' is not used by any target
Found 4 product dependencies
  - Socket
  - SSLService
  - Cryptor
  - LoggerAPI
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Kitura/Swift-SMTP.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/7] Write sources
[6/7] Write swift-version--7754E27361AE5C74.txt
[8/29] Compiling Logging MetadataProvider.swift
[9/29] Emitting module Logging
[10/29] Compiling Logging Logging.swift
[11/29] Compiling Logging Locks.swift
[12/29] Compiling Logging LogHandler.swift
[13/31] Compiling LoggerAPI Logger.swift
[14/31] Emitting module LoggerAPI
[15/31] Compiling Cryptor Random.swift
[16/32] Compiling Cryptor StreamCryptor.swift
[17/32] Compiling Cryptor Updatable.swift
[18/32] Compiling Cryptor KeyDerivation.swift
[19/32] Compiling Socket SocketProtocols.swift
[20/32] Compiling Cryptor HMAC.swift
[21/32] Compiling Socket SocketUtils.swift
[22/32] Compiling Socket Socket+Hashable.swift
[23/32] Emitting module Socket
[24/32] Compiling Socket Socket+Equatable.swift
[25/32] Compiling Socket Socket.swift
[26/32] Compiling Cryptor Crypto.swift
[27/32] Compiling Cryptor Cryptor.swift
[28/32] Emitting module Cryptor
[29/32] Compiling Cryptor Digest.swift
[30/32] Compiling Cryptor SSLPointerTricks.swift
[31/32] Compiling Cryptor Status.swift
[32/35] Compiling Cryptor Utilities.swift
[33/35] Compiling SSLService SSLService.swift
[34/35] Emitting module SSLService
[35/35] Compiling SSLService SSLPointerTricks.swift
[36/48] Compiling SwiftSMTP Mail.swift
[37/48] 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 }
[38/48] 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 }
[39/48] 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 |     }
[40/48] Compiling SwiftSMTP SMTP.swift
[41/48] Compiling SwiftSMTP Response.swift
[42/48] Compiling SwiftSMTP Attachment.swift
[43/48] Compiling SwiftSMTP AuthEncoder.swift
[44/48] Compiling SwiftSMTP AuthMethod.swift
[45/48] Compiling SwiftSMTP Command.swift
[46/48] 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/48] Compiling SwiftSMTP SMTPError.swift
[48/48] Compiling SwiftSMTP SMTPSocket.swift
[49/49] Compiling SwiftSMTP TLSConfiguration.swift
Build complete! (29.53s)
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.