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

Swift 6 data race errors: 4

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/emorydunn/launchagent.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/emorydunn/launchagent
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 9f6d33a Set version
Cloned https://github.com/emorydunn/launchagent.git
Revision (git rev-parse @):
9f6d33abfa4a0a45a877e9b884391981c1f4152b
SUCCESS checkout https://github.com/emorydunn/launchagent.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/emorydunn/launchagent.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/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/12] Compiling LaunchAgent LaunchAgent.swift
[4/13] Compiling LaunchAgent inetdCompatibility.swift
[5/13] Compiling LaunchAgent LaunchControl.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaunchAgent/LaunchControl.swift:30:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LaunchControl' may have shared mutable state; this is an error in the Swift 6 language mode
 25 |
 26 | /// Control agents and daemons.
 27 | public class LaunchControl {
    |              `- note: class 'LaunchControl' does not conform to the 'Sendable' protocol
 28 |
 29 |     /// The shared instance
 30 |     public static let shared = LaunchControl()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LaunchControl' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' 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
 31 |
 32 |     static let launchctl = "/bin/launchctl"
[6/13] Compiling LaunchAgent LaunchAgent+Status.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaunchAgent/LaunchControl.swift:30:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LaunchControl' may have shared mutable state; this is an error in the Swift 6 language mode
 25 |
 26 | /// Control agents and daemons.
 27 | public class LaunchControl {
    |              `- note: class 'LaunchControl' does not conform to the 'Sendable' protocol
 28 |
 29 |     /// The shared instance
 30 |     public static let shared = LaunchControl()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LaunchControl' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' 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
 31 |
 32 |     static let launchctl = "/bin/launchctl"
[7/13] Compiling LaunchAgent File Permissions.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaunchAgent/Key Types/File Permissions.swift:26:23: warning: static property 'read' is not concurrency-safe because non-'Sendable' type 'PermissionBits' may have shared mutable state; this is an error in the Swift 6 language mode
 18 |
 19 | */
 20 | public struct PermissionBits: OptionSet, Codable, CustomStringConvertible {
    |               `- note: consider making struct 'PermissionBits' conform to the 'Sendable' protocol
 21 |
 22 |     /// Raw value
    :
 24 |
 25 |     /// Read permission bit
 26 |     public static let read = PermissionBits(rawValue: 4)
    |                       |- warning: static property 'read' is not concurrency-safe because non-'Sendable' type 'PermissionBits' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'read' 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
 27 |
 28 |     /// Write permission bit
/Users/admin/builder/spi-builder-workspace/Sources/LaunchAgent/Key Types/File Permissions.swift:29:23: warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'PermissionBits' may have shared mutable state; this is an error in the Swift 6 language mode
 18 |
 19 | */
 20 | public struct PermissionBits: OptionSet, Codable, CustomStringConvertible {
    |               `- note: consider making struct 'PermissionBits' conform to the 'Sendable' protocol
 21 |
 22 |     /// Raw value
    :
 27 |
 28 |     /// Write permission bit
 29 |     public static let write = PermissionBits(rawValue: 2)
    |                       |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'PermissionBits' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'write' 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
 30 |
 31 |     /// Execute permission bit
/Users/admin/builder/spi-builder-workspace/Sources/LaunchAgent/Key Types/File Permissions.swift:32:23: warning: static property 'execute' is not concurrency-safe because non-'Sendable' type 'PermissionBits' may have shared mutable state; this is an error in the Swift 6 language mode
 18 |
 19 | */
 20 | public struct PermissionBits: OptionSet, Codable, CustomStringConvertible {
    |               `- note: consider making struct 'PermissionBits' conform to the 'Sendable' protocol
 21 |
 22 |     /// Raw value
    :
 30 |
 31 |     /// Execute permission bit
 32 |     public static let execute = PermissionBits(rawValue: 1)
    |                       |- warning: static property 'execute' is not concurrency-safe because non-'Sendable' type 'PermissionBits' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'execute' 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
 33 |
 34 |
[8/13] Compiling LaunchAgent ResourceLimits.swift
[9/13] Compiling LaunchAgent MachService.swift
[10/13] Emitting module LaunchAgent
/Users/admin/builder/spi-builder-workspace/Sources/LaunchAgent/Key Types/File Permissions.swift:26:23: warning: static property 'read' is not concurrency-safe because non-'Sendable' type 'PermissionBits' may have shared mutable state; this is an error in the Swift 6 language mode
 18 |
 19 | */
 20 | public struct PermissionBits: OptionSet, Codable, CustomStringConvertible {
    |               `- note: consider making struct 'PermissionBits' conform to the 'Sendable' protocol
 21 |
 22 |     /// Raw value
    :
 24 |
 25 |     /// Read permission bit
 26 |     public static let read = PermissionBits(rawValue: 4)
    |                       |- warning: static property 'read' is not concurrency-safe because non-'Sendable' type 'PermissionBits' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'read' 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
 27 |
 28 |     /// Write permission bit
/Users/admin/builder/spi-builder-workspace/Sources/LaunchAgent/Key Types/File Permissions.swift:29:23: warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'PermissionBits' may have shared mutable state; this is an error in the Swift 6 language mode
 18 |
 19 | */
 20 | public struct PermissionBits: OptionSet, Codable, CustomStringConvertible {
    |               `- note: consider making struct 'PermissionBits' conform to the 'Sendable' protocol
 21 |
 22 |     /// Raw value
    :
 27 |
 28 |     /// Write permission bit
 29 |     public static let write = PermissionBits(rawValue: 2)
    |                       |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'PermissionBits' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'write' 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
 30 |
 31 |     /// Execute permission bit
/Users/admin/builder/spi-builder-workspace/Sources/LaunchAgent/Key Types/File Permissions.swift:32:23: warning: static property 'execute' is not concurrency-safe because non-'Sendable' type 'PermissionBits' may have shared mutable state; this is an error in the Swift 6 language mode
 18 |
 19 | */
 20 | public struct PermissionBits: OptionSet, Codable, CustomStringConvertible {
    |               `- note: consider making struct 'PermissionBits' conform to the 'Sendable' protocol
 21 |
 22 |     /// Raw value
    :
 30 |
 31 |     /// Execute permission bit
 32 |     public static let execute = PermissionBits(rawValue: 1)
    |                       |- warning: static property 'execute' is not concurrency-safe because non-'Sendable' type 'PermissionBits' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'execute' 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
 33 |
 34 |
/Users/admin/builder/spi-builder-workspace/Sources/LaunchAgent/LaunchControl.swift:30:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LaunchControl' may have shared mutable state; this is an error in the Swift 6 language mode
 25 |
 26 | /// Control agents and daemons.
 27 | public class LaunchControl {
    |              `- note: class 'LaunchControl' does not conform to the 'Sendable' protocol
 28 |
 29 |     /// The shared instance
 30 |     public static let shared = LaunchControl()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LaunchControl' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' 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
 31 |
 32 |     static let launchctl = "/bin/launchctl"
[11/13] Compiling LaunchAgent ProcessType.swift
[12/13] Compiling LaunchAgent StartCalendarInterval.swift
[13/13] Compiling LaunchAgent String Extensions.swift
Build complete! (22.63s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "LaunchAgent",
  "name" : "LaunchAgent",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "LaunchAgent",
      "targets" : [
        "LaunchAgent"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LaunchAgentTests",
      "module_type" : "SwiftTarget",
      "name" : "LaunchAgentTests",
      "path" : "Tests/LaunchAgentTests",
      "sources" : [
        "FilePermissionsTests.swift",
        "LaunchAgentTests.swift",
        "LaunchAgentValiditytests.swift",
        "LaunchControlTests.swift",
        "ProgramTests.swift",
        "StartCalendarIntervalTests.swift"
      ],
      "target_dependencies" : [
        "LaunchAgent"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LaunchAgent",
      "module_type" : "SwiftTarget",
      "name" : "LaunchAgent",
      "path" : "Sources/LaunchAgent",
      "product_memberships" : [
        "LaunchAgent"
      ],
      "sources" : [
        "Key Types/File Permissions.swift",
        "Key Types/MachService.swift",
        "Key Types/ProcessType.swift",
        "Key Types/ResourceLimits.swift",
        "Key Types/StartCalendarInterval.swift",
        "Key Types/inetdCompatibility.swift",
        "LaunchAgent+Status.swift",
        "LaunchAgent.swift",
        "LaunchControl.swift",
        "String Extensions.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.