Build Information
Successful build of SwiftGLFW, reference 4.3.0 (6e184a
), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 21:31:37 UTC.
Swift 6 data race errors: 14
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/thepotatoking55/SwiftGLFW.git
Reference: 4.3.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/thepotatoking55/SwiftGLFW
* tag 4.3.0 -> FETCH_HEAD
HEAD is now at 6e184a7 Remove `openGLVersion` hint
Cloned https://github.com/thepotatoking55/SwiftGLFW.git
Revision (git rev-parse @):
6e184a7020d93a333ac36fe17bf00a657ae83a48
SUCCESS checkout https://github.com/thepotatoking55/SwiftGLFW.git at 4.3.0
Fetching https://github.com/thepotatoking55/CGLFW3.git
[1/254] Fetching cglfw3
Fetched https://github.com/thepotatoking55/CGLFW3.git from cache (1.10s)
Creating working copy for https://github.com/thepotatoking55/CGLFW3.git
Working copy of https://github.com/thepotatoking55/CGLFW3.git resolved at main (b179e80)
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
Fetching https://github.com/thepotatoking55/SwiftGLFW.git
[1/759] Fetching swiftglfw
Fetched https://github.com/thepotatoking55/SwiftGLFW.git from cache (0.97s)
Fetching https://github.com/thepotatoking55/CGLFW3.git from cache
Fetched https://github.com/thepotatoking55/CGLFW3.git from cache (0.48s)
error: Invalid manifest (compiled with: ["/Applications/Xcode-16.1.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc", "-vfsoverlay", "/var/folders/fs/0w3t9t1d28xc3bj0tgb8hcrw0000gn/T/TemporaryDirectory.Tp70Hv/vfs.yaml", "-L", "/Applications/Xcode-16.1.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/pm/ManifestAPI", "-lPackageDescription", "-Xlinker", "-rpath", "-Xlinker", "/Applications/Xcode-16.1.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/pm/ManifestAPI", "-target", "arm64-apple-macosx13.0", "-sdk", "/Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk", "-F", "/Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks", "-I", "/Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib", "-L", "/Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib", "-swift-version", "5", "-I", "/Applications/Xcode-16.1.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/pm/ManifestAPI", "-sdk", "/Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk", "-package-description-version", "5.10.0", "/Package.swift", "-o", "/var/folders/fs/0w3t9t1d28xc3bj0tgb8hcrw0000gn/T/TemporaryDirectory.HAqijT/cglfw3-manifest"])
/Package.swift:52:5: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
50 | #endif
51 |
52 | let package = Package(
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
53 | name: "CGLFW3",
54 | products: [ in https://github.com/thepotatoking55/CGLFW3.git
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/thepotatoking55/SwiftGLFW.git
{
"dependencies" : [
{
"identity" : "cglfw3",
"requirement" : {
"branch" : [
"main"
]
},
"type" : "sourceControl",
"url" : "https://github.com/thepotatoking55/CGLFW3.git"
}
],
"manifest_display_name" : "SwiftGLFW",
"name" : "SwiftGLFW",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "SwiftGLFW",
"targets" : [
"GLFW"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "GLFWTests",
"module_type" : "SwiftTarget",
"name" : "GLFWTests",
"path" : "Tests/GLFWTests",
"sources" : [
"GLFWTests.swift"
],
"target_dependencies" : [
"GLFW"
],
"type" : "test"
},
{
"c99name" : "GLFW",
"module_type" : "SwiftTarget",
"name" : "GLFW",
"path" : "Sources/GLFW",
"product_dependencies" : [
"CGLFW3"
],
"product_memberships" : [
"SwiftGLFW"
],
"sources" : [
"Constants.swift",
"Error.swift",
"Extensions.swift",
"Input/ButtonState.swift",
"Input/Gamepad.swift",
"Input/Keyboard.swift",
"Input/Mouse.swift",
"Monitor/Monitor.swift",
"Native Extensions/Linux.swift",
"Native Extensions/Windows.swift",
"Native Extensions/macOS.swift",
"ObjectProtocol.swift",
"Session.swift",
"Structs/Color.swift",
"Structs/ContentScale.swift",
"Structs/Frame.swift",
"Structs/Image.swift",
"Structs/Margins.swift",
"Structs/Point.swift",
"Structs/Size.swift",
"Window/Context.swift",
"Window/Hints.swift",
"Window/Window.swift",
"Window/WindowAttributes.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
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/3] Write sources
[1/3] Compiling CGLFW3 dummy.c
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/26] Compiling GLFW Image.swift
[5/26] Compiling GLFW Margins.swift
[6/26] Compiling GLFW ButtonState.swift
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:80:27: warning: static property 'shift' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
78 | }
79 |
80 | public static let shift = Modifier(rawValue: 1 << 0)
| |- warning: static property 'shift' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shift' 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
81 | public static let control = Modifier(rawValue: 1 << 1)
82 | public static let alt = Modifier(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:81:27: warning: static property 'control' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
79 |
80 | public static let shift = Modifier(rawValue: 1 << 0)
81 | public static let control = Modifier(rawValue: 1 << 1)
| |- warning: static property 'control' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'control' 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
82 | public static let alt = Modifier(rawValue: 1 << 2)
83 | public static let `super` = Modifier(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:82:27: warning: static property 'alt' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
80 | public static let shift = Modifier(rawValue: 1 << 0)
81 | public static let control = Modifier(rawValue: 1 << 1)
82 | public static let alt = Modifier(rawValue: 1 << 2)
| |- warning: static property 'alt' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'alt' 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
83 | public static let `super` = Modifier(rawValue: 1 << 3)
84 | public static let command = Modifier.super
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:83:27: warning: static property 'super' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
81 | public static let control = Modifier(rawValue: 1 << 1)
82 | public static let alt = Modifier(rawValue: 1 << 2)
83 | public static let `super` = Modifier(rawValue: 1 << 3)
| |- warning: static property 'super' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'super' 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
84 | public static let command = Modifier.super
85 | public static let win = Modifier.super
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:84:27: warning: static property 'command' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
82 | public static let alt = Modifier(rawValue: 1 << 2)
83 | public static let `super` = Modifier(rawValue: 1 << 3)
84 | public static let command = Modifier.super
| |- warning: static property 'command' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'command' 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
85 | public static let win = Modifier.super
86 | public static let capsLock = Modifier(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:85:27: warning: static property 'win' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
83 | public static let `super` = Modifier(rawValue: 1 << 3)
84 | public static let command = Modifier.super
85 | public static let win = Modifier.super
| |- warning: static property 'win' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'win' 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
86 | public static let capsLock = Modifier(rawValue: 1 << 4)
87 | public static let numLock = Modifier(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:86:27: warning: static property 'capsLock' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
84 | public static let command = Modifier.super
85 | public static let win = Modifier.super
86 | public static let capsLock = Modifier(rawValue: 1 << 4)
| |- warning: static property 'capsLock' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'capsLock' 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
87 | public static let numLock = Modifier(rawValue: 1 << 5)
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:87:27: warning: static property 'numLock' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
85 | public static let win = Modifier.super
86 | public static let capsLock = Modifier(rawValue: 1 << 4)
87 | public static let numLock = Modifier(rawValue: 1 << 5)
| |- warning: static property 'numLock' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'numLock' 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
88 | }
89 | }
[7/26] Compiling GLFW Gamepad.swift
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:80:27: warning: static property 'shift' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
78 | }
79 |
80 | public static let shift = Modifier(rawValue: 1 << 0)
| |- warning: static property 'shift' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shift' 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
81 | public static let control = Modifier(rawValue: 1 << 1)
82 | public static let alt = Modifier(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:81:27: warning: static property 'control' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
79 |
80 | public static let shift = Modifier(rawValue: 1 << 0)
81 | public static let control = Modifier(rawValue: 1 << 1)
| |- warning: static property 'control' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'control' 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
82 | public static let alt = Modifier(rawValue: 1 << 2)
83 | public static let `super` = Modifier(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:82:27: warning: static property 'alt' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
80 | public static let shift = Modifier(rawValue: 1 << 0)
81 | public static let control = Modifier(rawValue: 1 << 1)
82 | public static let alt = Modifier(rawValue: 1 << 2)
| |- warning: static property 'alt' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'alt' 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
83 | public static let `super` = Modifier(rawValue: 1 << 3)
84 | public static let command = Modifier.super
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:83:27: warning: static property 'super' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
81 | public static let control = Modifier(rawValue: 1 << 1)
82 | public static let alt = Modifier(rawValue: 1 << 2)
83 | public static let `super` = Modifier(rawValue: 1 << 3)
| |- warning: static property 'super' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'super' 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
84 | public static let command = Modifier.super
85 | public static let win = Modifier.super
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:84:27: warning: static property 'command' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
82 | public static let alt = Modifier(rawValue: 1 << 2)
83 | public static let `super` = Modifier(rawValue: 1 << 3)
84 | public static let command = Modifier.super
| |- warning: static property 'command' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'command' 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
85 | public static let win = Modifier.super
86 | public static let capsLock = Modifier(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:85:27: warning: static property 'win' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
83 | public static let `super` = Modifier(rawValue: 1 << 3)
84 | public static let command = Modifier.super
85 | public static let win = Modifier.super
| |- warning: static property 'win' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'win' 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
86 | public static let capsLock = Modifier(rawValue: 1 << 4)
87 | public static let numLock = Modifier(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:86:27: warning: static property 'capsLock' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
84 | public static let command = Modifier.super
85 | public static let win = Modifier.super
86 | public static let capsLock = Modifier(rawValue: 1 << 4)
| |- warning: static property 'capsLock' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'capsLock' 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
87 | public static let numLock = Modifier(rawValue: 1 << 5)
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:87:27: warning: static property 'numLock' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
85 | public static let win = Modifier.super
86 | public static let capsLock = Modifier(rawValue: 1 << 4)
87 | public static let numLock = Modifier(rawValue: 1 << 5)
| |- warning: static property 'numLock' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'numLock' 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
88 | }
89 | }
[8/26] Compiling GLFW Keyboard.swift
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:80:27: warning: static property 'shift' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
78 | }
79 |
80 | public static let shift = Modifier(rawValue: 1 << 0)
| |- warning: static property 'shift' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shift' 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
81 | public static let control = Modifier(rawValue: 1 << 1)
82 | public static let alt = Modifier(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:81:27: warning: static property 'control' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
79 |
80 | public static let shift = Modifier(rawValue: 1 << 0)
81 | public static let control = Modifier(rawValue: 1 << 1)
| |- warning: static property 'control' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'control' 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
82 | public static let alt = Modifier(rawValue: 1 << 2)
83 | public static let `super` = Modifier(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:82:27: warning: static property 'alt' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
80 | public static let shift = Modifier(rawValue: 1 << 0)
81 | public static let control = Modifier(rawValue: 1 << 1)
82 | public static let alt = Modifier(rawValue: 1 << 2)
| |- warning: static property 'alt' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'alt' 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
83 | public static let `super` = Modifier(rawValue: 1 << 3)
84 | public static let command = Modifier.super
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:83:27: warning: static property 'super' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
81 | public static let control = Modifier(rawValue: 1 << 1)
82 | public static let alt = Modifier(rawValue: 1 << 2)
83 | public static let `super` = Modifier(rawValue: 1 << 3)
| |- warning: static property 'super' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'super' 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
84 | public static let command = Modifier.super
85 | public static let win = Modifier.super
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:84:27: warning: static property 'command' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
82 | public static let alt = Modifier(rawValue: 1 << 2)
83 | public static let `super` = Modifier(rawValue: 1 << 3)
84 | public static let command = Modifier.super
| |- warning: static property 'command' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'command' 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
85 | public static let win = Modifier.super
86 | public static let capsLock = Modifier(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:85:27: warning: static property 'win' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
83 | public static let `super` = Modifier(rawValue: 1 << 3)
84 | public static let command = Modifier.super
85 | public static let win = Modifier.super
| |- warning: static property 'win' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'win' 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
86 | public static let capsLock = Modifier(rawValue: 1 << 4)
87 | public static let numLock = Modifier(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:86:27: warning: static property 'capsLock' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
84 | public static let command = Modifier.super
85 | public static let win = Modifier.super
86 | public static let capsLock = Modifier(rawValue: 1 << 4)
| |- warning: static property 'capsLock' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'capsLock' 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
87 | public static let numLock = Modifier(rawValue: 1 << 5)
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:87:27: warning: static property 'numLock' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
85 | public static let win = Modifier.super
86 | public static let capsLock = Modifier(rawValue: 1 << 4)
87 | public static let numLock = Modifier(rawValue: 1 << 5)
| |- warning: static property 'numLock' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'numLock' 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
88 | }
89 | }
[9/28] Compiling GLFW ContentScale.swift
[10/28] Compiling GLFW Frame.swift
[11/28] Compiling GLFW Point.swift
[12/28] Compiling GLFW Size.swift
[13/28] Compiling GLFW Constants.swift
[14/28] Compiling GLFW Error.swift
[15/28] Compiling GLFW Extensions.swift
[16/28] Compiling GLFW Windows.swift
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Native Extensions/macOS.swift:15:36: warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
13 | extension GLFWMonitor {
14 | nonisolated public var directDisplayID: CGDirectDisplayID {
15 | return glfwGetCocoaMonitor(pointer)
| `- warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | }
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Monitor/Monitor.swift:5:16: note: property declared here
3 | @MainActor
4 | public final class GLFWMonitor: GLFWObject {
5 | public let pointer: OpaquePointer?
| `- note: property declared here
6 |
7 | public var connectionHandler: (() -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Native Extensions/macOS.swift:21:35: warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
19 | extension GLFWWindow {
20 | nonisolated public var nsWindow: NSWindow? {
21 | return glfwGetCocoaWindow(pointer) as? NSWindow
| `- warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | }
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Window.swift:5:16: note: property declared here
3 | @MainActor
4 | public final class GLFWWindow: GLFWObject {
5 | public let pointer: OpaquePointer?
| `- note: property declared here
6 |
7 | public static var hints = Hints()
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Native Extensions/macOS.swift:80:35: warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
78 | @available(macOS, deprecated: 10.14, message: "Please use Metal or MetalKit.")
79 | nonisolated public var nsOpenGLContext: NSOpenGLContext? {
80 | return glfwGetNSGLContext(pointer) as? NSOpenGLContext
| `- warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
81 | }
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Context.swift:5:16: note: property declared here
3 | @MainActor
4 | public final class GLFWContext: GLFWObject {
5 | public let pointer: OpaquePointer?
| `- note: property declared here
6 |
7 | nonisolated init(_ pointer: OpaquePointer?) {
[17/28] Compiling GLFW macOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Native Extensions/macOS.swift:15:36: warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
13 | extension GLFWMonitor {
14 | nonisolated public var directDisplayID: CGDirectDisplayID {
15 | return glfwGetCocoaMonitor(pointer)
| `- warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | }
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Monitor/Monitor.swift:5:16: note: property declared here
3 | @MainActor
4 | public final class GLFWMonitor: GLFWObject {
5 | public let pointer: OpaquePointer?
| `- note: property declared here
6 |
7 | public var connectionHandler: (() -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Native Extensions/macOS.swift:21:35: warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
19 | extension GLFWWindow {
20 | nonisolated public var nsWindow: NSWindow? {
21 | return glfwGetCocoaWindow(pointer) as? NSWindow
| `- warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | }
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Window.swift:5:16: note: property declared here
3 | @MainActor
4 | public final class GLFWWindow: GLFWObject {
5 | public let pointer: OpaquePointer?
| `- note: property declared here
6 |
7 | public static var hints = Hints()
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Native Extensions/macOS.swift:80:35: warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
78 | @available(macOS, deprecated: 10.14, message: "Please use Metal or MetalKit.")
79 | nonisolated public var nsOpenGLContext: NSOpenGLContext? {
80 | return glfwGetNSGLContext(pointer) as? NSOpenGLContext
| `- warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
81 | }
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Context.swift:5:16: note: property declared here
3 | @MainActor
4 | public final class GLFWContext: GLFWObject {
5 | public let pointer: OpaquePointer?
| `- note: property declared here
6 |
7 | nonisolated init(_ pointer: OpaquePointer?) {
[18/28] Compiling GLFW ObjectProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Native Extensions/macOS.swift:15:36: warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
13 | extension GLFWMonitor {
14 | nonisolated public var directDisplayID: CGDirectDisplayID {
15 | return glfwGetCocoaMonitor(pointer)
| `- warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | }
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Monitor/Monitor.swift:5:16: note: property declared here
3 | @MainActor
4 | public final class GLFWMonitor: GLFWObject {
5 | public let pointer: OpaquePointer?
| `- note: property declared here
6 |
7 | public var connectionHandler: (() -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Native Extensions/macOS.swift:21:35: warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
19 | extension GLFWWindow {
20 | nonisolated public var nsWindow: NSWindow? {
21 | return glfwGetCocoaWindow(pointer) as? NSWindow
| `- warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | }
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Window.swift:5:16: note: property declared here
3 | @MainActor
4 | public final class GLFWWindow: GLFWObject {
5 | public let pointer: OpaquePointer?
| `- note: property declared here
6 |
7 | public static var hints = Hints()
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Native Extensions/macOS.swift:80:35: warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
78 | @available(macOS, deprecated: 10.14, message: "Please use Metal or MetalKit.")
79 | nonisolated public var nsOpenGLContext: NSOpenGLContext? {
80 | return glfwGetNSGLContext(pointer) as? NSOpenGLContext
| `- warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
81 | }
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Context.swift:5:16: note: property declared here
3 | @MainActor
4 | public final class GLFWContext: GLFWObject {
5 | public let pointer: OpaquePointer?
| `- note: property declared here
6 |
7 | nonisolated init(_ pointer: OpaquePointer?) {
[19/28] Compiling GLFW Context.swift
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Context.swift:5:16: warning: main actor-isolated property 'pointer' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
2 |
3 | @MainActor
4 | public final class GLFWContext: GLFWObject {
| `- note: add '@preconcurrency' to the 'GLFWObject' conformance to defer isolation checking to run time
5 | public let pointer: OpaquePointer?
| `- warning: main actor-isolated property 'pointer' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
6 |
7 | nonisolated init(_ pointer: OpaquePointer?) {
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/ObjectProtocol.swift:4:9: note: 'pointer' declared here
2 |
3 | public protocol GLFWObject: Equatable {
4 | var pointer: OpaquePointer? { get }
| `- note: 'pointer' declared here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Context.swift:8:14: warning: main actor-isolated property 'pointer' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
3 | @MainActor
4 | public final class GLFWContext: GLFWObject {
5 | public let pointer: OpaquePointer?
| `- note: mutation of this property is only permitted within the actor
6 |
7 | nonisolated init(_ pointer: OpaquePointer?) {
8 | self.pointer = pointer
| `- warning: main actor-isolated property 'pointer' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
9 | }
10 |
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Context.swift:16:32: warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
3 | @MainActor
4 | public final class GLFWContext: GLFWObject {
5 | public let pointer: OpaquePointer?
| `- note: property declared here
6 |
7 | nonisolated init(_ pointer: OpaquePointer?) {
:
14 |
15 | nonisolated public func makeCurrent() {
16 | glfwMakeContextCurrent(pointer)
| `- warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
17 | }
18 |
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Context.swift:67:21: warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
65 | extension GLFWWindow {
66 | nonisolated public var context: GLFWContext {
67 | GLFWContext(pointer)
| `- warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Window.swift:5:16: note: property declared here
3 | @MainActor
4 | public final class GLFWWindow: GLFWObject {
5 | public let pointer: OpaquePointer?
| `- note: property declared here
6 |
7 | public static var hints = Hints()
[20/28] Compiling GLFW Hints.swift
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Context.swift:5:16: warning: main actor-isolated property 'pointer' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
2 |
3 | @MainActor
4 | public final class GLFWContext: GLFWObject {
| `- note: add '@preconcurrency' to the 'GLFWObject' conformance to defer isolation checking to run time
5 | public let pointer: OpaquePointer?
| `- warning: main actor-isolated property 'pointer' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
6 |
7 | nonisolated init(_ pointer: OpaquePointer?) {
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/ObjectProtocol.swift:4:9: note: 'pointer' declared here
2 |
3 | public protocol GLFWObject: Equatable {
4 | var pointer: OpaquePointer? { get }
| `- note: 'pointer' declared here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Context.swift:8:14: warning: main actor-isolated property 'pointer' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
3 | @MainActor
4 | public final class GLFWContext: GLFWObject {
5 | public let pointer: OpaquePointer?
| `- note: mutation of this property is only permitted within the actor
6 |
7 | nonisolated init(_ pointer: OpaquePointer?) {
8 | self.pointer = pointer
| `- warning: main actor-isolated property 'pointer' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
9 | }
10 |
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Context.swift:16:32: warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
3 | @MainActor
4 | public final class GLFWContext: GLFWObject {
5 | public let pointer: OpaquePointer?
| `- note: property declared here
6 |
7 | nonisolated init(_ pointer: OpaquePointer?) {
:
14 |
15 | nonisolated public func makeCurrent() {
16 | glfwMakeContextCurrent(pointer)
| `- warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
17 | }
18 |
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Context.swift:67:21: warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
65 | extension GLFWWindow {
66 | nonisolated public var context: GLFWContext {
67 | GLFWContext(pointer)
| `- warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Window.swift:5:16: note: property declared here
3 | @MainActor
4 | public final class GLFWWindow: GLFWObject {
5 | public let pointer: OpaquePointer?
| `- note: property declared here
6 |
7 | public static var hints = Hints()
[21/28] Compiling GLFW Session.swift
[22/28] Compiling GLFW Color.swift
[23/28] Compiling GLFW Mouse.swift
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Mouse.swift:30:27: warning: static property 'left' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public enum Button: Int32 {
| `- note: consider making enum 'Button' conform to the 'Sendable' protocol
29 | case button1, button2, button3, button4, button5, button6, button7, button8
30 | public static let left = button1
| |- warning: static property 'left' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'left' 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 | public static let right = button2
32 | public static let middle = button3
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Mouse.swift:31:27: warning: static property 'right' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public enum Button: Int32 {
| `- note: consider making enum 'Button' conform to the 'Sendable' protocol
29 | case button1, button2, button3, button4, button5, button6, button7, button8
30 | public static let left = button1
31 | public static let right = button2
| |- warning: static property 'right' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'right' 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
32 | public static let middle = button3
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Mouse.swift:32:27: warning: static property 'middle' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public enum Button: Int32 {
| `- note: consider making enum 'Button' conform to the 'Sendable' protocol
29 | case button1, button2, button3, button4, button5, button6, button7, button8
30 | public static let left = button1
31 | public static let right = button2
32 | public static let middle = button3
| |- warning: static property 'middle' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'middle' 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/GLFW/Monitor/Monitor.swift:5:16: warning: main actor-isolated property 'pointer' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
2 |
3 | @MainActor
4 | public final class GLFWMonitor: GLFWObject {
| `- note: add '@preconcurrency' to the 'GLFWObject' conformance to defer isolation checking to run time
5 | public let pointer: OpaquePointer?
| `- warning: main actor-isolated property 'pointer' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
6 |
7 | public var connectionHandler: (() -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/ObjectProtocol.swift:4:9: note: 'pointer' declared here
2 |
3 | public protocol GLFWObject: Equatable {
4 | var pointer: OpaquePointer? { get }
| `- note: 'pointer' declared here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Monitor/Monitor.swift:128:17: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
126 | set {
127 | let red = UnsafeMutablePointer<CUnsignedShort>.allocate(capacity: newValue.stops.count)
128 | red.assign(from: newValue.red, count: newValue.stops.count)
| |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
| `- note: use 'update(from:count:)' instead
129 | let green = UnsafeMutablePointer<CUnsignedShort>.allocate(capacity: newValue.stops.count)
130 | green.assign(from: newValue.green, count: newValue.stops.count)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Monitor/Monitor.swift:130:19: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
128 | red.assign(from: newValue.red, count: newValue.stops.count)
129 | let green = UnsafeMutablePointer<CUnsignedShort>.allocate(capacity: newValue.stops.count)
130 | green.assign(from: newValue.green, count: newValue.stops.count)
| |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
| `- note: use 'update(from:count:)' instead
131 | let blue = UnsafeMutablePointer<CUnsignedShort>.allocate(capacity: newValue.stops.count)
132 | blue.assign(from: newValue.blue, count: newValue.stops.count)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Monitor/Monitor.swift:132:18: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
130 | green.assign(from: newValue.green, count: newValue.stops.count)
131 | let blue = UnsafeMutablePointer<CUnsignedShort>.allocate(capacity: newValue.stops.count)
132 | blue.assign(from: newValue.blue, count: newValue.stops.count)
| |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
| `- note: use 'update(from:count:)' instead
133 | var ramp = GLFWgammaramp(red: red, green: green, blue: blue, size: newValue.size)
134 | glfwSetGammaRamp(pointer, &ramp)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Monitor/Monitor.swift:36:35: warning: cannot access property 'pointer' with a non-sendable type 'OpaquePointer?' from nonisolated deinit; this is an error in the Swift 6 language mode
34 | deinit {
35 | glfwSetMonitorCallback(nil)
36 | glfwSetMonitorUserPointer(pointer, nil)
| `- warning: cannot access property 'pointer' with a non-sendable type 'OpaquePointer?' from nonisolated deinit; this is an error in the Swift 6 language mode
37 | }
38 |
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
[24/28] Compiling GLFW Monitor.swift
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Mouse.swift:30:27: warning: static property 'left' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public enum Button: Int32 {
| `- note: consider making enum 'Button' conform to the 'Sendable' protocol
29 | case button1, button2, button3, button4, button5, button6, button7, button8
30 | public static let left = button1
| |- warning: static property 'left' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'left' 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 | public static let right = button2
32 | public static let middle = button3
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Mouse.swift:31:27: warning: static property 'right' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public enum Button: Int32 {
| `- note: consider making enum 'Button' conform to the 'Sendable' protocol
29 | case button1, button2, button3, button4, button5, button6, button7, button8
30 | public static let left = button1
31 | public static let right = button2
| |- warning: static property 'right' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'right' 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
32 | public static let middle = button3
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Mouse.swift:32:27: warning: static property 'middle' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public enum Button: Int32 {
| `- note: consider making enum 'Button' conform to the 'Sendable' protocol
29 | case button1, button2, button3, button4, button5, button6, button7, button8
30 | public static let left = button1
31 | public static let right = button2
32 | public static let middle = button3
| |- warning: static property 'middle' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'middle' 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/GLFW/Monitor/Monitor.swift:5:16: warning: main actor-isolated property 'pointer' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
2 |
3 | @MainActor
4 | public final class GLFWMonitor: GLFWObject {
| `- note: add '@preconcurrency' to the 'GLFWObject' conformance to defer isolation checking to run time
5 | public let pointer: OpaquePointer?
| `- warning: main actor-isolated property 'pointer' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
6 |
7 | public var connectionHandler: (() -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/ObjectProtocol.swift:4:9: note: 'pointer' declared here
2 |
3 | public protocol GLFWObject: Equatable {
4 | var pointer: OpaquePointer? { get }
| `- note: 'pointer' declared here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Monitor/Monitor.swift:128:17: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
126 | set {
127 | let red = UnsafeMutablePointer<CUnsignedShort>.allocate(capacity: newValue.stops.count)
128 | red.assign(from: newValue.red, count: newValue.stops.count)
| |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
| `- note: use 'update(from:count:)' instead
129 | let green = UnsafeMutablePointer<CUnsignedShort>.allocate(capacity: newValue.stops.count)
130 | green.assign(from: newValue.green, count: newValue.stops.count)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Monitor/Monitor.swift:130:19: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
128 | red.assign(from: newValue.red, count: newValue.stops.count)
129 | let green = UnsafeMutablePointer<CUnsignedShort>.allocate(capacity: newValue.stops.count)
130 | green.assign(from: newValue.green, count: newValue.stops.count)
| |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
| `- note: use 'update(from:count:)' instead
131 | let blue = UnsafeMutablePointer<CUnsignedShort>.allocate(capacity: newValue.stops.count)
132 | blue.assign(from: newValue.blue, count: newValue.stops.count)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Monitor/Monitor.swift:132:18: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
130 | green.assign(from: newValue.green, count: newValue.stops.count)
131 | let blue = UnsafeMutablePointer<CUnsignedShort>.allocate(capacity: newValue.stops.count)
132 | blue.assign(from: newValue.blue, count: newValue.stops.count)
| |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
| `- note: use 'update(from:count:)' instead
133 | var ramp = GLFWgammaramp(red: red, green: green, blue: blue, size: newValue.size)
134 | glfwSetGammaRamp(pointer, &ramp)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Monitor/Monitor.swift:36:35: warning: cannot access property 'pointer' with a non-sendable type 'OpaquePointer?' from nonisolated deinit; this is an error in the Swift 6 language mode
34 | deinit {
35 | glfwSetMonitorCallback(nil)
36 | glfwSetMonitorUserPointer(pointer, nil)
| `- warning: cannot access property 'pointer' with a non-sendable type 'OpaquePointer?' from nonisolated deinit; this is an error in the Swift 6 language mode
37 | }
38 |
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
[25/28] Compiling GLFW Linux.swift
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Mouse.swift:30:27: warning: static property 'left' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public enum Button: Int32 {
| `- note: consider making enum 'Button' conform to the 'Sendable' protocol
29 | case button1, button2, button3, button4, button5, button6, button7, button8
30 | public static let left = button1
| |- warning: static property 'left' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'left' 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 | public static let right = button2
32 | public static let middle = button3
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Mouse.swift:31:27: warning: static property 'right' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public enum Button: Int32 {
| `- note: consider making enum 'Button' conform to the 'Sendable' protocol
29 | case button1, button2, button3, button4, button5, button6, button7, button8
30 | public static let left = button1
31 | public static let right = button2
| |- warning: static property 'right' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'right' 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
32 | public static let middle = button3
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Mouse.swift:32:27: warning: static property 'middle' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public enum Button: Int32 {
| `- note: consider making enum 'Button' conform to the 'Sendable' protocol
29 | case button1, button2, button3, button4, button5, button6, button7, button8
30 | public static let left = button1
31 | public static let right = button2
32 | public static let middle = button3
| |- warning: static property 'middle' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'middle' 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/GLFW/Monitor/Monitor.swift:5:16: warning: main actor-isolated property 'pointer' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
2 |
3 | @MainActor
4 | public final class GLFWMonitor: GLFWObject {
| `- note: add '@preconcurrency' to the 'GLFWObject' conformance to defer isolation checking to run time
5 | public let pointer: OpaquePointer?
| `- warning: main actor-isolated property 'pointer' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
6 |
7 | public var connectionHandler: (() -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/ObjectProtocol.swift:4:9: note: 'pointer' declared here
2 |
3 | public protocol GLFWObject: Equatable {
4 | var pointer: OpaquePointer? { get }
| `- note: 'pointer' declared here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Monitor/Monitor.swift:128:17: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
126 | set {
127 | let red = UnsafeMutablePointer<CUnsignedShort>.allocate(capacity: newValue.stops.count)
128 | red.assign(from: newValue.red, count: newValue.stops.count)
| |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
| `- note: use 'update(from:count:)' instead
129 | let green = UnsafeMutablePointer<CUnsignedShort>.allocate(capacity: newValue.stops.count)
130 | green.assign(from: newValue.green, count: newValue.stops.count)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Monitor/Monitor.swift:130:19: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
128 | red.assign(from: newValue.red, count: newValue.stops.count)
129 | let green = UnsafeMutablePointer<CUnsignedShort>.allocate(capacity: newValue.stops.count)
130 | green.assign(from: newValue.green, count: newValue.stops.count)
| |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
| `- note: use 'update(from:count:)' instead
131 | let blue = UnsafeMutablePointer<CUnsignedShort>.allocate(capacity: newValue.stops.count)
132 | blue.assign(from: newValue.blue, count: newValue.stops.count)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Monitor/Monitor.swift:132:18: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
130 | green.assign(from: newValue.green, count: newValue.stops.count)
131 | let blue = UnsafeMutablePointer<CUnsignedShort>.allocate(capacity: newValue.stops.count)
132 | blue.assign(from: newValue.blue, count: newValue.stops.count)
| |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
| `- note: use 'update(from:count:)' instead
133 | var ramp = GLFWgammaramp(red: red, green: green, blue: blue, size: newValue.size)
134 | glfwSetGammaRamp(pointer, &ramp)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Monitor/Monitor.swift:36:35: warning: cannot access property 'pointer' with a non-sendable type 'OpaquePointer?' from nonisolated deinit; this is an error in the Swift 6 language mode
34 | deinit {
35 | glfwSetMonitorCallback(nil)
36 | glfwSetMonitorUserPointer(pointer, nil)
| `- warning: cannot access property 'pointer' with a non-sendable type 'OpaquePointer?' from nonisolated deinit; this is an error in the Swift 6 language mode
37 | }
38 |
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
[26/28] Emitting module GLFW
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:80:27: warning: static property 'shift' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
78 | }
79 |
80 | public static let shift = Modifier(rawValue: 1 << 0)
| |- warning: static property 'shift' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shift' 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
81 | public static let control = Modifier(rawValue: 1 << 1)
82 | public static let alt = Modifier(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:81:27: warning: static property 'control' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
79 |
80 | public static let shift = Modifier(rawValue: 1 << 0)
81 | public static let control = Modifier(rawValue: 1 << 1)
| |- warning: static property 'control' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'control' 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
82 | public static let alt = Modifier(rawValue: 1 << 2)
83 | public static let `super` = Modifier(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:82:27: warning: static property 'alt' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
80 | public static let shift = Modifier(rawValue: 1 << 0)
81 | public static let control = Modifier(rawValue: 1 << 1)
82 | public static let alt = Modifier(rawValue: 1 << 2)
| |- warning: static property 'alt' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'alt' 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
83 | public static let `super` = Modifier(rawValue: 1 << 3)
84 | public static let command = Modifier.super
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:83:27: warning: static property 'super' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
81 | public static let control = Modifier(rawValue: 1 << 1)
82 | public static let alt = Modifier(rawValue: 1 << 2)
83 | public static let `super` = Modifier(rawValue: 1 << 3)
| |- warning: static property 'super' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'super' 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
84 | public static let command = Modifier.super
85 | public static let win = Modifier.super
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:84:27: warning: static property 'command' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
82 | public static let alt = Modifier(rawValue: 1 << 2)
83 | public static let `super` = Modifier(rawValue: 1 << 3)
84 | public static let command = Modifier.super
| |- warning: static property 'command' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'command' 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
85 | public static let win = Modifier.super
86 | public static let capsLock = Modifier(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:85:27: warning: static property 'win' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
83 | public static let `super` = Modifier(rawValue: 1 << 3)
84 | public static let command = Modifier.super
85 | public static let win = Modifier.super
| |- warning: static property 'win' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'win' 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
86 | public static let capsLock = Modifier(rawValue: 1 << 4)
87 | public static let numLock = Modifier(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:86:27: warning: static property 'capsLock' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
84 | public static let command = Modifier.super
85 | public static let win = Modifier.super
86 | public static let capsLock = Modifier(rawValue: 1 << 4)
| |- warning: static property 'capsLock' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'capsLock' 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
87 | public static let numLock = Modifier(rawValue: 1 << 5)
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Keyboard.swift:87:27: warning: static property 'numLock' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public struct Modifier: OptionSet {
| `- note: consider making struct 'Modifier' conform to the 'Sendable' protocol
75 | public let rawValue: Int32
76 | public init(rawValue: Int32) {
:
85 | public static let win = Modifier.super
86 | public static let capsLock = Modifier(rawValue: 1 << 4)
87 | public static let numLock = Modifier(rawValue: 1 << 5)
| |- warning: static property 'numLock' is not concurrency-safe because non-'Sendable' type 'Keyboard.Modifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'numLock' 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
88 | }
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Mouse.swift:30:27: warning: static property 'left' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public enum Button: Int32 {
| `- note: consider making enum 'Button' conform to the 'Sendable' protocol
29 | case button1, button2, button3, button4, button5, button6, button7, button8
30 | public static let left = button1
| |- warning: static property 'left' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'left' 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 | public static let right = button2
32 | public static let middle = button3
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Mouse.swift:31:27: warning: static property 'right' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public enum Button: Int32 {
| `- note: consider making enum 'Button' conform to the 'Sendable' protocol
29 | case button1, button2, button3, button4, button5, button6, button7, button8
30 | public static let left = button1
31 | public static let right = button2
| |- warning: static property 'right' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'right' 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
32 | public static let middle = button3
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Mouse.swift:32:27: warning: static property 'middle' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public enum Button: Int32 {
| `- note: consider making enum 'Button' conform to the 'Sendable' protocol
29 | case button1, button2, button3, button4, button5, button6, button7, button8
30 | public static let left = button1
31 | public static let right = button2
32 | public static let middle = button3
| |- warning: static property 'middle' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'middle' 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/GLFW/Monitor/Monitor.swift:5:16: warning: main actor-isolated property 'pointer' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
2 |
3 | @MainActor
4 | public final class GLFWMonitor: GLFWObject {
| `- note: add '@preconcurrency' to the 'GLFWObject' conformance to defer isolation checking to run time
5 | public let pointer: OpaquePointer?
| `- warning: main actor-isolated property 'pointer' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
6 |
7 | public var connectionHandler: (() -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/ObjectProtocol.swift:4:9: note: 'pointer' declared here
2 |
3 | public protocol GLFWObject: Equatable {
4 | var pointer: OpaquePointer? { get }
| `- note: 'pointer' declared here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Context.swift:5:16: warning: main actor-isolated property 'pointer' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
2 |
3 | @MainActor
4 | public final class GLFWContext: GLFWObject {
| `- note: add '@preconcurrency' to the 'GLFWObject' conformance to defer isolation checking to run time
5 | public let pointer: OpaquePointer?
| `- warning: main actor-isolated property 'pointer' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
6 |
7 | nonisolated init(_ pointer: OpaquePointer?) {
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/ObjectProtocol.swift:4:9: note: 'pointer' declared here
2 |
3 | public protocol GLFWObject: Equatable {
4 | var pointer: OpaquePointer? { get }
| `- note: 'pointer' declared here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Window.swift:5:16: warning: main actor-isolated property 'pointer' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
2 |
3 | @MainActor
4 | public final class GLFWWindow: GLFWObject {
| `- note: add '@preconcurrency' to the 'GLFWObject' conformance to defer isolation checking to run time
5 | public let pointer: OpaquePointer?
| `- warning: main actor-isolated property 'pointer' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
6 |
7 | public static var hints = Hints()
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/ObjectProtocol.swift:4:9: note: 'pointer' declared here
2 |
3 | public protocol GLFWObject: Equatable {
4 | var pointer: OpaquePointer? { get }
| `- note: 'pointer' declared here
5 | }
6 |
[27/28] Compiling GLFW Window.swift
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Window.swift:5:16: warning: main actor-isolated property 'pointer' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
2 |
3 | @MainActor
4 | public final class GLFWWindow: GLFWObject {
| `- note: add '@preconcurrency' to the 'GLFWObject' conformance to defer isolation checking to run time
5 | public let pointer: OpaquePointer?
| `- warning: main actor-isolated property 'pointer' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
6 |
7 | public static var hints = Hints()
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/ObjectProtocol.swift:4:9: note: 'pointer' declared here
2 |
3 | public protocol GLFWObject: Equatable {
4 | var pointer: OpaquePointer? { get }
| `- note: 'pointer' declared here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Window.swift:81:42: warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
3 | @MainActor
4 | public final class GLFWWindow: GLFWObject {
5 | public let pointer: OpaquePointer?
| `- note: property declared here
6 |
7 | public static var hints = Hints()
:
79 |
80 | nonisolated public var shouldClose: Bool {
81 | get { Bool(glfwWindowShouldClose(pointer)) }
| `- warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
82 | set { glfwSetWindowShouldClose(pointer, newValue.int32) }
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Window.swift:82:40: warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
3 | @MainActor
4 | public final class GLFWWindow: GLFWObject {
5 | public let pointer: OpaquePointer?
| `- note: property declared here
6 |
7 | public static var hints = Hints()
:
80 | nonisolated public var shouldClose: Bool {
81 | get { Bool(glfwWindowShouldClose(pointer)) }
82 | set { glfwSetWindowShouldClose(pointer, newValue.int32) }
| `- warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
83 | }
84 |
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Window.swift:130:25: warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
3 | @MainActor
4 | public final class GLFWWindow: GLFWObject {
5 | public let pointer: OpaquePointer?
| `- note: property declared here
6 |
7 | public static var hints = Hints()
:
128 |
129 | nonisolated public func swapBuffers() {
130 | glfwSwapBuffers(pointer)
| `- warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
131 | }
132 |
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Mouse.swift:30:27: warning: static property 'left' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public enum Button: Int32 {
| `- note: consider making enum 'Button' conform to the 'Sendable' protocol
29 | case button1, button2, button3, button4, button5, button6, button7, button8
30 | public static let left = button1
| |- warning: static property 'left' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'left' 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 | public static let right = button2
32 | public static let middle = button3
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Window.swift:275:34: warning: cannot access property 'pointer' with a non-sendable type 'OpaquePointer?' from nonisolated deinit; this is an error in the Swift 6 language mode
273 |
274 | deinit {
275 | glfwSetWindowUserPointer(pointer, nil)
| `- warning: cannot access property 'pointer' with a non-sendable type 'OpaquePointer?' from nonisolated deinit; this is an error in the Swift 6 language mode
276 | glfwDestroyWindow(pointer)
277 | glfwDestroyCursor(cursorPtr)
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Window.swift:276:27: warning: cannot access property 'pointer' with a non-sendable type 'OpaquePointer?' from nonisolated deinit; this is an error in the Swift 6 language mode
274 | deinit {
275 | glfwSetWindowUserPointer(pointer, nil)
276 | glfwDestroyWindow(pointer)
| `- warning: cannot access property 'pointer' with a non-sendable type 'OpaquePointer?' from nonisolated deinit; this is an error in the Swift 6 language mode
277 | glfwDestroyCursor(cursorPtr)
278 | }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Window.swift:277:27: warning: cannot access property 'cursorPtr' with a non-sendable type 'OpaquePointer?' from nonisolated deinit; this is an error in the Swift 6 language mode
275 | glfwSetWindowUserPointer(pointer, nil)
276 | glfwDestroyWindow(pointer)
277 | glfwDestroyCursor(cursorPtr)
| `- warning: cannot access property 'cursorPtr' with a non-sendable type 'OpaquePointer?' from nonisolated deinit; this is an error in the Swift 6 language mode
278 | }
279 |
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
[28/28] Compiling GLFW WindowAttributes.swift
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Window.swift:5:16: warning: main actor-isolated property 'pointer' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
2 |
3 | @MainActor
4 | public final class GLFWWindow: GLFWObject {
| `- note: add '@preconcurrency' to the 'GLFWObject' conformance to defer isolation checking to run time
5 | public let pointer: OpaquePointer?
| `- warning: main actor-isolated property 'pointer' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
6 |
7 | public static var hints = Hints()
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/ObjectProtocol.swift:4:9: note: 'pointer' declared here
2 |
3 | public protocol GLFWObject: Equatable {
4 | var pointer: OpaquePointer? { get }
| `- note: 'pointer' declared here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Window.swift:81:42: warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
3 | @MainActor
4 | public final class GLFWWindow: GLFWObject {
5 | public let pointer: OpaquePointer?
| `- note: property declared here
6 |
7 | public static var hints = Hints()
:
79 |
80 | nonisolated public var shouldClose: Bool {
81 | get { Bool(glfwWindowShouldClose(pointer)) }
| `- warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
82 | set { glfwSetWindowShouldClose(pointer, newValue.int32) }
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Window.swift:82:40: warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
3 | @MainActor
4 | public final class GLFWWindow: GLFWObject {
5 | public let pointer: OpaquePointer?
| `- note: property declared here
6 |
7 | public static var hints = Hints()
:
80 | nonisolated public var shouldClose: Bool {
81 | get { Bool(glfwWindowShouldClose(pointer)) }
82 | set { glfwSetWindowShouldClose(pointer, newValue.int32) }
| `- warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
83 | }
84 |
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Window.swift:130:25: warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
3 | @MainActor
4 | public final class GLFWWindow: GLFWObject {
5 | public let pointer: OpaquePointer?
| `- note: property declared here
6 |
7 | public static var hints = Hints()
:
128 |
129 | nonisolated public func swapBuffers() {
130 | glfwSwapBuffers(pointer)
| `- warning: main actor-isolated property 'pointer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
131 | }
132 |
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Input/Mouse.swift:30:27: warning: static property 'left' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public enum Button: Int32 {
| `- note: consider making enum 'Button' conform to the 'Sendable' protocol
29 | case button1, button2, button3, button4, button5, button6, button7, button8
30 | public static let left = button1
| |- warning: static property 'left' is not concurrency-safe because non-'Sendable' type 'Mouse.Button' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'left' 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 | public static let right = button2
32 | public static let middle = button3
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Window.swift:275:34: warning: cannot access property 'pointer' with a non-sendable type 'OpaquePointer?' from nonisolated deinit; this is an error in the Swift 6 language mode
273 |
274 | deinit {
275 | glfwSetWindowUserPointer(pointer, nil)
| `- warning: cannot access property 'pointer' with a non-sendable type 'OpaquePointer?' from nonisolated deinit; this is an error in the Swift 6 language mode
276 | glfwDestroyWindow(pointer)
277 | glfwDestroyCursor(cursorPtr)
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Window.swift:276:27: warning: cannot access property 'pointer' with a non-sendable type 'OpaquePointer?' from nonisolated deinit; this is an error in the Swift 6 language mode
274 | deinit {
275 | glfwSetWindowUserPointer(pointer, nil)
276 | glfwDestroyWindow(pointer)
| `- warning: cannot access property 'pointer' with a non-sendable type 'OpaquePointer?' from nonisolated deinit; this is an error in the Swift 6 language mode
277 | glfwDestroyCursor(cursorPtr)
278 | }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/GLFW/Window/Window.swift:277:27: warning: cannot access property 'cursorPtr' with a non-sendable type 'OpaquePointer?' from nonisolated deinit; this is an error in the Swift 6 language mode
275 | glfwSetWindowUserPointer(pointer, nil)
276 | glfwDestroyWindow(pointer)
277 | glfwDestroyCursor(cursorPtr)
| `- warning: cannot access property 'cursorPtr' with a non-sendable type 'OpaquePointer?' from nonisolated deinit; this is an error in the Swift 6 language mode
278 | }
279 |
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
Build complete! (14.77s)
Build complete.
{
"dependencies" : [
{
"identity" : "cglfw3",
"requirement" : {
"branch" : [
"main"
]
},
"type" : "sourceControl",
"url" : "https://github.com/thepotatoking55/CGLFW3.git"
}
],
"manifest_display_name" : "SwiftGLFW",
"name" : "SwiftGLFW",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "SwiftGLFW",
"targets" : [
"GLFW"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "GLFWTests",
"module_type" : "SwiftTarget",
"name" : "GLFWTests",
"path" : "Tests/GLFWTests",
"sources" : [
"GLFWTests.swift"
],
"target_dependencies" : [
"GLFW"
],
"type" : "test"
},
{
"c99name" : "GLFW",
"module_type" : "SwiftTarget",
"name" : "GLFW",
"path" : "Sources/GLFW",
"product_dependencies" : [
"CGLFW3"
],
"product_memberships" : [
"SwiftGLFW"
],
"sources" : [
"Constants.swift",
"Error.swift",
"Extensions.swift",
"Input/ButtonState.swift",
"Input/Gamepad.swift",
"Input/Keyboard.swift",
"Input/Mouse.swift",
"Monitor/Monitor.swift",
"Native Extensions/Linux.swift",
"Native Extensions/Windows.swift",
"Native Extensions/macOS.swift",
"ObjectProtocol.swift",
"Session.swift",
"Structs/Color.swift",
"Structs/ContentScale.swift",
"Structs/Frame.swift",
"Structs/Image.swift",
"Structs/Margins.swift",
"Structs/Point.swift",
"Structs/Size.swift",
"Window/Context.swift",
"Window/Hints.swift",
"Window/Window.swift",
"Window/WindowAttributes.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.