Build Information
Successful build of OpenInTerminalButton, reference main (94749c
), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 20:17:24 UTC.
Swift 6 data race errors: 2
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 -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.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kukushechkin/OpenInTerminalButton.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kukushechkin/OpenInTerminalButton
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
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 main
========================================
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 (0.62s)
Creating working copy for https://github.com/kukushechkin/OpenInTerminalButton.git
Working copy of https://github.com/kukushechkin/OpenInTerminalButton.git resolved at main (94749c4)
warning: '.resolve-product-dependencies': dependency 'openinterminalbutton' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
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.1.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--7754E27361AE5C74.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: annotate 'openInTerminalInternals' 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
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: annotate 'terminalsPriority' 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
68 |
69 | func URLFor(terminal: SupportedTerminal) -> URL? {
[4/8] Compiling OpenInTerminalButton BorderlessButton.swift
[5/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: annotate 'openInTerminalInternals' 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
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: annotate 'terminalsPriority' 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
68 |
69 | func URLFor(terminal: SupportedTerminal) -> URL? {
[6/8] Compiling OpenInTerminalButton iTerm2Script.swift
[7/8] Compiling OpenInTerminalButton TerminalScript.swift
[8/8] Compiling OpenInTerminalButton OpenInTerminalButton.swift
Build complete! (11.09s)
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.