The Swift Package Index logo.Swift Package Index

Build Information

Successful build of SwiftProcessManager, reference main (fb404e), with Swift 6.1 for macOS (SPM) on 30 Sep 2026 20:27:20 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.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: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/imclaren/SwiftProcessManager.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/imclaren/SwiftProcessManager
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at fb404e4 Ignore the SwiftPM build directory
Cloned https://github.com/imclaren/SwiftProcessManager.git
Revision (git rev-parse @):
fb404e42dda986bf95726acde663de0899edcdc4
SUCCESS checkout https://github.com/imclaren/SwiftProcessManager.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/imclaren/SwiftProcessManager.git
https://github.com/imclaren/SwiftProcessManager.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftProcessManager",
  "name" : "SwiftProcessManager",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "SwiftProcessManager",
      "targets" : [
        "SwiftProcessManager"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftProcessManagerTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftProcessManagerTests",
      "path" : "Tests/SwiftProcessManagerTests",
      "sources" : [
        "SwiftProcessManagerTests.swift"
      ],
      "target_dependencies" : [
        "SwiftProcessManager"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftProcessManager",
      "module_type" : "SwiftTarget",
      "name" : "SwiftProcessManager",
      "path" : "Sources/SwiftProcessManager",
      "product_memberships" : [
        "SwiftProcessManager"
      ],
      "sources" : [
        "ExitAppIfAlreadyOpen.swift",
        "Port.swift",
        "ProcessManager.swift",
        "SystemArchitecture.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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-2F0A5646E1D333AE.txt
[3/7] Compiling SwiftProcessManager SystemArchitecture.swift
[4/7] Compiling SwiftProcessManager ExitAppIfAlreadyOpen.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftProcessManager/ExitAppIfAlreadyOpen.swift:18:29: warning: call to main actor-isolated instance method 'terminate' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
11 |
12 | /// Terminate the running executable if another copy of the executable is already running.
13 | public func ExitAppIfAlreadyOpen() {
   |             `- note: add '@MainActor' to make global function 'ExitAppIfAlreadyOpen()' part of global actor 'MainActor'
14 |     let bundleID = Bundle.main.bundleIdentifier!
15 |     let numInstances = NSRunningApplication.runningApplications(withBundleIdentifier: bundleID).count
16 |     if numInstances > 1 {
17 |        print("Application already opened.  Exiting ...")
18 |        NSApplication.shared.terminate(nil)
   |                             `- warning: call to main actor-isolated instance method 'terminate' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 |     }
20 | }
AppKit.NSApplication.terminate:2:22: note: calls to instance method 'terminate' from outside of its actor context are implicitly asynchronous
1 | class NSApplication {
2 | @MainActor open func terminate(_ sender: Any?)}
  |                      |- note: calls to instance method 'terminate' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftProcessManager/ExitAppIfAlreadyOpen.swift:18:22: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
11 |
12 | /// Terminate the running executable if another copy of the executable is already running.
13 | public func ExitAppIfAlreadyOpen() {
   |             `- note: add '@MainActor' to make global function 'ExitAppIfAlreadyOpen()' part of global actor 'MainActor'
14 |     let bundleID = Bundle.main.bundleIdentifier!
15 |     let numInstances = NSRunningApplication.runningApplications(withBundleIdentifier: bundleID).count
16 |     if numInstances > 1 {
17 |        print("Application already opened.  Exiting ...")
18 |        NSApplication.shared.terminate(nil)
   |                      `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
19 |     }
20 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
    |                                                             `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
[5/7] Compiling SwiftProcessManager Port.swift
[6/7] Emitting module SwiftProcessManager
[7/7] Compiling SwiftProcessManager ProcessManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftProcessManager/ProcessManager.swift:136:17: warning: capture of 'standardOutput' with non-sendable type '(String) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
134 |         outHandle.readabilityHandler = { pipe in
135 |             if let line = String(data: pipe.availableData, encoding: .utf8) {
136 |                 standardOutput(line)
    |                 |- warning: capture of 'standardOutput' with non-sendable type '(String) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
137 |             }
138 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftProcessManager/ProcessManager.swift:46:16: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 44 |     public func terminateCurrentTask() {
 45 |         DispatchQueue.main.async {
 46 |             if self.task.isRunning {
    |                |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 47 |                 self.task.terminate()
 48 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftProcessManager/ProcessManager.swift:171:13: warning: sending 'taskExitNotification' risks causing data races; this is an error in the Swift 6 language mode
169 |         self.task.waitUntilExit()
170 |         DispatchQueue.main.async {
171 |             taskExitNotification(nil)
    |             |- warning: sending 'taskExitNotification' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'taskExitNotification' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
172 |         }
173 |     }
Build complete! (9.57s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftProcessManager",
  "name" : "SwiftProcessManager",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "SwiftProcessManager",
      "targets" : [
        "SwiftProcessManager"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftProcessManagerTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftProcessManagerTests",
      "path" : "Tests/SwiftProcessManagerTests",
      "sources" : [
        "SwiftProcessManagerTests.swift"
      ],
      "target_dependencies" : [
        "SwiftProcessManager"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftProcessManager",
      "module_type" : "SwiftTarget",
      "name" : "SwiftProcessManager",
      "path" : "Sources/SwiftProcessManager",
      "product_memberships" : [
        "SwiftProcessManager"
      ],
      "sources" : [
        "ExitAppIfAlreadyOpen.swift",
        "Port.swift",
        "ProcessManager.swift",
        "SystemArchitecture.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.