Build Information
Failed to build SwiftCurses with Swift 6.0 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Jomy10/SwiftCurses.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Jomy10/SwiftCurses
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at e60acf3 added missing brackets
Cloned https://github.com/Jomy10/SwiftCurses.git
Revision (git rev-parse @):
e60acf30770fd3d5fef49c5f353c8bfb13981eff
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/Jomy10/SwiftCurses.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/Jomy10/SwiftCurses.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/7] Write sources
[2/7] Write Examples-entitlement.plist
[3/7] Write swift-version-6F35C1178C84523A.txt
[5/24] Compiling SwiftCurses keycode.swift
[6/24] Compiling SwiftCurses mouseEvent.swift
<unknown>:0: error: symbol 'swift_allMouseEvents' (swift_allMouseEvents) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_button1Clicked' (swift_button1Clicked) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_button1DoubleClicked' (swift_button1DoubleClicked) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_button1Pressed' (swift_button1Pressed) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_button1Released' (swift_button1Released) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_button1TripleClicked' (swift_button1TripleClicked) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_button2Clicked' (swift_button2Clicked) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_button2DoubleClicked' (swift_button2DoubleClicked) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_button2Pressed' (swift_button2Pressed) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_button2Released' (swift_button2Released) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_button2TripleClicked' (swift_button2TripleClicked) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_button3Clicked' (swift_button3Clicked) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_button3DoubleClicked' (swift_button3DoubleClicked) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_button3Pressed' (swift_button3Pressed) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_button3Released' (swift_button3Released) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_button3TripleClicked' (swift_button3TripleClicked) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_button4Clicked' (swift_button4Clicked) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_button4DoubleClicked' (swift_button4DoubleClicked) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_button4Pressed' (swift_button4Pressed) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_button4Released' (swift_button4Released) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_button4TripleClicked' (swift_button4TripleClicked) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_buttonAlt' (swift_buttonAlt) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_buttonCtrl' (swift_buttonCtrl) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_buttonShift' (swift_buttonShift) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_reportMousePosition' (swift_reportMousePosition) is in generated IR file, but not in TBD file
<unknown>:0: error: please submit a bug report (https://swift.org/contributing/#reporting-bugs), and add '-Xfrontend -validate-tbd-against-ir=none' to squash the errors
[7/25] Compiling SwiftCurses initScreen.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCurses/settings.swift:42:23: warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[TermSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
3 | // TODO: documentation > https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/init.html
4 | /// https://invisible-island.net/ncurses/man/curs_inopts.3x.html
5 | public enum TermSetting {
| `- note: consider making enum 'TermSetting' conform to the 'Sendable' protocol
6 | case cbreak
7 | case noCbreak
:
40 |
41 | extension TermSetting {
42 | public static let defaultSettings: [TermSetting] = [.cbreak, .noEcho, .colors]
| |- warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[TermSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSettings' 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
43 | }
44 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCurses/settings.swift:46:23: warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[WindowSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | /// https://invisible-island.net/ncurses/man/curs_inopts.3x.html
28 | public enum WindowSetting {
| `- note: consider making enum 'WindowSetting' conform to the 'Sendable' protocol
29 | /// If this option is enabled and an interrupt key is passed on the keyboard (interrupt, break, quit),
30 | /// all output in the tty driver queue will be flushed, giving the effect of faster response to the interrupt,
:
44 |
45 | extension WindowSetting {
46 | public static let defaultSettings: [WindowSetting] = [.keypad(true)]
| |- warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[WindowSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSettings' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | }
48 |
[8/25] Compiling SwiftCurses kernel.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCurses/settings.swift:42:23: warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[TermSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
3 | // TODO: documentation > https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/init.html
4 | /// https://invisible-island.net/ncurses/man/curs_inopts.3x.html
5 | public enum TermSetting {
| `- note: consider making enum 'TermSetting' conform to the 'Sendable' protocol
6 | case cbreak
7 | case noCbreak
:
40 |
41 | extension TermSetting {
42 | public static let defaultSettings: [TermSetting] = [.cbreak, .noEcho, .colors]
| |- warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[TermSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSettings' 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
43 | }
44 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCurses/settings.swift:46:23: warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[WindowSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | /// https://invisible-island.net/ncurses/man/curs_inopts.3x.html
28 | public enum WindowSetting {
| `- note: consider making enum 'WindowSetting' conform to the 'Sendable' protocol
29 | /// If this option is enabled and an interrupt key is passed on the keyboard (interrupt, break, quit),
30 | /// all output in the tty driver queue will be flushed, giving the effect of faster response to the interrupt,
:
44 |
45 | extension WindowSetting {
46 | public static let defaultSettings: [WindowSetting] = [.keypad(true)]
| |- warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[WindowSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSettings' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | }
48 |
[9/25] Compiling SwiftCurses Window+mouse.swift
[10/25] Compiling SwiftCurses Window+output.swift
[11/25] Compiling SwiftCurses color.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCurses/color.swift:32:32: warning: reference to var 'COLORS' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
30 | public static let canChangeColor: Bool = can_change_color()
31 |
32 | public static let maxColors = COLORS
| `- warning: reference to var 'COLORS' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | public static func forceXTerm256Color() {
Darwin.COLORS:1:12: note: var declared here
1 | public var COLORS: Int32
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCurses/color.swift:83:31: warning: reference to var 'COLOR_PAIRS' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
81 |
82 | public struct ColorPair {
83 | public static let maxPairs = COLOR_PAIRS
| `- warning: reference to var 'COLOR_PAIRS' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
84 |
85 | /// changes the definition of a color-pair
Darwin.COLOR_PAIRS:1:12: note: var declared here
1 | public var COLOR_PAIRS: Int32
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCurses/error.swift:48:13: warning: stored property 'kind' of 'Sendable'-conforming struct 'CursesError' has non-sendable type 'ErrorKind'; this is an error in the Swift 6 language mode
1 | public enum ErrorKind {
| `- note: consider making enum 'ErrorKind' conform to the 'Sendable' protocol
2 | case halfdelayParameterOutsideOfRange
3 | /// Window pointer is NULL
:
46 |
47 | public struct CursesError: Error & CustomDebugStringConvertible {
48 | public let kind: ErrorKind
| `- warning: stored property 'kind' of 'Sendable'-conforming struct 'CursesError' has non-sendable type 'ErrorKind'; this is an error in the Swift 6 language mode
49 | public let help: String?
50 |
[12/25] Compiling SwiftCurses error.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCurses/color.swift:32:32: warning: reference to var 'COLORS' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
30 | public static let canChangeColor: Bool = can_change_color()
31 |
32 | public static let maxColors = COLORS
| `- warning: reference to var 'COLORS' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | public static func forceXTerm256Color() {
Darwin.COLORS:1:12: note: var declared here
1 | public var COLORS: Int32
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCurses/color.swift:83:31: warning: reference to var 'COLOR_PAIRS' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
81 |
82 | public struct ColorPair {
83 | public static let maxPairs = COLOR_PAIRS
| `- warning: reference to var 'COLOR_PAIRS' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
84 |
85 | /// changes the definition of a color-pair
Darwin.COLOR_PAIRS:1:12: note: var declared here
1 | public var COLOR_PAIRS: Int32
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCurses/error.swift:48:13: warning: stored property 'kind' of 'Sendable'-conforming struct 'CursesError' has non-sendable type 'ErrorKind'; this is an error in the Swift 6 language mode
1 | public enum ErrorKind {
| `- note: consider making enum 'ErrorKind' conform to the 'Sendable' protocol
2 | case halfdelayParameterOutsideOfRange
3 | /// Window pointer is NULL
:
46 |
47 | public struct CursesError: Error & CustomDebugStringConvertible {
48 | public let kind: ErrorKind
| `- warning: stored property 'kind' of 'Sendable'-conforming struct 'CursesError' has non-sendable type 'ErrorKind'; this is an error in the Swift 6 language mode
49 | public let help: String?
50 |
[13/25] Compiling SwiftCurses Window+util.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCurses/settings.swift:46:23: warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[WindowSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | /// https://invisible-island.net/ncurses/man/curs_inopts.3x.html
28 | public enum WindowSetting {
| `- note: consider making enum 'WindowSetting' conform to the 'Sendable' protocol
29 | /// If this option is enabled and an interrupt key is passed on the keyboard (interrupt, break, quit),
30 | /// all output in the tty driver queue will be flushed, giving the effect of faster response to the interrupt,
:
44 |
45 | extension WindowSetting {
46 | public static let defaultSettings: [WindowSetting] = [.keypad(true)]
| |- warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[WindowSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSettings' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | }
48 |
[14/25] Compiling SwiftCurses Window.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCurses/settings.swift:46:23: warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[WindowSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | /// https://invisible-island.net/ncurses/man/curs_inopts.3x.html
28 | public enum WindowSetting {
| `- note: consider making enum 'WindowSetting' conform to the 'Sendable' protocol
29 | /// If this option is enabled and an interrupt key is passed on the keyboard (interrupt, break, quit),
30 | /// all output in the tty driver queue will be flushed, giving the effect of faster response to the interrupt,
:
44 |
45 | extension WindowSetting {
46 | public static let defaultSettings: [WindowSetting] = [.keypad(true)]
| |- warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[WindowSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSettings' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | }
48 |
[15/25] Compiling SwiftCurses Window+clear.swift
[16/25] Compiling SwiftCurses Window+controls.swift
[17/25] Compiling SwiftCurses Window+attributes.swift
<unknown>:0: error: symbol 'swift_A_ALTCHARSET' (swift_A_ALTCHARSET) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_A_BLINK' (swift_A_BLINK) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_A_BOLD' (swift_A_BOLD) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_A_CHARTEXT' (swift_A_CHARTEXT) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_A_DIM' (swift_A_DIM) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_A_INVIS' (swift_A_INVIS) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_A_ITALIC' (swift_A_ITALIC) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_A_NORMAL' (swift_A_NORMAL) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_A_PROTECT' (swift_A_PROTECT) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_A_REVERSE' (swift_A_REVERSE) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_A_STANDOUT' (swift_A_STANDOUT) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_A_UNDERLINE' (swift_A_UNDERLINE) is in generated IR file, but not in TBD file
<unknown>:0: error: please submit a bug report (https://swift.org/contributing/#reporting-bugs), and add '-Xfrontend -validate-tbd-against-ir=none' to squash the errors
[18/25] Compiling SwiftCurses Window+border.swift
<unknown>:0: error: symbol 'swift_A_ALTCHARSET' (swift_A_ALTCHARSET) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_A_BLINK' (swift_A_BLINK) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_A_BOLD' (swift_A_BOLD) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_A_CHARTEXT' (swift_A_CHARTEXT) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_A_DIM' (swift_A_DIM) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_A_INVIS' (swift_A_INVIS) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_A_ITALIC' (swift_A_ITALIC) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_A_NORMAL' (swift_A_NORMAL) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_A_PROTECT' (swift_A_PROTECT) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_A_REVERSE' (swift_A_REVERSE) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_A_STANDOUT' (swift_A_STANDOUT) is in generated IR file, but not in TBD file
<unknown>:0: error: symbol 'swift_A_UNDERLINE' (swift_A_UNDERLINE) is in generated IR file, but not in TBD file
<unknown>:0: error: please submit a bug report (https://swift.org/contributing/#reporting-bugs), and add '-Xfrontend -validate-tbd-against-ir=none' to squash the errors
[19/25] Compiling SwiftCurses settings.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCurses/settings.swift:42:23: warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[TermSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
3 | // TODO: documentation > https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/init.html
4 | /// https://invisible-island.net/ncurses/man/curs_inopts.3x.html
5 | public enum TermSetting {
| `- note: consider making enum 'TermSetting' conform to the 'Sendable' protocol
6 | case cbreak
7 | case noCbreak
:
40 |
41 | extension TermSetting {
42 | public static let defaultSettings: [TermSetting] = [.cbreak, .noEcho, .colors]
| |- warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[TermSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSettings' 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
43 | }
44 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCurses/settings.swift:46:23: warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[WindowSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | /// https://invisible-island.net/ncurses/man/curs_inopts.3x.html
28 | public enum WindowSetting {
| `- note: consider making enum 'WindowSetting' conform to the 'Sendable' protocol
29 | /// If this option is enabled and an interrupt key is passed on the keyboard (interrupt, break, quit),
30 | /// all output in the tty driver queue will be flushed, giving the effect of faster response to the interrupt,
:
44 |
45 | extension WindowSetting {
46 | public static let defaultSettings: [WindowSetting] = [.keypad(true)]
| |- warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[WindowSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSettings' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | }
48 |
[20/25] Compiling SwiftCurses Window+dump.swift
[21/25] Compiling SwiftCurses Window+input.swift
[22/25] Emitting module SwiftCurses
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCurses/settings.swift:46:23: warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[WindowSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | /// https://invisible-island.net/ncurses/man/curs_inopts.3x.html
28 | public enum WindowSetting {
| `- note: consider making enum 'WindowSetting' conform to the 'Sendable' protocol
29 | /// If this option is enabled and an interrupt key is passed on the keyboard (interrupt, break, quit),
30 | /// all output in the tty driver queue will be flushed, giving the effect of faster response to the interrupt,
:
44 |
45 | extension WindowSetting {
46 | public static let defaultSettings: [WindowSetting] = [.keypad(true)]
| |- warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[WindowSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSettings' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | }
48 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCurses/color.swift:32:32: warning: reference to var 'COLORS' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
30 | public static let canChangeColor: Bool = can_change_color()
31 |
32 | public static let maxColors = COLORS
| `- warning: reference to var 'COLORS' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | public static func forceXTerm256Color() {
Darwin.COLORS:1:12: note: var declared here
1 | public var COLORS: Int32
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCurses/color.swift:83:31: warning: reference to var 'COLOR_PAIRS' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
81 |
82 | public struct ColorPair {
83 | public static let maxPairs = COLOR_PAIRS
| `- warning: reference to var 'COLOR_PAIRS' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
84 |
85 | /// changes the definition of a color-pair
Darwin.COLOR_PAIRS:1:12: note: var declared here
1 | public var COLOR_PAIRS: Int32
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCurses/error.swift:48:13: warning: stored property 'kind' of 'Sendable'-conforming struct 'CursesError' has non-sendable type 'ErrorKind'; this is an error in the Swift 6 language mode
1 | public enum ErrorKind {
| `- note: consider making enum 'ErrorKind' conform to the 'Sendable' protocol
2 | case halfdelayParameterOutsideOfRange
3 | /// Window pointer is NULL
:
46 |
47 | public struct CursesError: Error & CustomDebugStringConvertible {
48 | public let kind: ErrorKind
| `- warning: stored property 'kind' of 'Sendable'-conforming struct 'CursesError' has non-sendable type 'ErrorKind'; this is an error in the Swift 6 language mode
49 | public let help: String?
50 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCurses/settings.swift:42:23: warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[TermSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
3 | // TODO: documentation > https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/init.html
4 | /// https://invisible-island.net/ncurses/man/curs_inopts.3x.html
5 | public enum TermSetting {
| `- note: consider making enum 'TermSetting' conform to the 'Sendable' protocol
6 | case cbreak
7 | case noCbreak
:
40 |
41 | extension TermSetting {
42 | public static let defaultSettings: [TermSetting] = [.cbreak, .noEcho, .colors]
| |- warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[TermSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSettings' 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
43 | }
44 |
BUILD FAILURE 6.0 macosSpm