The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of BMLTiOSLib, reference master (c8bcfa), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 00:32:23 UTC.

Swift 6 data race errors: 4

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/bmlt-enabled/BMLTiOSLib.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/bmlt-enabled/BMLTiOSLib
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at c8bcfad Updated to latest tools. No API changes.
Cloned https://github.com/bmlt-enabled/BMLTiOSLib.git
Revision (git rev-parse @):
c8bcfad4503da6e9d075c0ccb30dbbf110ec641b
SUCCESS checkout https://github.com/bmlt-enabled/BMLTiOSLib.git at master
========================================
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": "bmltioslib",
      "name": "BMLTiOSLib",
      "url": "https://github.com/bmlt-enabled/BMLTiOSLib.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BMLTiOSLib",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/bmlt-enabled/BMLTiOSLib.git
[1/1752] Fetching bmltioslib
Fetched https://github.com/bmlt-enabled/BMLTiOSLib.git from cache (1.71s)
Creating working copy for https://github.com/bmlt-enabled/BMLTiOSLib.git
Working copy of https://github.com/bmlt-enabled/BMLTiOSLib.git resolved at master (c8bcfad)
warning: '.resolve-product-dependencies': dependency 'bmltioslib' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/bmlt-enabled/BMLTiOSLib.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/17] Compiling BMLTiOSLib BMLTiOSLibServerInfo.swift
[4/18] Compiling BMLTiOSLib BMLTiOSLibServerLang.swift
[5/18] Compiling BMLTiOSLib BMLTiOSLibSearchCriteria.swift
[6/18] Compiling BMLTiOSLib BMLTiOSLibHierarchicalServiceBodyNode.swift
[7/18] Compiling BMLTiOSLib BMLTiOSLibMeetingNode.swift
[8/18] Compiling BMLTiOSLib BMLTiOSLibMeetingNodeSimpleDictionaryElement.swift
[9/18] Compiling BMLTiOSLib BMLTiOSLibFormatContainer.swift
[10/18] Compiling BMLTiOSLib BMLTiOSLibFormatNode.swift
[11/18] Compiling BMLTiOSLib BMLTiOSLibChangeNode.swift
[12/18] Compiling BMLTiOSLib BMLTiOSLibChangedMeeting.swift
[13/18] Compiling BMLTiOSLib BMLTCommunicator.swift
/Users/admin/builder/spi-builder-workspace/Sources/BMLTiOSLib/BMLTCommunicator.swift:222:7: warning: non-final class 'BMLTSession' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
220 |  instance to the completion block.
221 |  */
222 | class BMLTSession: NSObject, URLSessionDataDelegate, BMLTCommunicatorDataSourceProtocol {
    |       `- warning: non-final class 'BMLTSession' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
223 |
224 |     /* ################################################################## */
/Users/admin/builder/spi-builder-workspace/Sources/BMLTiOSLib/BMLTCommunicator.swift:253:9: warning: stored property 'mySession' of 'Sendable'-conforming class 'BMLTSession' is mutable; this is an error in the Swift 6 language mode
251 |
252 |    /** This is our session. */
253 |     var mySession: Foundation.URLSession!   = nil
    |         `- warning: stored property 'mySession' of 'Sendable'-conforming class 'BMLTSession' is mutable; this is an error in the Swift 6 language mode
254 |
255 |     /* ################################################################## */
[14/18] Compiling BMLTiOSLib BMLTiOSLib.swift
/Users/admin/builder/spi-builder-workspace/Sources/BMLTiOSLib/BMLTCommunicator.swift:222:7: warning: non-final class 'BMLTSession' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
220 |  instance to the completion block.
221 |  */
222 | class BMLTSession: NSObject, URLSessionDataDelegate, BMLTCommunicatorDataSourceProtocol {
    |       `- warning: non-final class 'BMLTSession' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
223 |
224 |     /* ################################################################## */
/Users/admin/builder/spi-builder-workspace/Sources/BMLTiOSLib/BMLTCommunicator.swift:253:9: warning: stored property 'mySession' of 'Sendable'-conforming class 'BMLTSession' is mutable; this is an error in the Swift 6 language mode
251 |
252 |    /** This is our session. */
253 |     var mySession: Foundation.URLSession!   = nil
    |         `- warning: stored property 'mySession' of 'Sendable'-conforming class 'BMLTSession' is mutable; this is an error in the Swift 6 language mode
254 |
255 |     /* ################################################################## */
[15/18] Emitting module BMLTiOSLib
/Users/admin/builder/spi-builder-workspace/Sources/BMLTiOSLib/BMLTCommunicator.swift:222:7: warning: non-final class 'BMLTSession' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
220 |  instance to the completion block.
221 |  */
222 | class BMLTSession: NSObject, URLSessionDataDelegate, BMLTCommunicatorDataSourceProtocol {
    |       `- warning: non-final class 'BMLTSession' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
223 |
224 |     /* ################################################################## */
/Users/admin/builder/spi-builder-workspace/Sources/BMLTiOSLib/BMLTCommunicator.swift:253:9: warning: stored property 'mySession' of 'Sendable'-conforming class 'BMLTSession' is mutable; this is an error in the Swift 6 language mode
251 |
252 |    /** This is our session. */
253 |     var mySession: Foundation.URLSession!   = nil
    |         `- warning: stored property 'mySession' of 'Sendable'-conforming class 'BMLTSession' is mutable; this is an error in the Swift 6 language mode
254 |
255 |     /* ################################################################## */
/Users/admin/builder/spi-builder-workspace/Sources/BMLTiOSLib/BMLTiOSLibCommunicationHandler.swift:41:7: warning: non-final class 'BMLTiOSLibCommunicationHandler' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  39 |  It is instantiated by the BMLTiOSLib class, and handles the actual communications with the Root Server.
  40 |  */
  41 | class BMLTiOSLibCommunicationHandler: BMLTSession, BMLTCommunicatorDataSinkProtocol {
     |       `- warning: non-final class 'BMLTiOSLibCommunicationHandler' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  42 |     /** This is a special typeAlias for when we save a meeting as a new meeting. Making the meeting object editable adds a another modicum of security. */
  43 |     typealias NewMeetingRefCon = (meetingObject: BMLTiOSLibEditableMeetingNode, refCon: AnyObject?)
/Users/admin/builder/spi-builder-workspace/Sources/BMLTiOSLib/BMLTiOSLibCommunicationHandler.swift:93:9: warning: stored property '_newMeetingCall' of 'Sendable'-conforming class 'BMLTiOSLibCommunicationHandler' is mutable; this is an error in the Swift 6 language mode
  91 |     /* ######################################################## */
  92 |     /** This is a semaphore that is set to let the class know that it needs to call a different callback for new and restored meetings. */
  93 |     var _newMeetingCall: Bool = false
     |         `- warning: stored property '_newMeetingCall' of 'Sendable'-conforming class 'BMLTiOSLibCommunicationHandler' is mutable; this is an error in the Swift 6 language mode
  94 |     /** This contains all the permissions in a simple string Dictionary. */
  95 |     var _permissions: [PermissionsTuple]             =   []
[16/18] Compiling BMLTiOSLib BMLTiOSLibCommunicationHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/BMLTiOSLib/BMLTiOSLibCommunicationHandler.swift:41:7: warning: non-final class 'BMLTiOSLibCommunicationHandler' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  39 |  It is instantiated by the BMLTiOSLib class, and handles the actual communications with the Root Server.
  40 |  */
  41 | class BMLTiOSLibCommunicationHandler: BMLTSession, BMLTCommunicatorDataSinkProtocol {
     |       `- warning: non-final class 'BMLTiOSLibCommunicationHandler' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  42 |     /** This is a special typeAlias for when we save a meeting as a new meeting. Making the meeting object editable adds a another modicum of security. */
  43 |     typealias NewMeetingRefCon = (meetingObject: BMLTiOSLibEditableMeetingNode, refCon: AnyObject?)
/Users/admin/builder/spi-builder-workspace/Sources/BMLTiOSLib/BMLTiOSLibCommunicationHandler.swift:93:9: warning: stored property '_newMeetingCall' of 'Sendable'-conforming class 'BMLTiOSLibCommunicationHandler' is mutable; this is an error in the Swift 6 language mode
  91 |     /* ######################################################## */
  92 |     /** This is a semaphore that is set to let the class know that it needs to call a different callback for new and restored meetings. */
  93 |     var _newMeetingCall: Bool = false
     |         `- warning: stored property '_newMeetingCall' of 'Sendable'-conforming class 'BMLTiOSLibCommunicationHandler' is mutable; this is an error in the Swift 6 language mode
  94 |     /** This contains all the permissions in a simple string Dictionary. */
  95 |     var _permissions: [PermissionsTuple]             =   []
/Users/admin/builder/spi-builder-workspace/Sources/BMLTiOSLib/BMLTiOSLibCommunicationHandler.swift:1646:54: warning: sending 'inHandler' risks causing data races; this is an error in the Swift 6 language mode
1644 |         DispatchQueue.main.async {
1645 |             #if DEBUG
1646 |                 print("Handler: \(String(describing: inHandler)).")
     |                                                      |- warning: sending 'inHandler' risks causing data races; this is an error in the Swift 6 language mode
     |                                                      `- note: task-isolated 'inHandler' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1647 |                 print("ResponseData: \(inResponseData).")
1648 |                 print("Error: \(String(describing: inError)).")
/Users/admin/builder/spi-builder-workspace/Sources/BMLTiOSLib/BMLTiOSLibCommunicationHandler.swift:1647:40: warning: sending 'inResponseData' risks causing data races; this is an error in the Swift 6 language mode
1645 |             #if DEBUG
1646 |                 print("Handler: \(String(describing: inHandler)).")
1647 |                 print("ResponseData: \(inResponseData).")
     |                                        |- warning: sending 'inResponseData' risks causing data races; this is an error in the Swift 6 language mode
     |                                        `- note: task-isolated 'inResponseData' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1648 |                 print("Error: \(String(describing: inError)).")
1649 |                 print("RefCon: \(String(describing: inRefCon)).")
/Users/admin/builder/spi-builder-workspace/Sources/BMLTiOSLib/BMLTiOSLibCommunicationHandler.swift:1649:53: warning: sending 'inRefCon' risks causing data races; this is an error in the Swift 6 language mode
1647 |                 print("ResponseData: \(inResponseData).")
1648 |                 print("Error: \(String(describing: inError)).")
1649 |                 print("RefCon: \(String(describing: inRefCon)).")
     |                                                     |- warning: sending 'inRefCon' risks causing data races; this is an error in the Swift 6 language mode
     |                                                     `- note: task-isolated 'inRefCon' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1650 |             #endif
1651 |             if (nil != inError) || ("ERROR" == (inResponseData as? String)) {
[17/18] Compiling BMLTiOSLib BMLTiOSLibEditableMeetingNode.swift
/Users/admin/builder/spi-builder-workspace/Sources/BMLTiOSLib/BMLTiOSLibCommunicationHandler.swift:41:7: warning: non-final class 'BMLTiOSLibCommunicationHandler' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  39 |  It is instantiated by the BMLTiOSLib class, and handles the actual communications with the Root Server.
  40 |  */
  41 | class BMLTiOSLibCommunicationHandler: BMLTSession, BMLTCommunicatorDataSinkProtocol {
     |       `- warning: non-final class 'BMLTiOSLibCommunicationHandler' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  42 |     /** This is a special typeAlias for when we save a meeting as a new meeting. Making the meeting object editable adds a another modicum of security. */
  43 |     typealias NewMeetingRefCon = (meetingObject: BMLTiOSLibEditableMeetingNode, refCon: AnyObject?)
/Users/admin/builder/spi-builder-workspace/Sources/BMLTiOSLib/BMLTiOSLibCommunicationHandler.swift:93:9: warning: stored property '_newMeetingCall' of 'Sendable'-conforming class 'BMLTiOSLibCommunicationHandler' is mutable; this is an error in the Swift 6 language mode
  91 |     /* ######################################################## */
  92 |     /** This is a semaphore that is set to let the class know that it needs to call a different callback for new and restored meetings. */
  93 |     var _newMeetingCall: Bool = false
     |         `- warning: stored property '_newMeetingCall' of 'Sendable'-conforming class 'BMLTiOSLibCommunicationHandler' is mutable; this is an error in the Swift 6 language mode
  94 |     /** This contains all the permissions in a simple string Dictionary. */
  95 |     var _permissions: [PermissionsTuple]             =   []
/Users/admin/builder/spi-builder-workspace/Sources/BMLTiOSLib/BMLTiOSLibCommunicationHandler.swift:1646:54: warning: sending 'inHandler' risks causing data races; this is an error in the Swift 6 language mode
1644 |         DispatchQueue.main.async {
1645 |             #if DEBUG
1646 |                 print("Handler: \(String(describing: inHandler)).")
     |                                                      |- warning: sending 'inHandler' risks causing data races; this is an error in the Swift 6 language mode
     |                                                      `- note: task-isolated 'inHandler' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1647 |                 print("ResponseData: \(inResponseData).")
1648 |                 print("Error: \(String(describing: inError)).")
/Users/admin/builder/spi-builder-workspace/Sources/BMLTiOSLib/BMLTiOSLibCommunicationHandler.swift:1647:40: warning: sending 'inResponseData' risks causing data races; this is an error in the Swift 6 language mode
1645 |             #if DEBUG
1646 |                 print("Handler: \(String(describing: inHandler)).")
1647 |                 print("ResponseData: \(inResponseData).")
     |                                        |- warning: sending 'inResponseData' risks causing data races; this is an error in the Swift 6 language mode
     |                                        `- note: task-isolated 'inResponseData' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1648 |                 print("Error: \(String(describing: inError)).")
1649 |                 print("RefCon: \(String(describing: inRefCon)).")
/Users/admin/builder/spi-builder-workspace/Sources/BMLTiOSLib/BMLTiOSLibCommunicationHandler.swift:1649:53: warning: sending 'inRefCon' risks causing data races; this is an error in the Swift 6 language mode
1647 |                 print("ResponseData: \(inResponseData).")
1648 |                 print("Error: \(String(describing: inError)).")
1649 |                 print("RefCon: \(String(describing: inRefCon)).")
     |                                                     |- warning: sending 'inRefCon' risks causing data races; this is an error in the Swift 6 language mode
     |                                                     `- note: task-isolated 'inRefCon' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1650 |             #endif
1651 |             if (nil != inError) || ("ERROR" == (inResponseData as? String)) {
[18/18] Compiling BMLTiOSLib BMLTiOSLibServiceBodyContainer.swift
Build complete! (13.65s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "BMLTiOSLib",
  "name" : "BMLTiOSLib",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "BMLTiOSLib",
      "targets" : [
        "BMLTiOSLib"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "BMLTiOSLib",
      "module_type" : "SwiftTarget",
      "name" : "BMLTiOSLib",
      "path" : "Sources/BMLTiOSLib",
      "product_memberships" : [
        "BMLTiOSLib"
      ],
      "sources" : [
        "BMLTCommunicator.swift",
        "BMLTiOSLib.swift",
        "BMLTiOSLibChangeNode.swift",
        "BMLTiOSLibChangedMeeting.swift",
        "BMLTiOSLibCommunicationHandler.swift",
        "BMLTiOSLibEditableMeetingNode.swift",
        "BMLTiOSLibFormatContainer.swift",
        "BMLTiOSLibFormatNode.swift",
        "BMLTiOSLibHierarchicalServiceBodyNode.swift",
        "BMLTiOSLibMeetingNode.swift",
        "BMLTiOSLibMeetingNodeSimpleDictionaryElement.swift",
        "BMLTiOSLibSearchCriteria.swift",
        "BMLTiOSLibServerInfo.swift",
        "BMLTiOSLibServerLang.swift",
        "BMLTiOSLibServiceBodyContainer.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.