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 sLaunchctl, reference main (140f93), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 06:20:32 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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Alkenso/sLaunchctl.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Alkenso/sLaunchctl
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 140f937 Update README.md
Cloned https://github.com/Alkenso/sLaunchctl.git
Revision (git rev-parse @):
140f93705bcca12d4a28eae526c9c2a0f518e212
SUCCESS checkout https://github.com/Alkenso/sLaunchctl.git at main
Fetching https://github.com/Alkenso/SwiftSpellbook.git
Fetching https://github.com/Alkenso/SwiftSpellbook_macOS.git
[1/444] Fetching swiftspellbook_macos
[250/3526] Fetching swiftspellbook_macos, swiftspellbook
Fetched https://github.com/Alkenso/SwiftSpellbook.git from cache (1.07s)
Fetched https://github.com/Alkenso/SwiftSpellbook_macOS.git from cache (1.07s)
Computing version for https://github.com/Alkenso/SwiftSpellbook_macOS.git
Computed https://github.com/Alkenso/SwiftSpellbook_macOS.git at 0.0.3 (0.49s)
Computing version for https://github.com/Alkenso/SwiftSpellbook.git
Computed https://github.com/Alkenso/SwiftSpellbook.git at 0.4.2 (0.65s)
Creating working copy for https://github.com/Alkenso/SwiftSpellbook.git
Working copy of https://github.com/Alkenso/SwiftSpellbook.git resolved at 0.4.2
Creating working copy for https://github.com/Alkenso/SwiftSpellbook_macOS.git
Working copy of https://github.com/Alkenso/SwiftSpellbook_macOS.git resolved at 0.0.3
========================================
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": "slaunchctl",
      "name": "sLaunchctl",
      "url": "https://github.com/Alkenso/sLaunchctl.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/sLaunchctl",
      "dependencies": [
        {
          "identity": "swiftspellbook",
          "name": "SwiftSpellbook",
          "url": "https://github.com/Alkenso/SwiftSpellbook.git",
          "version": "0.4.2",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftSpellbook",
          "dependencies": [
          ]
        },
        {
          "identity": "swiftspellbook_macos",
          "name": "SwiftSpellbook_macOS",
          "url": "https://github.com/Alkenso/SwiftSpellbook_macOS.git",
          "version": "0.0.3",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftSpellbook_macOS",
          "dependencies": [
            {
              "identity": "swiftspellbook",
              "name": "SwiftSpellbook",
              "url": "https://github.com/Alkenso/SwiftSpellbook.git",
              "version": "0.4.2",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftSpellbook",
              "dependencies": [
              ]
            }
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/Alkenso/sLaunchctl.git
[1/150] Fetching slaunchctl
Fetched https://github.com/Alkenso/sLaunchctl.git from cache (0.73s)
Fetching https://github.com/Alkenso/SwiftSpellbook.git from cache
Fetching https://github.com/Alkenso/SwiftSpellbook_macOS.git from cache
Fetched https://github.com/Alkenso/SwiftSpellbook.git from cache (0.48s)
Fetched https://github.com/Alkenso/SwiftSpellbook_macOS.git from cache (0.48s)
Computing version for https://github.com/Alkenso/SwiftSpellbook_macOS.git
Computed https://github.com/Alkenso/SwiftSpellbook_macOS.git at 0.0.3 (0.03s)
Computing version for https://github.com/Alkenso/SwiftSpellbook.git
Computed https://github.com/Alkenso/SwiftSpellbook.git at 0.4.2 (0.03s)
Creating working copy for https://github.com/Alkenso/sLaunchctl.git
Working copy of https://github.com/Alkenso/sLaunchctl.git resolved at main (140f937)
Creating working copy for https://github.com/Alkenso/SwiftSpellbook.git
Working copy of https://github.com/Alkenso/SwiftSpellbook.git resolved at 0.4.2
Creating working copy for https://github.com/Alkenso/SwiftSpellbook_macOS.git
Working copy of https://github.com/Alkenso/SwiftSpellbook_macOS.git resolved at 0.0.3
warning: '.resolve-product-dependencies': dependency 'slaunchctl' is not used by any target
Found 2 product dependencies
  - SwiftSpellbook
  - SwiftSpellbook_macOS
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Alkenso/sLaunchctl.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
Building for debugging...
[0/5] Write sources
[3/5] Write swift-version--7754E27361AE5C74.txt
[4/5] Compiling SpellbookFoundationObjC SpellbookObjC.mm
[6/60] Emitting module SpellbookFoundation
[7/66] Compiling SpellbookFoundation Extensions - Comparable.swift
[8/66] Compiling SpellbookFoundation Extensions - Formatters.swift
[9/66] Compiling SpellbookFoundation Extensions - NSError.swift
[10/66] Compiling SpellbookFoundation Extensions - Other.swift
[11/66] Compiling SpellbookFoundation Extensions - StandardTypes.swift
[12/66] Compiling SpellbookFoundation ObjectBuilder.swift
[13/66] Compiling SpellbookFoundation BinaryParsingError.swift
[14/66] Compiling SpellbookFoundation BinaryReader.swift
[15/66] Compiling SpellbookFoundation BinaryReaderInput.swift
[16/66] Compiling SpellbookFoundation BinaryWriter.swift
[17/66] Compiling SpellbookFoundation BinaryWriterOutput.swift
[18/66] Compiling SpellbookFoundation Extensions - Publisher.swift
[19/66] Compiling SpellbookFoundation SBUnit.swift
[20/66] Compiling SpellbookFoundation SpellbookLog.swift
[21/66] Compiling SpellbookFoundation Utils.swift
[22/66] Compiling SpellbookFoundation WildcardExpression.swift
[23/66] Compiling SpellbookFoundation DictionaryCodingKey.swift
[24/66] Compiling SpellbookFoundation DictionaryReader.swift
[25/66] Compiling SpellbookFoundation DictionaryWriter.swift
[26/66] Compiling SpellbookFoundation Extensions - Bundle.swift
[27/66] Compiling SpellbookFoundation Extensions - FileManager.swift
[28/66] Compiling SpellbookFoundation FileEnumerator.swift
[29/66] Compiling SpellbookFoundation FileStore.swift
[30/66] Compiling SpellbookFoundation TemporaryDirectory.swift
[31/66] Compiling SpellbookFoundation SynchronousExecutor.swift
[32/66] Compiling SpellbookFoundation Boxing.swift
[33/66] Compiling SpellbookFoundation Closure.swift
[34/66] Compiling SpellbookFoundation CommonError.swift
[35/66] Compiling SpellbookFoundation Refreshable.swift
[36/66] Compiling SpellbookFoundation Resource (RAII).swift
[37/66] Compiling SpellbookFoundation Extensions - DispatchQueue.swift
[38/66] Compiling SpellbookFoundation Extensions - Locks.swift
[39/66] Compiling SpellbookFoundation Extensions - Task.swift
[40/66] Compiling SpellbookFoundation PosixLocks.swift
[41/66] Compiling SpellbookFoundation SynchronizationUtils.swift
[42/66] Compiling SpellbookFoundation Synchronized.swift
[43/66] Compiling SpellbookFoundation Proxies.swift
[44/66] Compiling SpellbookFoundation Benchmark.swift
[45/66] Compiling SpellbookFoundation CancellationToken.swift
[46/66] Compiling SpellbookFoundation Environment.swift
[47/66] Compiling SpellbookFoundation Extensions - Codable.swift
[48/66] Compiling SpellbookFoundation Extensions - Collections.swift
[49/66] Compiling SpellbookFoundation Types.swift
[50/66] Compiling SpellbookFoundation EventAsk.swift
[51/66] Compiling SpellbookFoundation EventNotify.swift
[52/66] Compiling SpellbookFoundation Observable.swift
[53/66] Compiling SpellbookFoundation ValueObserving.swift
[54/66] Compiling SpellbookFoundation ValueStore.swift
[55/66] Compiling SpellbookFoundation Unsafe.swift
[56/66] Compiling SpellbookFoundation Exceptions.swift
[57/66] Compiling SpellbookFoundation DeviceInfo.swift
[58/66] Compiling SpellbookFoundation Atomic.swift
[59/66] Compiling SpellbookFoundation BlockingQueue.swift
[60/66] Compiling SpellbookFoundation ConcurrentBlockOperation.swift
[61/66] Compiling SpellbookFoundation Extensions - CoreGraphics.swift
[62/66] Compiling SpellbookFoundation AuditToken.swift
[63/66] Compiling SpellbookFoundation BridgedCEnum.swift
[64/66] Compiling SpellbookFoundation IOKitError.swift
[65/66] Compiling SpellbookFoundation Mach.swift
[66/66] Compiling SpellbookFoundation POD+Swift.swift
[67/76] Compiling Spellbook_macOS ACL.swift
[68/76] Compiling Spellbook_macOS Membership.swift
[69/76] Compiling Spellbook_macOS UnixGroup.swift
[70/76] Compiling Spellbook_macOS Sysctl.swift
[71/76] Compiling Spellbook_macOS Extensions - ProcessInfo.swift
[72/76] Compiling Spellbook_macOS UnixUser.swift
[73/76] Compiling Spellbook_macOS Extensions - Process.swift
[74/76] Compiling Spellbook_macOS CGWindowInfo.swift
[75/76] Emitting module Spellbook_macOS
[76/76] Compiling Spellbook_macOS Extensions - Coordinates.swift
[77/82] Compiling sLaunchctl Utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/sLaunchctl/Internals/Utils.swift:33:14: warning: var 'runLaunchctlFn' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | }
32 |
33 | internal var runLaunchctlFn = { (_ args: [String]) throws -> String in
   |              |- warning: var 'runLaunchctlFn' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert 'runLaunchctlFn' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: annotate 'runLaunchctlFn' 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
34 |     let (exitCode, stdout, stderr) = Process.launch(
35 |         tool: URL(fileURLWithPath: "/bin/launchctl"),
[78/82] Compiling sLaunchctl Launchctl.swift
[79/82] Compiling sLaunchctl OutputParser.swift
[80/82] Compiling sLaunchctl Error.swift
[81/82] Emitting module sLaunchctl
/Users/admin/builder/spi-builder-workspace/Sources/sLaunchctl/Internals/Utils.swift:33:14: warning: var 'runLaunchctlFn' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | }
32 |
33 | internal var runLaunchctlFn = { (_ args: [String]) throws -> String in
   |              |- warning: var 'runLaunchctlFn' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert 'runLaunchctlFn' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: annotate 'runLaunchctlFn' 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
34 |     let (exitCode, stdout, stderr) = Process.launch(
35 |         tool: URL(fileURLWithPath: "/bin/launchctl"),
[82/82] Compiling sLaunchctl Service.swift
Build complete! (24.47s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swiftspellbook",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.4.1",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Alkenso/SwiftSpellbook.git"
    },
    {
      "identity" : "swiftspellbook_macos",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.0.2",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Alkenso/SwiftSpellbook_macOS.git"
    }
  ],
  "manifest_display_name" : "sLaunchctl",
  "name" : "sLaunchctl",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "sLaunchctl",
      "targets" : [
        "sLaunchctl"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "sLaunchctlTests",
      "module_type" : "SwiftTarget",
      "name" : "sLaunchctlTests",
      "path" : "Tests/sLaunchctlTests",
      "product_dependencies" : [
        "SpellbookFoundation"
      ],
      "sources" : [
        "LaunchctlParsingTests.swift",
        "LiveTesting.swift",
        "ServiceParsingTests.swift"
      ],
      "target_dependencies" : [
        "sLaunchctl"
      ],
      "type" : "test"
    },
    {
      "c99name" : "sLaunchctl",
      "module_type" : "SwiftTarget",
      "name" : "sLaunchctl",
      "path" : "Sources/sLaunchctl",
      "product_dependencies" : [
        "SpellbookFoundation",
        "Spellbook_macOS"
      ],
      "product_memberships" : [
        "sLaunchctl"
      ],
      "sources" : [
        "Internals/Error.swift",
        "Internals/OutputParser.swift",
        "Internals/Utils.swift",
        "Launchctl.swift",
        "Service.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.