This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 0

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/getsidetrack/swift-device-authority.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/getsidetrack/swift-device-authority
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 6e9f5ac Merge pull request #7 from 0xWDG/patch-1
Cloned https://github.com/getsidetrack/swift-device-authority.git
Revision (git rev-parse @):
6e9f5ac67e8ed9a252cbe1abd6aa5985fe772b0b
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/getsidetrack/swift-device-authority.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/getsidetrack/swift-device-authority.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/10] Write sources
[4/10] Write swift-device-authority-entitlement.plist
[5/10] Write sources
[6/10] Write swift-version-6F35C1178C84523A.txt
[8/18] Compiling Logging Logging.swift
[9/18] Compiling Logging Locks.swift
[10/18] Compiling Logging LogHandler.swift
[11/18] Emitting module Logging
[12/63] Compiling ConsoleKit Flag.swift
[13/63] Compiling ConsoleKit Option.swift
[14/63] Compiling ConsoleKit Utilities.swift
[15/63] Compiling ConsoleKit Console.swift
[16/63] Compiling ConsoleKit Console+Ask.swift
[17/67] Compiling ConsoleKit Console+Choose.swift
[18/67] Compiling ConsoleKit Console+Confirm.swift
[19/67] Compiling ConsoleKit Console+Input.swift
[20/67] Compiling ConsoleKit Console+Center.swift
[21/67] Compiling ConsoleKit Console+Output.swift
[22/67] Compiling ConsoleKit Console+Wait.swift
[23/67] Compiling ConsoleKit ConsoleColor.swift
[24/67] Compiling ConsoleKit ConsoleStyle.swift
[25/67] Compiling ConsoleKit ConsoleText.swift
[26/67] Compiling ConsoleKit ConsoleTextFragment.swift
[27/67] Emitting module ConsoleKit
[28/67] Compiling ConsoleKit ActivityBar.swift
[29/67] Compiling ConsoleKit ActivityIndicator.swift
[30/67] Compiling ConsoleKit ActivityIndicatorRenderer.swift
[31/67] Compiling ConsoleKit ActivityIndicatorState.swift
[32/67] Compiling ConsoleKit CustomActivity.swift
[33/67] Compiling ConsoleKit AsyncCommands.swift
[34/67] Compiling ConsoleKit Command.swift
[35/67] Compiling ConsoleKit CommandContext.swift
[36/67] Compiling ConsoleKit CommandError.swift
[37/67] Compiling ConsoleKit CommandGroup.swift
[38/67] Compiling ConsoleKit LoadingBar.swift
[39/67] Compiling ConsoleKit ProgressBar.swift
[40/67] Compiling ConsoleKit Console+Clear.swift
[41/67] Compiling ConsoleKit Console+Ephemeral.swift
[42/67] Compiling ConsoleKit ConsoleClear.swift
[43/67] Compiling ConsoleKit CommandInput.swift
[44/67] Compiling ConsoleKit CommandSignature.swift
[45/67] Compiling ConsoleKit Commands.swift
[46/67] Compiling ConsoleKit Completion.swift
[47/67] Compiling ConsoleKit Console+Run.swift
[48/67] Compiling ConsoleKit AnyCommand.swift
[49/67] Compiling ConsoleKit Argument.swift
[50/67] Compiling ConsoleKit AnyAsyncCommand.swift
[51/67] Compiling ConsoleKit AsyncCommand.swift
[52/67] Compiling ConsoleKit AsyncCommandGroup.swift
[53/67] Emitting module DeviceAuthority
[54/67] 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) {
[55/67] Compiling ConsoleKit ANSI.swift
[56/67] Compiling ConsoleKit Terminal.swift
[57/67] Compiling ConsoleKit readpassphrase_linux.swift
[58/67] Compiling ConsoleKit ConsoleError.swift
[59/67] Compiling ConsoleKit ConsoleLogger.swift
[60/67] Compiling ConsoleKit GenerateAsyncAutocompleteCommand.swift
[61/67] Compiling ConsoleKit GenerateAutocompleteCommand.swift
[62/67] Compiling ConsoleKit String+LevenshteinDistance.swift
[63/67] Emitting module ShellOut
[64/67] Compiling ShellOut ShellOut.swift
[65/72] Compiling CommandLine MobileConfiguration.swift
[66/72] Compiling CommandLine Command.swift
[67/72] Compiling CommandLine CreateLeafCommand.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/console-kit/Sources/ConsoleKit/Output/ConsoleText.swift:78:23: warning: static property 'newLine' is not concurrency-safe because non-'Sendable' type 'ConsoleText' may have shared mutable state; this is an error in the Swift 6 language mode
 26 | ///
 27 | /// See `Console.output(_:newLine:)` for more information.
 28 | public struct ConsoleText: RandomAccessCollection, ExpressibleByArrayLiteral, ExpressibleByStringLiteral, CustomStringConvertible {
    |               `- note: consider making struct 'ConsoleText' conform to the 'Sendable' protocol
 29 |     /// See `Collection`.
 30 |     public var startIndex: Int {
    :
 76 |
 77 |     /// `\n` character with plain styling.
 78 |     public static let newLine: ConsoleText = "\n"
    |                       |- warning: static property 'newLine' is not concurrency-safe because non-'Sendable' type 'ConsoleText' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'newLine' 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
 79 | }
 80 |
[68/72] Compiling CommandLine CreateAuthorityCommand.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/console-kit/Sources/ConsoleKit/Output/ConsoleText.swift:78:23: warning: static property 'newLine' is not concurrency-safe because non-'Sendable' type 'ConsoleText' may have shared mutable state; this is an error in the Swift 6 language mode
 26 | ///
 27 | /// See `Console.output(_:newLine:)` for more information.
 28 | public struct ConsoleText: RandomAccessCollection, ExpressibleByArrayLiteral, ExpressibleByStringLiteral, CustomStringConvertible {
    |               `- note: consider making struct 'ConsoleText' conform to the 'Sendable' protocol
 29 |     /// See `Collection`.
 30 |     public var startIndex: Int {
    :
 76 |
 77 |     /// `\n` character with plain styling.
 78 |     public static let newLine: ConsoleText = "\n"
    |                       |- warning: static property 'newLine' is not concurrency-safe because non-'Sendable' type 'ConsoleText' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'newLine' 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
 79 | }
 80 |
[69/72] Emitting module CommandLine
[69/72] Write Objects.LinkFileList
[70/72] Linking swift-device-authority
[71/72] Applying swift-device-authority
Build complete! (26.09s)
Fetching https://github.com/vapor/console-kit.git
Fetching https://github.com/JohnSundell/ShellOut
Fetching https://github.com/apple/swift-log.git
[1/956] Fetching shellout
[193/4317] Fetching shellout, swift-log
[395/9718] Fetching shellout, swift-log, console-kit
Fetched https://github.com/JohnSundell/ShellOut from cache (1.14s)
Fetched https://github.com/apple/swift-log.git from cache (1.14s)
Fetched https://github.com/vapor/console-kit.git 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.61s)
Computing version for https://github.com/vapor/console-kit.git
Computed https://github.com/vapor/console-kit.git at 4.5.0 (0.68s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.4.4 (0.66s)
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
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",
        "CreateAuthorityCommand.swift",
        "CreateLeafCommand.swift",
        "MobileConfiguration.swift"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.6"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.