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 DeviceAuthority, reference v0.2.0 (44a5e0), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 08:34:51 UTC.

Swift 6 data race errors: 0

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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/getsidetrack/swift-device-authority.git
Reference: v0.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/getsidetrack/swift-device-authority
 * tag               v0.2.0     -> FETCH_HEAD
HEAD is now at 44a5e06 Move `numbits` parameters to end of command call
Cloned https://github.com/getsidetrack/swift-device-authority.git
Revision (git rev-parse @):
44a5e06e570bf6c987aa54289948208f12e4a5a0
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/getsidetrack/swift-device-authority.git at v0.2.0
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/vapor/console-kit.git
Fetching https://github.com/JohnSundell/ShellOut
[1/5470] Fetching console-kit
[56/6430] Fetching console-kit, shellout
[412/10139] Fetching console-kit, shellout, swift-log
Fetched https://github.com/vapor/console-kit.git from cache (1.14s)
Fetched https://github.com/apple/swift-log.git from cache (1.14s)
Fetched https://github.com/JohnSundell/ShellOut from cache (1.14s)
Computing version for https://github.com/JohnSundell/ShellOut.git
Computed https://github.com/JohnSundell/ShellOut.git at 2.3.0 (2.41s)
Computing version for https://github.com/vapor/console-kit.git
Computed https://github.com/vapor/console-kit.git at 4.5.0 (0.60s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.4.4 (0.60s)
Creating working copy for https://github.com/JohnSundell/ShellOut
Working copy of https://github.com/JohnSundell/ShellOut resolved at 2.3.0
Creating working copy for https://github.com/vapor/console-kit.git
Working copy of https://github.com/vapor/console-kit.git resolved at 4.5.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.4.4
========================================
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-device-authority",
      "name": "DeviceAuthority",
      "url": "https://github.com/getsidetrack/swift-device-authority.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-device-authority",
      "dependencies": [
        {
          "identity": "console-kit",
          "name": "console-kit",
          "url": "https://github.com/vapor/console-kit.git",
          "version": "4.15.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/console-kit",
          "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": [
              ]
            },
            {
              "identity": "swift-nio",
              "name": "swift-nio",
              "url": "https://github.com/apple/swift-nio.git",
              "version": "2.77.0",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-nio",
              "dependencies": [
                {
                  "identity": "swift-atomics",
                  "name": "swift-atomics",
                  "url": "https://github.com/apple/swift-atomics.git",
                  "version": "1.2.0",
                  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-atomics",
                  "dependencies": [
                  ]
                },
                {
                  "identity": "swift-collections",
                  "name": "swift-collections",
                  "url": "https://github.com/apple/swift-collections.git",
                  "version": "1.1.4",
                  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-collections",
                  "dependencies": [
                  ]
                },
                {
                  "identity": "swift-system",
                  "name": "swift-system",
                  "url": "https://github.com/apple/swift-system.git",
                  "version": "1.4.0",
                  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-system",
                  "dependencies": [
                  ]
                }
              ]
            }
          ]
        },
        {
          "identity": "shellout",
          "name": "ShellOut",
          "url": "https://github.com/JohnSundell/ShellOut.git",
          "version": "2.3.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ShellOut",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/getsidetrack/swift-device-authority.git
[3/117] Fetching swift-device-authority
Fetched https://github.com/getsidetrack/swift-device-authority.git from cache (0.76s)
Fetching https://github.com/vapor/console-kit.git from cache
Fetching https://github.com/JohnSundell/ShellOut.git from cache
Fetched https://github.com/JohnSundell/ShellOut.git from cache (0.46s)
Fetched https://github.com/vapor/console-kit.git from cache (0.46s)
Computing version for https://github.com/JohnSundell/ShellOut.git
Computed https://github.com/JohnSundell/ShellOut.git at 2.3.0 (0.55s)
Computing version for https://github.com/vapor/console-kit.git
Computed https://github.com/vapor/console-kit.git at 4.15.1 (0.45s)
Fetching https://github.com/apple/swift-log.git from cache
Fetching https://github.com/apple/swift-nio.git
[1/71999] Fetching swift-nio
Fetched https://github.com/apple/swift-log.git from cache (6.63s)
Fetched https://github.com/apple/swift-nio.git from cache (6.63s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.2 (0.44s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.77.0 (0.63s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-collections.git
[1/3919] Fetching swift-system
[80/5488] Fetching swift-system, swift-atomics
[2220/21091] Fetching swift-system, swift-atomics, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (1.14s)
Fetched https://github.com/apple/swift-atomics.git from cache (1.14s)
[937/15603] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (2.33s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.0 (0.42s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.45s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (0.66s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
Creating working copy for https://github.com/vapor/console-kit.git
Working copy of https://github.com/vapor/console-kit.git resolved at 4.15.1
Creating working copy for https://github.com/JohnSundell/ShellOut.git
Working copy of https://github.com/JohnSundell/ShellOut.git resolved at 2.3.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.77.0
Creating working copy for https://github.com/getsidetrack/swift-device-authority.git
Working copy of https://github.com/getsidetrack/swift-device-authority.git resolved at v0.2.0 (44a5e06)
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
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/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.4.0
Found 2 product dependencies
  - console-kit
  - ShellOut
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/getsidetrack/swift-device-authority.git
{
  "dependencies" : [
    {
      "identity" : "console-kit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.5.0",
            "upper_bound" : "5.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/vapor/console-kit.git"
    },
    {
      "identity" : "shellout",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.3.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/JohnSundell/ShellOut.git"
    }
  ],
  "manifest_display_name" : "DeviceAuthority",
  "name" : "DeviceAuthority",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "9.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "DeviceAuthority",
      "targets" : [
        "DeviceAuthority"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "swift-device-authority",
      "targets" : [
        "CommandLine"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DeviceAuthorityTests",
      "module_type" : "SwiftTarget",
      "name" : "DeviceAuthorityTests",
      "path" : "Tests/DeviceAuthorityTests",
      "sources" : [
        "DeviceAuthorityTests.swift"
      ],
      "target_dependencies" : [
        "DeviceAuthority"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DeviceAuthority",
      "module_type" : "SwiftTarget",
      "name" : "DeviceAuthority",
      "path" : "Sources/DeviceAuthority",
      "product_memberships" : [
        "DeviceAuthority"
      ],
      "sources" : [
        "DeviceAuthority.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CommandLine",
      "module_type" : "SwiftTarget",
      "name" : "CommandLine",
      "path" : "Sources/CommandLine",
      "product_dependencies" : [
        "ConsoleKit",
        "ShellOut"
      ],
      "product_memberships" : [
        "swift-device-authority"
      ],
      "sources" : [
        "Command.swift",
        "CreateAuthorityComamnd.swift",
        "CreateLeafCommand.swift",
        "MobileConfiguration.swift"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.6"
}
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/10] Write sources
[5/10] Write swift-device-authority-entitlement.plist
[6/10] Write swift-version--7754E27361AE5C74.txt
[8/18] Compiling Logging LogHandler.swift
[9/18] Compiling Logging Locks.swift
[10/18] Emitting module Logging
[11/18] Compiling Logging Logging.swift
[12/63] Emitting module DeviceAuthority
[13/63] Compiling DeviceAuthority DeviceAuthority.swift
/Users/admin/builder/spi-builder-workspace/Sources/DeviceAuthority/DeviceAuthority.swift:31:52: warning: capture of 'trust' with non-sendable type 'SecTrust' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 29 |                     // Queue completion is called on *must* be same as the queue the function itself is called on.
 30 |                     // Without this, it will crash.
 31 |                     SecTrustEvaluateAsyncWithError(trust, queue) { _, success, error in
    |                                                    `- warning: capture of 'trust' with non-sendable type 'SecTrust' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 32 |                         if let error = createError(from: error) {
 33 |                             continuation.resume(throwing: error)
Security.SecTrust:1:14: note: class 'SecTrust' does not conform to the 'Sendable' protocol
1 | public class SecTrust : _CFObject {
  |              `- note: class 'SecTrust' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/DeviceAuthority/DeviceAuthority.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Security'
  6 |
  7 | import Foundation
  8 | import Security
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Security'
  9 |
 10 | public struct DeviceAuthority {
/Users/admin/builder/spi-builder-workspace/Sources/DeviceAuthority/DeviceAuthority.swift:32:40: warning: capture of 'self' with non-sendable type 'DeviceAuthority' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  8 | import Security
  9 |
 10 | public struct DeviceAuthority {
    |               `- note: consider making struct 'DeviceAuthority' conform to the 'Sendable' protocol
 11 |     public let name: String
 12 |     public let bundle: Bundle
    :
 30 |                     // Without this, it will crash.
 31 |                     SecTrustEvaluateAsyncWithError(trust, queue) { _, success, error in
 32 |                         if let error = createError(from: error) {
    |                                        `- warning: capture of 'self' with non-sendable type 'DeviceAuthority' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 33 |                             continuation.resume(throwing: error)
 34 |                             return
/Users/admin/builder/spi-builder-workspace/Sources/DeviceAuthority/DeviceAuthority.swift:32:40: warning: capture of 'self' with non-sendable type 'DeviceAuthority' in an isolated closure; this is an error in the Swift 6 language mode
  8 | import Security
  9 |
 10 | public struct DeviceAuthority {
    |               `- note: consider making struct 'DeviceAuthority' conform to the 'Sendable' protocol
 11 |     public let name: String
 12 |     public let bundle: Bundle
    :
 30 |                     // Without this, it will crash.
 31 |                     SecTrustEvaluateAsyncWithError(trust, queue) { _, success, error in
 32 |                         if let error = createError(from: error) {
    |                                        `- warning: capture of 'self' with non-sendable type 'DeviceAuthority' in an isolated closure; this is an error in the Swift 6 language mode
 33 |                             continuation.resume(throwing: error)
 34 |                             return
/Users/admin/builder/spi-builder-workspace/Sources/DeviceAuthority/DeviceAuthority.swift:57:13: warning: 'SecTrustEvaluateAsync' was deprecated in macOS 10.15: renamed to 'SecTrustEvaluateAsyncWithError(_:_:_:)'
 55 |             let trust = try createTrust(from: certificate)
 56 |
 57 |             SecTrustEvaluateAsync(trust, .global(qos: .userInteractive)) { trust, result in
    |             |- warning: 'SecTrustEvaluateAsync' was deprecated in macOS 10.15: renamed to 'SecTrustEvaluateAsyncWithError(_:_:_:)'
    |             `- note: use 'SecTrustEvaluateAsyncWithError(_:_:_:)' instead
 58 |                 // Unfortunately, this API does not give us rich APIs out of the box.
 59 |                 if let error = createError(from: result, trust: trust) {
[14/63] Emitting module ShellOut
[15/63] Compiling ShellOut ShellOut.swift
[16/63] Compiling ConsoleKit Console+Choose.swift
[17/63] Compiling ConsoleKit Console+Confirm.swift
[18/63] Compiling ConsoleKit Console+Input.swift
[19/63] Compiling ConsoleKit Console+Center.swift
[20/63] Compiling ConsoleKit Console+Output.swift
[21/67] Compiling ConsoleKit Flag.swift
[22/67] Compiling ConsoleKit Option.swift
[23/67] Compiling ConsoleKit Utilities.swift
[24/67] Compiling ConsoleKit Console.swift
[25/67] Compiling ConsoleKit Console+Ask.swift
[26/67] Compiling ConsoleKit AnyCommand.swift
[27/67] Compiling ConsoleKit Argument.swift
[28/67] Compiling ConsoleKit AnyAsyncCommand.swift
[29/67] Compiling ConsoleKit AsyncCommand.swift
[30/67] Compiling ConsoleKit AsyncCommandGroup.swift
[31/67] Emitting module ConsoleKit
[32/67] Compiling ConsoleKit ActivityBar.swift
[33/67] Compiling ConsoleKit ActivityIndicator.swift
[34/67] Compiling ConsoleKit ActivityIndicatorRenderer.swift
[35/67] Compiling ConsoleKit ActivityIndicatorState.swift
[36/67] Compiling ConsoleKit CustomActivity.swift
[37/67] Compiling ConsoleKit Console+Wait.swift
[38/67] Compiling ConsoleKit ConsoleColor.swift
[39/67] Compiling ConsoleKit ConsoleStyle.swift
[40/67] Compiling ConsoleKit ConsoleText.swift
[41/67] Compiling ConsoleKit ConsoleTextFragment.swift
[42/67] Compiling ConsoleKit AsyncCommands.swift
[43/67] Compiling ConsoleKit Command.swift
[44/67] Compiling ConsoleKit CommandContext.swift
[45/67] Compiling ConsoleKit CommandError.swift
[46/67] Compiling ConsoleKit CommandGroup.swift
[47/67] Compiling ConsoleKit ANSI.swift
[48/67] Compiling ConsoleKit Terminal.swift
[49/67] Compiling ConsoleKit readpassphrase_linux.swift
[50/67] Compiling ConsoleKit ConsoleError.swift
[51/67] Compiling ConsoleKit ConsoleLogger.swift
[52/67] Compiling ConsoleKit GenerateAsyncAutocompleteCommand.swift
[53/67] Compiling ConsoleKit GenerateAutocompleteCommand.swift
[54/67] Compiling ConsoleKit String+LevenshteinDistance.swift
[55/67] Compiling ConsoleKit LoadingBar.swift
[56/67] Compiling ConsoleKit ProgressBar.swift
[57/67] Compiling ConsoleKit Console+Clear.swift
[58/67] Compiling ConsoleKit Console+Ephemeral.swift
[59/67] Compiling ConsoleKit ConsoleClear.swift
[60/67] Compiling ConsoleKit CommandInput.swift
[61/67] Compiling ConsoleKit CommandSignature.swift
[62/67] Compiling ConsoleKit Commands.swift
[63/67] Compiling ConsoleKit Completion.swift
[64/67] Compiling ConsoleKit Console+Run.swift
[65/72] Compiling CommandLine CreateLeafCommand.swift
[66/72] Compiling CommandLine MobileConfiguration.swift
[67/72] Compiling CommandLine Command.swift
[68/72] Emitting module CommandLine
[69/72] Compiling CommandLine CreateAuthorityComamnd.swift
[69/72] Write Objects.LinkFileList
[70/72] Linking swift-device-authority
[71/72] Applying swift-device-authority
Build complete! (9.60s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "console-kit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.5.0",
            "upper_bound" : "5.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/vapor/console-kit.git"
    },
    {
      "identity" : "shellout",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.3.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/JohnSundell/ShellOut.git"
    }
  ],
  "manifest_display_name" : "DeviceAuthority",
  "name" : "DeviceAuthority",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "9.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "DeviceAuthority",
      "targets" : [
        "DeviceAuthority"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "swift-device-authority",
      "targets" : [
        "CommandLine"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DeviceAuthorityTests",
      "module_type" : "SwiftTarget",
      "name" : "DeviceAuthorityTests",
      "path" : "Tests/DeviceAuthorityTests",
      "sources" : [
        "DeviceAuthorityTests.swift"
      ],
      "target_dependencies" : [
        "DeviceAuthority"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DeviceAuthority",
      "module_type" : "SwiftTarget",
      "name" : "DeviceAuthority",
      "path" : "Sources/DeviceAuthority",
      "product_memberships" : [
        "DeviceAuthority"
      ],
      "sources" : [
        "DeviceAuthority.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CommandLine",
      "module_type" : "SwiftTarget",
      "name" : "CommandLine",
      "path" : "Sources/CommandLine",
      "product_dependencies" : [
        "ConsoleKit",
        "ShellOut"
      ],
      "product_memberships" : [
        "swift-device-authority"
      ],
      "sources" : [
        "Command.swift",
        "CreateAuthorityComamnd.swift",
        "CreateLeafCommand.swift",
        "MobileConfiguration.swift"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.6"
}
Done.