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 OpenInTerminalButton, reference 1.0.4 (94749c), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 13:48:44 UTC.

Swift 6 data race errors: 2

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: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kukushechkin/OpenInTerminalButton.git
Reference: 1.0.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kukushechkin/OpenInTerminalButton
 * tag               1.0.4      -> FETCH_HEAD
HEAD is now at 94749c4 make openInTerminal async
Cloned https://github.com/kukushechkin/OpenInTerminalButton.git
Revision (git rev-parse @):
94749c449223529844d593904645c509b377057d
SUCCESS checkout https://github.com/kukushechkin/OpenInTerminalButton.git at 1.0.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": "openinterminalbutton",
      "name": "OpenInTerminalButton",
      "url": "https://github.com/kukushechkin/OpenInTerminalButton.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/OpenInTerminalButton",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/kukushechkin/OpenInTerminalButton.git
[1/57] Fetching openinterminalbutton
Fetched https://github.com/kukushechkin/OpenInTerminalButton.git from cache (2.63s)
Creating working copy for https://github.com/kukushechkin/OpenInTerminalButton.git
Working copy of https://github.com/kukushechkin/OpenInTerminalButton.git resolved at 1.0.4 (94749c4)
warning: '.resolve-product-dependencies': dependency 'openinterminalbutton' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/kukushechkin/OpenInTerminalButton.git
https://github.com/kukushechkin/OpenInTerminalButton.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "OpenInTerminalButton",
  "name" : "OpenInTerminalButton",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "OpenInTerminalButton",
      "targets" : [
        "OpenInTerminalButton"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OpenInTerminalButtonTests",
      "module_type" : "SwiftTarget",
      "name" : "OpenInTerminalButtonTests",
      "path" : "Tests/OpenInTerminalButtonTests",
      "sources" : [
        "NSAppleScriptMock.swift",
        "NSWorkspaceMock.swift",
        "OpenInTerminalButtonTests.swift"
      ],
      "target_dependencies" : [
        "OpenInTerminalButton"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OpenInTerminalButton",
      "module_type" : "SwiftTarget",
      "name" : "OpenInTerminalButton",
      "path" : "Sources/OpenInTerminalButton",
      "product_memberships" : [
        "OpenInTerminalButton"
      ],
      "sources" : [
        "Apple scripts/TerminalScript.swift",
        "Apple scripts/iTerm2Script.swift",
        "Buttons/BorderlessButton.swift",
        "Buttons/OpenInTerminalButton.swift",
        "OpenInTerminal.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7.1"
}
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/8] Compiling OpenInTerminalButton OpenInTerminal.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenInTerminalButton/OpenInTerminal.swift:46:5: warning: var 'openInTerminalInternals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 44 | }
 45 |
 46 | var openInTerminalInternals = OpenInTerminalInernals()
    |     |- warning: var 'openInTerminalInternals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'openInTerminalInternals' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'openInTerminalInternals' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 47 |
 48 | // MARK: - Internal
/Users/admin/builder/spi-builder-workspace/Sources/OpenInTerminalButton/OpenInTerminal.swift:67:5: warning: let 'terminalsPriority' is not concurrency-safe because non-'Sendable' type '[SupportedTerminal]' may have shared mutable state; this is an error in the Swift 6 language mode
 16 | }
 17 |
 18 | public enum SupportedTerminal: String, CaseIterable {
    |             `- note: consider making enum 'SupportedTerminal' conform to the 'Sendable' protocol
 19 |     case terminal = "com.apple.Terminal"
 20 |     case iterm2 = "com.googlecode.iterm2"
    :
 65 |
 66 | // Select terminals based on this priority list
 67 | let terminalsPriority: [SupportedTerminal] = [.iterm2, .terminal]
    |     |- warning: let 'terminalsPriority' is not concurrency-safe because non-'Sendable' type '[SupportedTerminal]' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'terminalsPriority' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 68 |
 69 | func URLFor(terminal: SupportedTerminal) -> URL? {
[4/8] Compiling OpenInTerminalButton OpenInTerminalButton.swift
[5/8] Compiling OpenInTerminalButton iTerm2Script.swift
[6/8] Emitting module OpenInTerminalButton
/Users/admin/builder/spi-builder-workspace/Sources/OpenInTerminalButton/OpenInTerminal.swift:46:5: warning: var 'openInTerminalInternals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 44 | }
 45 |
 46 | var openInTerminalInternals = OpenInTerminalInernals()
    |     |- warning: var 'openInTerminalInternals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'openInTerminalInternals' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'openInTerminalInternals' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 47 |
 48 | // MARK: - Internal
/Users/admin/builder/spi-builder-workspace/Sources/OpenInTerminalButton/OpenInTerminal.swift:67:5: warning: let 'terminalsPriority' is not concurrency-safe because non-'Sendable' type '[SupportedTerminal]' may have shared mutable state; this is an error in the Swift 6 language mode
 16 | }
 17 |
 18 | public enum SupportedTerminal: String, CaseIterable {
    |             `- note: consider making enum 'SupportedTerminal' conform to the 'Sendable' protocol
 19 |     case terminal = "com.apple.Terminal"
 20 |     case iterm2 = "com.googlecode.iterm2"
    :
 65 |
 66 | // Select terminals based on this priority list
 67 | let terminalsPriority: [SupportedTerminal] = [.iterm2, .terminal]
    |     |- warning: let 'terminalsPriority' is not concurrency-safe because non-'Sendable' type '[SupportedTerminal]' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'terminalsPriority' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 68 |
 69 | func URLFor(terminal: SupportedTerminal) -> URL? {
[7/8] Compiling OpenInTerminalButton TerminalScript.swift
[8/8] Compiling OpenInTerminalButton BorderlessButton.swift
Build complete! (7.52s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "OpenInTerminalButton",
  "name" : "OpenInTerminalButton",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "OpenInTerminalButton",
      "targets" : [
        "OpenInTerminalButton"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OpenInTerminalButtonTests",
      "module_type" : "SwiftTarget",
      "name" : "OpenInTerminalButtonTests",
      "path" : "Tests/OpenInTerminalButtonTests",
      "sources" : [
        "NSAppleScriptMock.swift",
        "NSWorkspaceMock.swift",
        "OpenInTerminalButtonTests.swift"
      ],
      "target_dependencies" : [
        "OpenInTerminalButton"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OpenInTerminalButton",
      "module_type" : "SwiftTarget",
      "name" : "OpenInTerminalButton",
      "path" : "Sources/OpenInTerminalButton",
      "product_memberships" : [
        "OpenInTerminalButton"
      ],
      "sources" : [
        "Apple scripts/TerminalScript.swift",
        "Apple scripts/iTerm2Script.swift",
        "Buttons/BorderlessButton.swift",
        "Buttons/OpenInTerminalButton.swift",
        "OpenInTerminal.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7.1"
}
Done.