Build Information
Failed to build w3w-swift-core, reference v1.2.0 (cb0b96), with Swift 6.1 for macOS (SPM) on 19 Apr 2026 12:26:38 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
18 | public static var `default` = W3WRfcLanguage(code: "en")
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | public var code: String?
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:66:37: error: 'Language' is only available in macOS 13 or newer
14 | /// - script (optional, 4 letters, titlecased)
15 | /// - region (optional, 2 letters or 3-digit number)
16 | public struct W3WRfcLanguage: W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing struct
17 | /// default language is "en". name's default can be changed externally to use a different language by an app if nessesary
18 | public static var `default` = W3WRfcLanguage(code: "en")
:
64 | @available(iOS 16, *)
65 | @available(watchOS 9, *)
66 | public init(from language: Locale.Language) {
| | `- error: 'Language' is only available in macOS 13 or newer
| `- note: add @available attribute to enclosing initializer
67 | self.code = language.code
68 | self.scriptCode = language.scriptCode
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:130:18: error: 'Language' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| | `- error: 'Language' is only available in macOS 13 or newer
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:27:30: error: 'language' is only available in macOS 13 or newer
14 | /// - script (optional, 4 letters, titlecased)
15 | /// - region (optional, 2 letters or 3-digit number)
16 | public struct W3WRfcLanguage: W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing struct
17 | /// default language is "en". name's default can be changed externally to use a different language by an app if nessesary
18 | public static var `default` = W3WRfcLanguage(code: "en")
:
22 | public var regionCode: String?
23 |
24 | public init(locale: Locale) {
| `- note: add @available attribute to enclosing initializer
25 | if #available(iOS 16, *), #available(watchOS 9, *) {
26 | // from iOS 16 supports getting script
27 | self.init(from: locale.language)
| |- error: 'language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
28 | } else {
29 | // no script for iOS < 16
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:97:30: error: 'Language' is only available in macOS 13 or newer
71 | }
72 |
73 | public extension W3WRfcLanguage {
| `- note: add @available attribute to enclosing extension
74 | /// if you want to init and validate that the language is supported on os, set `iOSCompatible` = `true`, or else = `false`
75 | /// if it's not valid, an error will be thrown
:
82 | }
83 | /// Initialize from a string
84 | init(from string: String) {
| `- note: add @available attribute to enclosing initializer
85 | // Normalize separators
86 | let normalized = string
:
95 |
96 | if #available(iOS 16, *), #available(watchOS 9, *) {
97 | self.init(from: Locale.Language(identifier: normalized))
| |- error: 'Language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
98 | } else {
99 | // Split into parts (e.g. zh-Hans-CN → ["zh", "Hans", "CN"])
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:97:30: error: 'init(identifier:)' is only available in macOS 13 or newer
71 | }
72 |
73 | public extension W3WRfcLanguage {
| `- note: add @available attribute to enclosing extension
74 | /// if you want to init and validate that the language is supported on os, set `iOSCompatible` = `true`, or else = `false`
75 | /// if it's not valid, an error will be thrown
:
82 | }
83 | /// Initialize from a string
84 | init(from string: String) {
| `- note: add @available attribute to enclosing initializer
85 | // Normalize separators
86 | let normalized = string
:
95 |
96 | if #available(iOS 16, *), #available(watchOS 9, *) {
97 | self.init(from: Locale.Language(identifier: normalized))
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
98 | } else {
99 | // Split into parts (e.g. zh-Hans-CN → ["zh", "Hans", "CN"])
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:132:12: error: 'languageCode' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
| `- note: add @available attribute to enclosing property
132 | return languageCode?.identifier
| |- error: 'languageCode' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
133 | }
134 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:136:17: error: 'script' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
133 | }
134 |
135 | public var scriptCode: String? {
| `- note: add @available attribute to enclosing property
136 | return self.script?.identifier
| |- error: 'script' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
137 | }
138 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:140:12: error: 'region' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
:
137 | }
138 |
139 | public var regionCode: String? {
| `- note: add @available attribute to enclosing property
140 | return region?.identifier
| |- error: 'region' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:21:29: error: 'Language' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
21 | let language = Locale.Language(identifier: identifier)
| |- error: 'Language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
22 | let langCode = language.code ?? ""
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:21:29: error: 'init(identifier:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
21 | let language = Locale.Language(identifier: identifier)
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
22 | let langCode = language.code ?? ""
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:26:17: error: 'isEquivalent(to:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
:
24 | // Check if code exists and is either equivalent to a standard locale or passes custom validation
25 | isValid = !langCode.isEmpty &&
26 | (language.isEquivalent(to: .init(identifier: langCode)) || identifier.isValidLocale)
| |- error: 'isEquivalent(to:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
27 | } else {
28 | isValid = identifier.isValidLocale
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:26:35: error: 'init(identifier:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
:
24 | // Check if code exists and is either equivalent to a standard locale or passes custom validation
25 | isValid = !langCode.isEmpty &&
26 | (language.isEquivalent(to: .init(identifier: langCode)) || identifier.isValidLocale)
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
27 | } else {
28 | isValid = identifier.isValidLocale
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WDebouncer.swift:27:102: warning: capture of 'self' with non-sendable type 'W3WDebouncer<T>?' in a '@Sendable' closure
9 |
10 |
11 | public class W3WDebouncer<T> {
| `- note: generic class 'W3WDebouncer' does not conform to the 'Sendable' protocol
12 |
13 | let delay: TimeInterval
:
25 | public func execute(_ x: T) {
26 | timer?.invalidate()
27 | timer = Timer.scheduledTimer(withTimeInterval: delay, repeats: false, block: { [weak self] _ in self?.closure(x)})
| `- warning: capture of 'self' with non-sendable type 'W3WDebouncer<T>?' in a '@Sendable' closure
28 | }
29 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WDebouncer.swift:27:116: warning: capture of 'x' with non-sendable type 'T' in a '@Sendable' closure
9 |
10 |
11 | public class W3WDebouncer<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 |
13 | let delay: TimeInterval
:
25 | public func execute(_ x: T) {
26 | timer?.invalidate()
27 | timer = Timer.scheduledTimer(withTimeInterval: delay, repeats: false, block: { [weak self] _ in self?.closure(x)})
| `- warning: capture of 'x' with non-sendable type 'T' in a '@Sendable' closure
28 | }
29 |
[7/65] Compiling W3WSwiftCore W3WRfcLanguageProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:18:21: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | public struct W3WRfcLanguage: W3WRfcLanguageProtocol {
17 | /// default language is "en". name's default can be changed externally to use a different language by an app if nessesary
18 | public static var `default` = W3WRfcLanguage(code: "en")
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | public var code: String?
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:66:37: error: 'Language' is only available in macOS 13 or newer
14 | /// - script (optional, 4 letters, titlecased)
15 | /// - region (optional, 2 letters or 3-digit number)
16 | public struct W3WRfcLanguage: W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing struct
17 | /// default language is "en". name's default can be changed externally to use a different language by an app if nessesary
18 | public static var `default` = W3WRfcLanguage(code: "en")
:
64 | @available(iOS 16, *)
65 | @available(watchOS 9, *)
66 | public init(from language: Locale.Language) {
| | `- error: 'Language' is only available in macOS 13 or newer
| `- note: add @available attribute to enclosing initializer
67 | self.code = language.code
68 | self.scriptCode = language.scriptCode
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:130:18: error: 'Language' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| | `- error: 'Language' is only available in macOS 13 or newer
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:27:30: error: 'language' is only available in macOS 13 or newer
14 | /// - script (optional, 4 letters, titlecased)
15 | /// - region (optional, 2 letters or 3-digit number)
16 | public struct W3WRfcLanguage: W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing struct
17 | /// default language is "en". name's default can be changed externally to use a different language by an app if nessesary
18 | public static var `default` = W3WRfcLanguage(code: "en")
:
22 | public var regionCode: String?
23 |
24 | public init(locale: Locale) {
| `- note: add @available attribute to enclosing initializer
25 | if #available(iOS 16, *), #available(watchOS 9, *) {
26 | // from iOS 16 supports getting script
27 | self.init(from: locale.language)
| |- error: 'language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
28 | } else {
29 | // no script for iOS < 16
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:97:30: error: 'Language' is only available in macOS 13 or newer
71 | }
72 |
73 | public extension W3WRfcLanguage {
| `- note: add @available attribute to enclosing extension
74 | /// if you want to init and validate that the language is supported on os, set `iOSCompatible` = `true`, or else = `false`
75 | /// if it's not valid, an error will be thrown
:
82 | }
83 | /// Initialize from a string
84 | init(from string: String) {
| `- note: add @available attribute to enclosing initializer
85 | // Normalize separators
86 | let normalized = string
:
95 |
96 | if #available(iOS 16, *), #available(watchOS 9, *) {
97 | self.init(from: Locale.Language(identifier: normalized))
| |- error: 'Language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
98 | } else {
99 | // Split into parts (e.g. zh-Hans-CN → ["zh", "Hans", "CN"])
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:97:30: error: 'init(identifier:)' is only available in macOS 13 or newer
71 | }
72 |
73 | public extension W3WRfcLanguage {
| `- note: add @available attribute to enclosing extension
74 | /// if you want to init and validate that the language is supported on os, set `iOSCompatible` = `true`, or else = `false`
75 | /// if it's not valid, an error will be thrown
:
82 | }
83 | /// Initialize from a string
84 | init(from string: String) {
| `- note: add @available attribute to enclosing initializer
85 | // Normalize separators
86 | let normalized = string
:
95 |
96 | if #available(iOS 16, *), #available(watchOS 9, *) {
97 | self.init(from: Locale.Language(identifier: normalized))
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
98 | } else {
99 | // Split into parts (e.g. zh-Hans-CN → ["zh", "Hans", "CN"])
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:132:12: error: 'languageCode' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
| `- note: add @available attribute to enclosing property
132 | return languageCode?.identifier
| |- error: 'languageCode' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
133 | }
134 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:136:17: error: 'script' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
133 | }
134 |
135 | public var scriptCode: String? {
| `- note: add @available attribute to enclosing property
136 | return self.script?.identifier
| |- error: 'script' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
137 | }
138 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:140:12: error: 'region' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
:
137 | }
138 |
139 | public var regionCode: String? {
| `- note: add @available attribute to enclosing property
140 | return region?.identifier
| |- error: 'region' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:21:29: error: 'Language' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
21 | let language = Locale.Language(identifier: identifier)
| |- error: 'Language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
22 | let langCode = language.code ?? ""
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:21:29: error: 'init(identifier:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
21 | let language = Locale.Language(identifier: identifier)
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
22 | let langCode = language.code ?? ""
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:26:17: error: 'isEquivalent(to:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
:
24 | // Check if code exists and is either equivalent to a standard locale or passes custom validation
25 | isValid = !langCode.isEmpty &&
26 | (language.isEquivalent(to: .init(identifier: langCode)) || identifier.isValidLocale)
| |- error: 'isEquivalent(to:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
27 | } else {
28 | isValid = identifier.isValidLocale
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:26:35: error: 'init(identifier:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
:
24 | // Check if code exists and is either equivalent to a standard locale or passes custom validation
25 | isValid = !langCode.isEmpty &&
26 | (language.isEquivalent(to: .init(identifier: langCode)) || identifier.isValidLocale)
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
27 | } else {
28 | isValid = identifier.isValidLocale
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WDebouncer.swift:27:102: warning: capture of 'self' with non-sendable type 'W3WDebouncer<T>?' in a '@Sendable' closure
9 |
10 |
11 | public class W3WDebouncer<T> {
| `- note: generic class 'W3WDebouncer' does not conform to the 'Sendable' protocol
12 |
13 | let delay: TimeInterval
:
25 | public func execute(_ x: T) {
26 | timer?.invalidate()
27 | timer = Timer.scheduledTimer(withTimeInterval: delay, repeats: false, block: { [weak self] _ in self?.closure(x)})
| `- warning: capture of 'self' with non-sendable type 'W3WDebouncer<T>?' in a '@Sendable' closure
28 | }
29 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WDebouncer.swift:27:116: warning: capture of 'x' with non-sendable type 'T' in a '@Sendable' closure
9 |
10 |
11 | public class W3WDebouncer<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 |
13 | let delay: TimeInterval
:
25 | public func execute(_ x: T) {
26 | timer?.invalidate()
27 | timer = Timer.scheduledTimer(withTimeInterval: delay, repeats: false, block: { [weak self] _ in self?.closure(x)})
| `- warning: capture of 'x' with non-sendable type 'T' in a '@Sendable' closure
28 | }
29 |
[8/65] Compiling W3WSwiftCore W3WRfcLanguageProtocols.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:18:21: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | public struct W3WRfcLanguage: W3WRfcLanguageProtocol {
17 | /// default language is "en". name's default can be changed externally to use a different language by an app if nessesary
18 | public static var `default` = W3WRfcLanguage(code: "en")
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | public var code: String?
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:66:37: error: 'Language' is only available in macOS 13 or newer
14 | /// - script (optional, 4 letters, titlecased)
15 | /// - region (optional, 2 letters or 3-digit number)
16 | public struct W3WRfcLanguage: W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing struct
17 | /// default language is "en". name's default can be changed externally to use a different language by an app if nessesary
18 | public static var `default` = W3WRfcLanguage(code: "en")
:
64 | @available(iOS 16, *)
65 | @available(watchOS 9, *)
66 | public init(from language: Locale.Language) {
| | `- error: 'Language' is only available in macOS 13 or newer
| `- note: add @available attribute to enclosing initializer
67 | self.code = language.code
68 | self.scriptCode = language.scriptCode
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:130:18: error: 'Language' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| | `- error: 'Language' is only available in macOS 13 or newer
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:27:30: error: 'language' is only available in macOS 13 or newer
14 | /// - script (optional, 4 letters, titlecased)
15 | /// - region (optional, 2 letters or 3-digit number)
16 | public struct W3WRfcLanguage: W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing struct
17 | /// default language is "en". name's default can be changed externally to use a different language by an app if nessesary
18 | public static var `default` = W3WRfcLanguage(code: "en")
:
22 | public var regionCode: String?
23 |
24 | public init(locale: Locale) {
| `- note: add @available attribute to enclosing initializer
25 | if #available(iOS 16, *), #available(watchOS 9, *) {
26 | // from iOS 16 supports getting script
27 | self.init(from: locale.language)
| |- error: 'language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
28 | } else {
29 | // no script for iOS < 16
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:97:30: error: 'Language' is only available in macOS 13 or newer
71 | }
72 |
73 | public extension W3WRfcLanguage {
| `- note: add @available attribute to enclosing extension
74 | /// if you want to init and validate that the language is supported on os, set `iOSCompatible` = `true`, or else = `false`
75 | /// if it's not valid, an error will be thrown
:
82 | }
83 | /// Initialize from a string
84 | init(from string: String) {
| `- note: add @available attribute to enclosing initializer
85 | // Normalize separators
86 | let normalized = string
:
95 |
96 | if #available(iOS 16, *), #available(watchOS 9, *) {
97 | self.init(from: Locale.Language(identifier: normalized))
| |- error: 'Language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
98 | } else {
99 | // Split into parts (e.g. zh-Hans-CN → ["zh", "Hans", "CN"])
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:97:30: error: 'init(identifier:)' is only available in macOS 13 or newer
71 | }
72 |
73 | public extension W3WRfcLanguage {
| `- note: add @available attribute to enclosing extension
74 | /// if you want to init and validate that the language is supported on os, set `iOSCompatible` = `true`, or else = `false`
75 | /// if it's not valid, an error will be thrown
:
82 | }
83 | /// Initialize from a string
84 | init(from string: String) {
| `- note: add @available attribute to enclosing initializer
85 | // Normalize separators
86 | let normalized = string
:
95 |
96 | if #available(iOS 16, *), #available(watchOS 9, *) {
97 | self.init(from: Locale.Language(identifier: normalized))
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
98 | } else {
99 | // Split into parts (e.g. zh-Hans-CN → ["zh", "Hans", "CN"])
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:132:12: error: 'languageCode' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
| `- note: add @available attribute to enclosing property
132 | return languageCode?.identifier
| |- error: 'languageCode' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
133 | }
134 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:136:17: error: 'script' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
133 | }
134 |
135 | public var scriptCode: String? {
| `- note: add @available attribute to enclosing property
136 | return self.script?.identifier
| |- error: 'script' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
137 | }
138 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:140:12: error: 'region' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
:
137 | }
138 |
139 | public var regionCode: String? {
| `- note: add @available attribute to enclosing property
140 | return region?.identifier
| |- error: 'region' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:21:29: error: 'Language' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
21 | let language = Locale.Language(identifier: identifier)
| |- error: 'Language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
22 | let langCode = language.code ?? ""
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:21:29: error: 'init(identifier:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
21 | let language = Locale.Language(identifier: identifier)
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
22 | let langCode = language.code ?? ""
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:26:17: error: 'isEquivalent(to:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
:
24 | // Check if code exists and is either equivalent to a standard locale or passes custom validation
25 | isValid = !langCode.isEmpty &&
26 | (language.isEquivalent(to: .init(identifier: langCode)) || identifier.isValidLocale)
| |- error: 'isEquivalent(to:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
27 | } else {
28 | isValid = identifier.isValidLocale
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:26:35: error: 'init(identifier:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
:
24 | // Check if code exists and is either equivalent to a standard locale or passes custom validation
25 | isValid = !langCode.isEmpty &&
26 | (language.isEquivalent(to: .init(identifier: langCode)) || identifier.isValidLocale)
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
27 | } else {
28 | isValid = identifier.isValidLocale
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WDebouncer.swift:27:102: warning: capture of 'self' with non-sendable type 'W3WDebouncer<T>?' in a '@Sendable' closure
9 |
10 |
11 | public class W3WDebouncer<T> {
| `- note: generic class 'W3WDebouncer' does not conform to the 'Sendable' protocol
12 |
13 | let delay: TimeInterval
:
25 | public func execute(_ x: T) {
26 | timer?.invalidate()
27 | timer = Timer.scheduledTimer(withTimeInterval: delay, repeats: false, block: { [weak self] _ in self?.closure(x)})
| `- warning: capture of 'self' with non-sendable type 'W3WDebouncer<T>?' in a '@Sendable' closure
28 | }
29 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WDebouncer.swift:27:116: warning: capture of 'x' with non-sendable type 'T' in a '@Sendable' closure
9 |
10 |
11 | public class W3WDebouncer<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 |
13 | let delay: TimeInterval
:
25 | public func execute(_ x: T) {
26 | timer?.invalidate()
27 | timer = Timer.scheduledTimer(withTimeInterval: delay, repeats: false, block: { [weak self] _ in self?.closure(x)})
| `- warning: capture of 'x' with non-sendable type 'T' in a '@Sendable' closure
28 | }
29 |
[9/65] Compiling W3WSwiftCore W3WDebouncer.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:18:21: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | public struct W3WRfcLanguage: W3WRfcLanguageProtocol {
17 | /// default language is "en". name's default can be changed externally to use a different language by an app if nessesary
18 | public static var `default` = W3WRfcLanguage(code: "en")
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | public var code: String?
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:66:37: error: 'Language' is only available in macOS 13 or newer
14 | /// - script (optional, 4 letters, titlecased)
15 | /// - region (optional, 2 letters or 3-digit number)
16 | public struct W3WRfcLanguage: W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing struct
17 | /// default language is "en". name's default can be changed externally to use a different language by an app if nessesary
18 | public static var `default` = W3WRfcLanguage(code: "en")
:
64 | @available(iOS 16, *)
65 | @available(watchOS 9, *)
66 | public init(from language: Locale.Language) {
| | `- error: 'Language' is only available in macOS 13 or newer
| `- note: add @available attribute to enclosing initializer
67 | self.code = language.code
68 | self.scriptCode = language.scriptCode
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:130:18: error: 'Language' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| | `- error: 'Language' is only available in macOS 13 or newer
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:27:30: error: 'language' is only available in macOS 13 or newer
14 | /// - script (optional, 4 letters, titlecased)
15 | /// - region (optional, 2 letters or 3-digit number)
16 | public struct W3WRfcLanguage: W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing struct
17 | /// default language is "en". name's default can be changed externally to use a different language by an app if nessesary
18 | public static var `default` = W3WRfcLanguage(code: "en")
:
22 | public var regionCode: String?
23 |
24 | public init(locale: Locale) {
| `- note: add @available attribute to enclosing initializer
25 | if #available(iOS 16, *), #available(watchOS 9, *) {
26 | // from iOS 16 supports getting script
27 | self.init(from: locale.language)
| |- error: 'language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
28 | } else {
29 | // no script for iOS < 16
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:97:30: error: 'Language' is only available in macOS 13 or newer
71 | }
72 |
73 | public extension W3WRfcLanguage {
| `- note: add @available attribute to enclosing extension
74 | /// if you want to init and validate that the language is supported on os, set `iOSCompatible` = `true`, or else = `false`
75 | /// if it's not valid, an error will be thrown
:
82 | }
83 | /// Initialize from a string
84 | init(from string: String) {
| `- note: add @available attribute to enclosing initializer
85 | // Normalize separators
86 | let normalized = string
:
95 |
96 | if #available(iOS 16, *), #available(watchOS 9, *) {
97 | self.init(from: Locale.Language(identifier: normalized))
| |- error: 'Language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
98 | } else {
99 | // Split into parts (e.g. zh-Hans-CN → ["zh", "Hans", "CN"])
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:97:30: error: 'init(identifier:)' is only available in macOS 13 or newer
71 | }
72 |
73 | public extension W3WRfcLanguage {
| `- note: add @available attribute to enclosing extension
74 | /// if you want to init and validate that the language is supported on os, set `iOSCompatible` = `true`, or else = `false`
75 | /// if it's not valid, an error will be thrown
:
82 | }
83 | /// Initialize from a string
84 | init(from string: String) {
| `- note: add @available attribute to enclosing initializer
85 | // Normalize separators
86 | let normalized = string
:
95 |
96 | if #available(iOS 16, *), #available(watchOS 9, *) {
97 | self.init(from: Locale.Language(identifier: normalized))
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
98 | } else {
99 | // Split into parts (e.g. zh-Hans-CN → ["zh", "Hans", "CN"])
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:132:12: error: 'languageCode' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
| `- note: add @available attribute to enclosing property
132 | return languageCode?.identifier
| |- error: 'languageCode' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
133 | }
134 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:136:17: error: 'script' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
133 | }
134 |
135 | public var scriptCode: String? {
| `- note: add @available attribute to enclosing property
136 | return self.script?.identifier
| |- error: 'script' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
137 | }
138 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:140:12: error: 'region' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
:
137 | }
138 |
139 | public var regionCode: String? {
| `- note: add @available attribute to enclosing property
140 | return region?.identifier
| |- error: 'region' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:21:29: error: 'Language' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
21 | let language = Locale.Language(identifier: identifier)
| |- error: 'Language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
22 | let langCode = language.code ?? ""
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:21:29: error: 'init(identifier:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
21 | let language = Locale.Language(identifier: identifier)
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
22 | let langCode = language.code ?? ""
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:26:17: error: 'isEquivalent(to:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
:
24 | // Check if code exists and is either equivalent to a standard locale or passes custom validation
25 | isValid = !langCode.isEmpty &&
26 | (language.isEquivalent(to: .init(identifier: langCode)) || identifier.isValidLocale)
| |- error: 'isEquivalent(to:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
27 | } else {
28 | isValid = identifier.isValidLocale
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:26:35: error: 'init(identifier:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
:
24 | // Check if code exists and is either equivalent to a standard locale or passes custom validation
25 | isValid = !langCode.isEmpty &&
26 | (language.isEquivalent(to: .init(identifier: langCode)) || identifier.isValidLocale)
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
27 | } else {
28 | isValid = identifier.isValidLocale
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WDebouncer.swift:27:102: warning: capture of 'self' with non-sendable type 'W3WDebouncer<T>?' in a '@Sendable' closure
9 |
10 |
11 | public class W3WDebouncer<T> {
| `- note: generic class 'W3WDebouncer' does not conform to the 'Sendable' protocol
12 |
13 | let delay: TimeInterval
:
25 | public func execute(_ x: T) {
26 | timer?.invalidate()
27 | timer = Timer.scheduledTimer(withTimeInterval: delay, repeats: false, block: { [weak self] _ in self?.closure(x)})
| `- warning: capture of 'self' with non-sendable type 'W3WDebouncer<T>?' in a '@Sendable' closure
28 | }
29 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WDebouncer.swift:27:116: warning: capture of 'x' with non-sendable type 'T' in a '@Sendable' closure
9 |
10 |
11 | public class W3WDebouncer<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 |
13 | let delay: TimeInterval
:
25 | public func execute(_ x: T) {
26 | timer?.invalidate()
27 | timer = Timer.scheduledTimer(withTimeInterval: delay, repeats: false, block: { [weak self] _ in self?.closure(x)})
| `- warning: capture of 'x' with non-sendable type 'T' in a '@Sendable' closure
28 | }
29 |
[10/65] Compiling W3WSwiftCore W3WSuggestion.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/W3WSettings+W3WSwiftCore.swift:13:21: warning: static property 'measurement' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | // mutable settings
13 | static public var measurement = W3WMeasurementSystem.system
| |- warning: static property 'measurement' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'measurement' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'measurement' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | static public var separatorType = W3WSeparatorsType.firstCommaSecondDot
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/W3WSettings+W3WSwiftCore.swift:15:21: warning: static property 'separatorType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | static public var measurement = W3WMeasurementSystem.system
14 |
15 | static public var separatorType = W3WSeparatorsType.firstCommaSecondDot
| |- warning: static property 'separatorType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'separatorType' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'separatorType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | // direction of writing
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/W3WSettings+W3WSwiftCore.swift:18:21: warning: static property 'leftToRight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | // direction of writing
18 | static public var leftToRight = (NSLocale.characterDirection(forLanguage: NSLocale.preferredLanguages.first ?? W3WSettings.defaultLanguage.code) == Locale.LanguageDirection.leftToRight)
| |- warning: static property 'leftToRight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'leftToRight' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'leftToRight' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | // language to defaul to when not provided in a call
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/W3WSettings+W3WSwiftCore.swift:21:21: warning: static property 'defaultLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | // language to defaul to when not provided in a call
21 | public static var defaultLanguage = W3WBaseLanguage(code: "en", name: "English", nativeName: "English")
| |- warning: static property 'defaultLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultLanguage' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultLanguage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 |
[11/65] Compiling W3WSwiftCore W3WAudioStreamProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/W3WSettings+W3WSwiftCore.swift:13:21: warning: static property 'measurement' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | // mutable settings
13 | static public var measurement = W3WMeasurementSystem.system
| |- warning: static property 'measurement' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'measurement' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'measurement' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | static public var separatorType = W3WSeparatorsType.firstCommaSecondDot
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/W3WSettings+W3WSwiftCore.swift:15:21: warning: static property 'separatorType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | static public var measurement = W3WMeasurementSystem.system
14 |
15 | static public var separatorType = W3WSeparatorsType.firstCommaSecondDot
| |- warning: static property 'separatorType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'separatorType' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'separatorType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | // direction of writing
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/W3WSettings+W3WSwiftCore.swift:18:21: warning: static property 'leftToRight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | // direction of writing
18 | static public var leftToRight = (NSLocale.characterDirection(forLanguage: NSLocale.preferredLanguages.first ?? W3WSettings.defaultLanguage.code) == Locale.LanguageDirection.leftToRight)
| |- warning: static property 'leftToRight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'leftToRight' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'leftToRight' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | // language to defaul to when not provided in a call
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/W3WSettings+W3WSwiftCore.swift:21:21: warning: static property 'defaultLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | // language to defaul to when not provided in a call
21 | public static var defaultLanguage = W3WBaseLanguage(code: "en", name: "English", nativeName: "English")
| |- warning: static property 'defaultLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultLanguage' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultLanguage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 |
[12/65] Compiling W3WSwiftCore W3WVoiceListeningState.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/W3WSettings+W3WSwiftCore.swift:13:21: warning: static property 'measurement' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | // mutable settings
13 | static public var measurement = W3WMeasurementSystem.system
| |- warning: static property 'measurement' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'measurement' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'measurement' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | static public var separatorType = W3WSeparatorsType.firstCommaSecondDot
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/W3WSettings+W3WSwiftCore.swift:15:21: warning: static property 'separatorType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | static public var measurement = W3WMeasurementSystem.system
14 |
15 | static public var separatorType = W3WSeparatorsType.firstCommaSecondDot
| |- warning: static property 'separatorType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'separatorType' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'separatorType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | // direction of writing
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/W3WSettings+W3WSwiftCore.swift:18:21: warning: static property 'leftToRight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | // direction of writing
18 | static public var leftToRight = (NSLocale.characterDirection(forLanguage: NSLocale.preferredLanguages.first ?? W3WSettings.defaultLanguage.code) == Locale.LanguageDirection.leftToRight)
| |- warning: static property 'leftToRight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'leftToRight' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'leftToRight' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | // language to defaul to when not provided in a call
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/W3WSettings+W3WSwiftCore.swift:21:21: warning: static property 'defaultLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | // language to defaul to when not provided in a call
21 | public static var defaultLanguage = W3WBaseLanguage(code: "en", name: "English", nativeName: "English")
| |- warning: static property 'defaultLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultLanguage' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultLanguage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 |
[13/65] Compiling W3WSwiftCore W3WVoiceProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/W3WSettings+W3WSwiftCore.swift:13:21: warning: static property 'measurement' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | // mutable settings
13 | static public var measurement = W3WMeasurementSystem.system
| |- warning: static property 'measurement' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'measurement' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'measurement' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | static public var separatorType = W3WSeparatorsType.firstCommaSecondDot
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/W3WSettings+W3WSwiftCore.swift:15:21: warning: static property 'separatorType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | static public var measurement = W3WMeasurementSystem.system
14 |
15 | static public var separatorType = W3WSeparatorsType.firstCommaSecondDot
| |- warning: static property 'separatorType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'separatorType' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'separatorType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | // direction of writing
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/W3WSettings+W3WSwiftCore.swift:18:21: warning: static property 'leftToRight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | // direction of writing
18 | static public var leftToRight = (NSLocale.characterDirection(forLanguage: NSLocale.preferredLanguages.first ?? W3WSettings.defaultLanguage.code) == Locale.LanguageDirection.leftToRight)
| |- warning: static property 'leftToRight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'leftToRight' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'leftToRight' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | // language to defaul to when not provided in a call
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/W3WSettings+W3WSwiftCore.swift:21:21: warning: static property 'defaultLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | // language to defaul to when not provided in a call
21 | public static var defaultLanguage = W3WBaseLanguage(code: "en", name: "English", nativeName: "English")
| |- warning: static property 'defaultLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultLanguage' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultLanguage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 |
[14/65] Compiling W3WSwiftCore W3WVoiceSuggestion+W3WSwiftCore.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/W3WSettings+W3WSwiftCore.swift:13:21: warning: static property 'measurement' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | // mutable settings
13 | static public var measurement = W3WMeasurementSystem.system
| |- warning: static property 'measurement' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'measurement' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'measurement' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | static public var separatorType = W3WSeparatorsType.firstCommaSecondDot
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/W3WSettings+W3WSwiftCore.swift:15:21: warning: static property 'separatorType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | static public var measurement = W3WMeasurementSystem.system
14 |
15 | static public var separatorType = W3WSeparatorsType.firstCommaSecondDot
| |- warning: static property 'separatorType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'separatorType' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'separatorType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | // direction of writing
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/W3WSettings+W3WSwiftCore.swift:18:21: warning: static property 'leftToRight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | // direction of writing
18 | static public var leftToRight = (NSLocale.characterDirection(forLanguage: NSLocale.preferredLanguages.first ?? W3WSettings.defaultLanguage.code) == Locale.LanguageDirection.leftToRight)
| |- warning: static property 'leftToRight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'leftToRight' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'leftToRight' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | // language to defaul to when not provided in a call
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/W3WSettings+W3WSwiftCore.swift:21:21: warning: static property 'defaultLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | // language to defaul to when not provided in a call
21 | public static var defaultLanguage = W3WBaseLanguage(code: "en", name: "English", nativeName: "English")
| |- warning: static property 'defaultLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultLanguage' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultLanguage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 |
[15/65] Compiling W3WSwiftCore W3WSettings+W3WSwiftCore.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/W3WSettings+W3WSwiftCore.swift:13:21: warning: static property 'measurement' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | // mutable settings
13 | static public var measurement = W3WMeasurementSystem.system
| |- warning: static property 'measurement' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'measurement' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'measurement' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | static public var separatorType = W3WSeparatorsType.firstCommaSecondDot
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/W3WSettings+W3WSwiftCore.swift:15:21: warning: static property 'separatorType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | static public var measurement = W3WMeasurementSystem.system
14 |
15 | static public var separatorType = W3WSeparatorsType.firstCommaSecondDot
| |- warning: static property 'separatorType' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'separatorType' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'separatorType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | // direction of writing
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/W3WSettings+W3WSwiftCore.swift:18:21: warning: static property 'leftToRight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | // direction of writing
18 | static public var leftToRight = (NSLocale.characterDirection(forLanguage: NSLocale.preferredLanguages.first ?? W3WSettings.defaultLanguage.code) == Locale.LanguageDirection.leftToRight)
| |- warning: static property 'leftToRight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'leftToRight' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'leftToRight' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | // language to defaul to when not provided in a call
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/W3WSettings+W3WSwiftCore.swift:21:21: warning: static property 'defaultLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | // language to defaul to when not provided in a call
21 | public static var defaultLanguage = W3WBaseLanguage(code: "en", name: "English", nativeName: "English")
| |- warning: static property 'defaultLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultLanguage' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultLanguage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 |
[16/65] Compiling W3WSwiftCore W3WMockTranslation.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Localization/W3WTranslate.swift:14:21: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'W3WTranslations' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | @available(*, deprecated, message: "use W3WTranslationsProtocol instead")
12 | public class W3WTranslations {
| `- note: class 'W3WTranslations' does not conform to the 'Sendable' protocol
13 |
14 | public static let main = W3WTranslations()
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'W3WTranslations' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'main' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Localization/W3WTranslate.swift:17:14: warning: static property 'bundles' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 |
17 | static var bundles = [Bundle]()
| |- warning: static property 'bundles' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bundles' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bundles' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Network/W3WRequest.swift:124:9: warning: capture of 'self' with non-sendable type 'W3WRequest?' in a '@Sendable' closure
31 | }
32 | /// A base class for making API calls to a service
33 | open class W3WRequest {
| `- note: class 'W3WRequest' does not conform to the 'Sendable' protocol
34 |
35 | public var baseUrl = ""
:
122 |
123 | // deal with the results, and complete with the info
124 | self?.processResults(data: data, response: response, error: error, completion: completion)
| `- warning: capture of 'self' with non-sendable type 'W3WRequest?' in a '@Sendable' closure
125 | }
126 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Network/W3WRequest.swift:124:88: warning: capture of 'completion' with non-sendable type 'W3WRequestResponse' (aka '(Optional<Int>, Optional<Data>, Optional<W3WError>) -> ()') in a '@Sendable' closure
122 |
123 | // deal with the results, and complete with the info
124 | self?.processResults(data: data, response: response, error: error, completion: completion)
| |- warning: capture of 'completion' with non-sendable type 'W3WRequestResponse' (aka '(Optional<Int>, Optional<Data>, Optional<W3WError>) -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
125 | }
126 |
[17/65] Compiling W3WSwiftCore W3WTranslate.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Localization/W3WTranslate.swift:14:21: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'W3WTranslations' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | @available(*, deprecated, message: "use W3WTranslationsProtocol instead")
12 | public class W3WTranslations {
| `- note: class 'W3WTranslations' does not conform to the 'Sendable' protocol
13 |
14 | public static let main = W3WTranslations()
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'W3WTranslations' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'main' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Localization/W3WTranslate.swift:17:14: warning: static property 'bundles' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 |
17 | static var bundles = [Bundle]()
| |- warning: static property 'bundles' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bundles' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bundles' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Network/W3WRequest.swift:124:9: warning: capture of 'self' with non-sendable type 'W3WRequest?' in a '@Sendable' closure
31 | }
32 | /// A base class for making API calls to a service
33 | open class W3WRequest {
| `- note: class 'W3WRequest' does not conform to the 'Sendable' protocol
34 |
35 | public var baseUrl = ""
:
122 |
123 | // deal with the results, and complete with the info
124 | self?.processResults(data: data, response: response, error: error, completion: completion)
| `- warning: capture of 'self' with non-sendable type 'W3WRequest?' in a '@Sendable' closure
125 | }
126 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Network/W3WRequest.swift:124:88: warning: capture of 'completion' with non-sendable type 'W3WRequestResponse' (aka '(Optional<Int>, Optional<Data>, Optional<W3WError>) -> ()') in a '@Sendable' closure
122 |
123 | // deal with the results, and complete with the info
124 | self?.processResults(data: data, response: response, error: error, completion: completion)
| |- warning: capture of 'completion' with non-sendable type 'W3WRequestResponse' (aka '(Optional<Int>, Optional<Data>, Optional<W3WError>) -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
125 | }
126 |
[18/65] Compiling W3WSwiftCore W3WTranslationsProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Localization/W3WTranslate.swift:14:21: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'W3WTranslations' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | @available(*, deprecated, message: "use W3WTranslationsProtocol instead")
12 | public class W3WTranslations {
| `- note: class 'W3WTranslations' does not conform to the 'Sendable' protocol
13 |
14 | public static let main = W3WTranslations()
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'W3WTranslations' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'main' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Localization/W3WTranslate.swift:17:14: warning: static property 'bundles' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 |
17 | static var bundles = [Bundle]()
| |- warning: static property 'bundles' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bundles' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bundles' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Network/W3WRequest.swift:124:9: warning: capture of 'self' with non-sendable type 'W3WRequest?' in a '@Sendable' closure
31 | }
32 | /// A base class for making API calls to a service
33 | open class W3WRequest {
| `- note: class 'W3WRequest' does not conform to the 'Sendable' protocol
34 |
35 | public var baseUrl = ""
:
122 |
123 | // deal with the results, and complete with the info
124 | self?.processResults(data: data, response: response, error: error, completion: completion)
| `- warning: capture of 'self' with non-sendable type 'W3WRequest?' in a '@Sendable' closure
125 | }
126 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Network/W3WRequest.swift:124:88: warning: capture of 'completion' with non-sendable type 'W3WRequestResponse' (aka '(Optional<Int>, Optional<Data>, Optional<W3WError>) -> ()') in a '@Sendable' closure
122 |
123 | // deal with the results, and complete with the info
124 | self?.processResults(data: data, response: response, error: error, completion: completion)
| |- warning: capture of 'completion' with non-sendable type 'W3WRequestResponse' (aka '(Optional<Int>, Optional<Data>, Optional<W3WError>) -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
125 | }
126 |
[19/65] Compiling W3WSwiftCore NetworkConnection.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Localization/W3WTranslate.swift:14:21: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'W3WTranslations' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | @available(*, deprecated, message: "use W3WTranslationsProtocol instead")
12 | public class W3WTranslations {
| `- note: class 'W3WTranslations' does not conform to the 'Sendable' protocol
13 |
14 | public static let main = W3WTranslations()
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'W3WTranslations' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'main' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Localization/W3WTranslate.swift:17:14: warning: static property 'bundles' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 |
17 | static var bundles = [Bundle]()
| |- warning: static property 'bundles' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bundles' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bundles' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Network/W3WRequest.swift:124:9: warning: capture of 'self' with non-sendable type 'W3WRequest?' in a '@Sendable' closure
31 | }
32 | /// A base class for making API calls to a service
33 | open class W3WRequest {
| `- note: class 'W3WRequest' does not conform to the 'Sendable' protocol
34 |
35 | public var baseUrl = ""
:
122 |
123 | // deal with the results, and complete with the info
124 | self?.processResults(data: data, response: response, error: error, completion: completion)
| `- warning: capture of 'self' with non-sendable type 'W3WRequest?' in a '@Sendable' closure
125 | }
126 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Network/W3WRequest.swift:124:88: warning: capture of 'completion' with non-sendable type 'W3WRequestResponse' (aka '(Optional<Int>, Optional<Data>, Optional<W3WError>) -> ()') in a '@Sendable' closure
122 |
123 | // deal with the results, and complete with the info
124 | self?.processResults(data: data, response: response, error: error, completion: completion)
| |- warning: capture of 'completion' with non-sendable type 'W3WRequestResponse' (aka '(Optional<Int>, Optional<Data>, Optional<W3WError>) -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
125 | }
126 |
[20/65] Compiling W3WSwiftCore W3WJson.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Localization/W3WTranslate.swift:14:21: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'W3WTranslations' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | @available(*, deprecated, message: "use W3WTranslationsProtocol instead")
12 | public class W3WTranslations {
| `- note: class 'W3WTranslations' does not conform to the 'Sendable' protocol
13 |
14 | public static let main = W3WTranslations()
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'W3WTranslations' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'main' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Localization/W3WTranslate.swift:17:14: warning: static property 'bundles' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 |
17 | static var bundles = [Bundle]()
| |- warning: static property 'bundles' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bundles' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bundles' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Network/W3WRequest.swift:124:9: warning: capture of 'self' with non-sendable type 'W3WRequest?' in a '@Sendable' closure
31 | }
32 | /// A base class for making API calls to a service
33 | open class W3WRequest {
| `- note: class 'W3WRequest' does not conform to the 'Sendable' protocol
34 |
35 | public var baseUrl = ""
:
122 |
123 | // deal with the results, and complete with the info
124 | self?.processResults(data: data, response: response, error: error, completion: completion)
| `- warning: capture of 'self' with non-sendable type 'W3WRequest?' in a '@Sendable' closure
125 | }
126 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Network/W3WRequest.swift:124:88: warning: capture of 'completion' with non-sendable type 'W3WRequestResponse' (aka '(Optional<Int>, Optional<Data>, Optional<W3WError>) -> ()') in a '@Sendable' closure
122 |
123 | // deal with the results, and complete with the info
124 | self?.processResults(data: data, response: response, error: error, completion: completion)
| |- warning: capture of 'completion' with non-sendable type 'W3WRequestResponse' (aka '(Optional<Int>, Optional<Data>, Optional<W3WError>) -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
125 | }
126 |
[21/65] Compiling W3WSwiftCore W3WRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Localization/W3WTranslate.swift:14:21: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'W3WTranslations' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | @available(*, deprecated, message: "use W3WTranslationsProtocol instead")
12 | public class W3WTranslations {
| `- note: class 'W3WTranslations' does not conform to the 'Sendable' protocol
13 |
14 | public static let main = W3WTranslations()
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'W3WTranslations' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'main' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Localization/W3WTranslate.swift:17:14: warning: static property 'bundles' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 |
17 | static var bundles = [Bundle]()
| |- warning: static property 'bundles' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bundles' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bundles' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Network/W3WRequest.swift:124:9: warning: capture of 'self' with non-sendable type 'W3WRequest?' in a '@Sendable' closure
31 | }
32 | /// A base class for making API calls to a service
33 | open class W3WRequest {
| `- note: class 'W3WRequest' does not conform to the 'Sendable' protocol
34 |
35 | public var baseUrl = ""
:
122 |
123 | // deal with the results, and complete with the info
124 | self?.processResults(data: data, response: response, error: error, completion: completion)
| `- warning: capture of 'self' with non-sendable type 'W3WRequest?' in a '@Sendable' closure
125 | }
126 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Network/W3WRequest.swift:124:88: warning: capture of 'completion' with non-sendable type 'W3WRequestResponse' (aka '(Optional<Int>, Optional<Data>, Optional<W3WError>) -> ()') in a '@Sendable' closure
122 |
123 | // deal with the results, and complete with the info
124 | self?.processResults(data: data, response: response, error: error, completion: completion)
| |- warning: capture of 'completion' with non-sendable type 'W3WRequestResponse' (aka '(Optional<Int>, Optional<Data>, Optional<W3WError>) -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
125 | }
126 |
[22/65] Compiling W3WSwiftCore Combine+Extensions.swift
[23/65] Compiling W3WSwiftCore W3WEvent.swift
[24/65] Compiling W3WSwiftCore W3WEventSubscriberProtocol.swift
[25/65] Compiling W3WSwiftCore W3WEventsSubscriptions.swift
[26/65] Compiling W3WSwiftCore W3WLive.swift
[27/65] Compiling W3WSwiftCore W3WRegex.swift
[28/65] Compiling W3WSwiftCore W3WInputType.swift
[29/65] Compiling W3WSwiftCore W3WOption.swift
[30/65] Compiling W3WSwiftCore W3WOptionAcceptorProtocol.swift
[31/65] Compiling W3WSwiftCore W3WOptionProtocol.swift
[32/65] Compiling W3WSwiftCore W3WOptions.swift
[33/65] Compiling W3WSwiftCore W3WStreetAddress.swift
[34/65] Compiling W3WSwiftCore W3WUtilitiesProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Types/Values/W3WLanguage.swift:181:21: warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'W3WBaseLanguage' may have shared mutable state; this is an error in the Swift 6 language mode
96 |
97 |
98 | public struct W3WBaseLanguage: W3WLanguage, ExpressibleByStringLiteral {
| `- note: consider making struct 'W3WBaseLanguage' conform to the 'Sendable' protocol
99 | public typealias StringLiteralType = String
100 |
:
179 | }
180 |
181 | static public let english = W3WBaseLanguage(locale: "en_gb")
| |- warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'W3WBaseLanguage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'english' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
182 | }
183 |
[35/65] Compiling W3WSwiftCore W3WWritingDirection.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Types/Values/W3WLanguage.swift:181:21: warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'W3WBaseLanguage' may have shared mutable state; this is an error in the Swift 6 language mode
96 |
97 |
98 | public struct W3WBaseLanguage: W3WLanguage, ExpressibleByStringLiteral {
| `- note: consider making struct 'W3WBaseLanguage' conform to the 'Sendable' protocol
99 | public typealias StringLiteralType = String
100 |
:
179 | }
180 |
181 | static public let english = W3WBaseLanguage(locale: "en_gb")
| |- warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'W3WBaseLanguage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'english' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
182 | }
183 |
[36/65] Compiling W3WSwiftCore W3WCountry.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Types/Values/W3WLanguage.swift:181:21: warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'W3WBaseLanguage' may have shared mutable state; this is an error in the Swift 6 language mode
96 |
97 |
98 | public struct W3WBaseLanguage: W3WLanguage, ExpressibleByStringLiteral {
| `- note: consider making struct 'W3WBaseLanguage' conform to the 'Sendable' protocol
99 | public typealias StringLiteralType = String
100 |
:
179 | }
180 |
181 | static public let english = W3WBaseLanguage(locale: "en_gb")
| |- warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'W3WBaseLanguage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'english' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
182 | }
183 |
[37/65] Compiling W3WSwiftCore W3WLanguage.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Types/Values/W3WLanguage.swift:181:21: warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'W3WBaseLanguage' may have shared mutable state; this is an error in the Swift 6 language mode
96 |
97 |
98 | public struct W3WBaseLanguage: W3WLanguage, ExpressibleByStringLiteral {
| `- note: consider making struct 'W3WBaseLanguage' conform to the 'Sendable' protocol
99 | public typealias StringLiteralType = String
100 |
:
179 | }
180 |
181 | static public let english = W3WBaseLanguage(locale: "en_gb")
| |- warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'W3WBaseLanguage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'english' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
182 | }
183 |
[38/65] Compiling W3WSwiftCore W3WRanked.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Types/Values/W3WLanguage.swift:181:21: warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'W3WBaseLanguage' may have shared mutable state; this is an error in the Swift 6 language mode
96 |
97 |
98 | public struct W3WBaseLanguage: W3WLanguage, ExpressibleByStringLiteral {
| `- note: consider making struct 'W3WBaseLanguage' conform to the 'Sendable' protocol
99 | public typealias StringLiteralType = String
100 |
:
179 | }
180 |
181 | static public let english = W3WBaseLanguage(locale: "en_gb")
| |- warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'W3WBaseLanguage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'english' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
182 | }
183 |
[39/65] Compiling W3WSwiftCore W3WSquare.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Types/Values/W3WLanguage.swift:181:21: warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'W3WBaseLanguage' may have shared mutable state; this is an error in the Swift 6 language mode
96 |
97 |
98 | public struct W3WBaseLanguage: W3WLanguage, ExpressibleByStringLiteral {
| `- note: consider making struct 'W3WBaseLanguage' conform to the 'Sendable' protocol
99 | public typealias StringLiteralType = String
100 |
:
179 | }
180 |
181 | static public let english = W3WBaseLanguage(locale: "en_gb")
| |- warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'W3WBaseLanguage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'english' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
182 | }
183 |
[40/65] Compiling W3WSwiftCore W3WStreetAddressKey.swift
[41/65] Compiling W3WSwiftCore W3WDuration.swift
[42/65] Compiling W3WSwiftCore ClosureDefinitions.swift
[43/65] Compiling W3WSwiftCore LanguageUtils.swift
[44/65] Compiling W3WSwiftCore W3WError+W3WSwiftCore.swift
[45/65] Compiling W3WSwiftCore W3WMeasurementSystem.swift
[46/65] Compiling W3WSwiftCore W3WThread.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WThread.swift:56:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
54 | } else {
55 | DispatchQueue.global(qos: .userInitiated).async {
56 | block()
| |- warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
57 | }
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WThread.swift:24:9: warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
22 | } else {
23 | DispatchQueue.main.async {
24 | block()
| |- warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'block' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WThread.swift:32:7: warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
30 | static public func queueOnMain(_ block: @escaping () -> ()) {
31 | DispatchQueue.main.async {
32 | block()
| |- warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'block' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WThread.swift:39:7: warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
37 | static public func runIn(duration: W3WDuration, _ block: @escaping () -> ()) {
38 | DispatchQueue.main.asyncAfter(deadline: .now() + duration.seconds) {
39 | block()
| |- warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'block' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
40 | }
41 | }
[47/65] Compiling W3WSwiftCore W3WBox.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WThread.swift:56:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
54 | } else {
55 | DispatchQueue.global(qos: .userInitiated).async {
56 | block()
| |- warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
57 | }
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WThread.swift:24:9: warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
22 | } else {
23 | DispatchQueue.main.async {
24 | block()
| |- warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'block' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WThread.swift:32:7: warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
30 | static public func queueOnMain(_ block: @escaping () -> ()) {
31 | DispatchQueue.main.async {
32 | block()
| |- warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'block' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WThread.swift:39:7: warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
37 | static public func runIn(duration: W3WDuration, _ block: @escaping () -> ()) {
38 | DispatchQueue.main.asyncAfter(deadline: .now() + duration.seconds) {
39 | block()
| |- warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'block' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
40 | }
41 | }
[48/65] Compiling W3WSwiftCore W3WCircle.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WThread.swift:56:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
54 | } else {
55 | DispatchQueue.global(qos: .userInitiated).async {
56 | block()
| |- warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
57 | }
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WThread.swift:24:9: warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
22 | } else {
23 | DispatchQueue.main.async {
24 | block()
| |- warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'block' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WThread.swift:32:7: warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
30 | static public func queueOnMain(_ block: @escaping () -> ()) {
31 | DispatchQueue.main.async {
32 | block()
| |- warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'block' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WThread.swift:39:7: warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
37 | static public func runIn(duration: W3WDuration, _ block: @escaping () -> ()) {
38 | DispatchQueue.main.asyncAfter(deadline: .now() + duration.seconds) {
39 | block()
| |- warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'block' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
40 | }
41 | }
[49/65] Compiling W3WSwiftCore W3WDistance.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WThread.swift:56:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
54 | } else {
55 | DispatchQueue.global(qos: .userInitiated).async {
56 | block()
| |- warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
57 | }
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WThread.swift:24:9: warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
22 | } else {
23 | DispatchQueue.main.async {
24 | block()
| |- warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'block' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WThread.swift:32:7: warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
30 | static public func queueOnMain(_ block: @escaping () -> ()) {
31 | DispatchQueue.main.async {
32 | block()
| |- warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'block' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WThread.swift:39:7: warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
37 | static public func runIn(duration: W3WDuration, _ block: @escaping () -> ()) {
38 | DispatchQueue.main.asyncAfter(deadline: .now() + duration.seconds) {
39 | block()
| |- warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'block' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
40 | }
41 | }
[50/65] Compiling W3WSwiftCore W3WLine.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WThread.swift:56:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
54 | } else {
55 | DispatchQueue.global(qos: .userInitiated).async {
56 | block()
| |- warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
57 | }
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WThread.swift:24:9: warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
22 | } else {
23 | DispatchQueue.main.async {
24 | block()
| |- warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'block' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WThread.swift:32:7: warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
30 | static public func queueOnMain(_ block: @escaping () -> ()) {
31 | DispatchQueue.main.async {
32 | block()
| |- warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'block' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WThread.swift:39:7: warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
37 | static public func runIn(duration: W3WDuration, _ block: @escaping () -> ()) {
38 | DispatchQueue.main.asyncAfter(deadline: .now() + duration.seconds) {
39 | block()
| |- warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'block' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
40 | }
41 | }
[51/65] Compiling W3WSwiftCore W3WPolygon.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WThread.swift:56:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
54 | } else {
55 | DispatchQueue.global(qos: .userInitiated).async {
56 | block()
| |- warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
57 | }
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WThread.swift:24:9: warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
22 | } else {
23 | DispatchQueue.main.async {
24 | block()
| |- warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'block' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WThread.swift:32:7: warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
30 | static public func queueOnMain(_ block: @escaping () -> ()) {
31 | DispatchQueue.main.async {
32 | block()
| |- warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'block' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Threading/W3WThread.swift:39:7: warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
37 | static public func runIn(duration: W3WDuration, _ block: @escaping () -> ()) {
38 | DispatchQueue.main.asyncAfter(deadline: .now() + duration.seconds) {
39 | block()
| |- warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'block' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
40 | }
41 | }
[52/65] Compiling W3WSwiftCore SdkExtension.swift
[53/65] Compiling W3WSwiftCore SdkTypes.swift
[54/65] Compiling W3WSwiftCore W3WGpsReading.swift
[55/65] Compiling W3WSwiftCore W3WGpsState.swift
[56/65] Compiling W3WSwiftCore W3WGpsStatus.swift
[57/65] Compiling W3WSwiftCore W3WProtocolV3.swift
[58/65] Compiling W3WSwiftCore W3WProtocolV4.swift
[59/65] Compiling W3WSwiftCore W3WUser.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Audio/W3WAudioRecorder.swift:245:7: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
243 |
244 | DispatchQueue.main.async {
245 | self.volumeUpdate(self.recordingLevel)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
246 | }
247 | }
[60/65] Compiling W3WSwiftCore W3WAudioRecorder.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Audio/W3WAudioRecorder.swift:245:7: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
243 |
244 | DispatchQueue.main.async {
245 | self.volumeUpdate(self.recordingLevel)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
246 | }
247 | }
[61/65] Compiling W3WSwiftCore W3WAudioRecording.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Audio/W3WAudioRecorder.swift:245:7: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
243 |
244 | DispatchQueue.main.async {
245 | self.volumeUpdate(self.recordingLevel)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
246 | }
247 | }
[62/65] Compiling W3WSwiftCore W3WAudioStream.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Audio/W3WAudioRecorder.swift:245:7: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
243 |
244 | DispatchQueue.main.async {
245 | self.volumeUpdate(self.recordingLevel)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
246 | }
247 | }
[63/65] Compiling W3WSwiftCore W3WEncoding.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Audio/W3WAudioRecorder.swift:245:7: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
243 |
244 | DispatchQueue.main.async {
245 | self.volumeUpdate(self.recordingLevel)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
246 | }
247 | }
[64/65] Compiling W3WSwiftCore W3WMicrophone.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Audio/W3WAudioRecorder.swift:245:7: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
243 |
244 | DispatchQueue.main.async {
245 | self.volumeUpdate(self.recordingLevel)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
246 | }
247 | }
[65/65] Compiling W3WSwiftCore ApiExtension.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/Audio/W3WAudioRecorder.swift:245:7: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
243 |
244 | DispatchQueue.main.async {
245 | self.volumeUpdate(self.recordingLevel)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
246 | }
247 | }
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.md
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/58] Compiling W3WSwiftCore SdkExtension.swift
[3/58] Compiling W3WSwiftCore SdkTypes.swift
[4/58] Compiling W3WSwiftCore W3WGpsReading.swift
[5/58] Compiling W3WSwiftCore W3WGpsState.swift
[6/58] Compiling W3WSwiftCore W3WGpsStatus.swift
[7/58] Compiling W3WSwiftCore W3WProtocolV3.swift
[8/58] Compiling W3WSwiftCore W3WProtocolV4.swift
[9/58] Compiling W3WSwiftCore W3WInputType.swift
[10/58] Compiling W3WSwiftCore W3WOption.swift
[11/58] Compiling W3WSwiftCore W3WOptionAcceptorProtocol.swift
[12/58] Compiling W3WSwiftCore W3WOptionProtocol.swift
[13/58] Compiling W3WSwiftCore W3WOptions.swift
[14/58] Compiling W3WSwiftCore W3WStreetAddress.swift
[15/58] Compiling W3WSwiftCore W3WRfcLanguage+W3WLanguage.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:66:37: error: 'Language' is only available in macOS 13 or newer
14 | /// - script (optional, 4 letters, titlecased)
15 | /// - region (optional, 2 letters or 3-digit number)
16 | public struct W3WRfcLanguage: W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing struct
17 | /// default language is "en". name's default can be changed externally to use a different language by an app if nessesary
18 | public static var `default` = W3WRfcLanguage(code: "en")
:
64 | @available(iOS 16, *)
65 | @available(watchOS 9, *)
66 | public init(from language: Locale.Language) {
| | `- error: 'Language' is only available in macOS 13 or newer
| `- note: add @available attribute to enclosing initializer
67 | self.code = language.code
68 | self.scriptCode = language.scriptCode
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:130:18: error: 'Language' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| | `- error: 'Language' is only available in macOS 13 or newer
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:27:30: error: 'language' is only available in macOS 13 or newer
14 | /// - script (optional, 4 letters, titlecased)
15 | /// - region (optional, 2 letters or 3-digit number)
16 | public struct W3WRfcLanguage: W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing struct
17 | /// default language is "en". name's default can be changed externally to use a different language by an app if nessesary
18 | public static var `default` = W3WRfcLanguage(code: "en")
:
22 | public var regionCode: String?
23 |
24 | public init(locale: Locale) {
| `- note: add @available attribute to enclosing initializer
25 | if #available(iOS 16, *), #available(watchOS 9, *) {
26 | // from iOS 16 supports getting script
27 | self.init(from: locale.language)
| |- error: 'language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
28 | } else {
29 | // no script for iOS < 16
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:97:30: error: 'Language' is only available in macOS 13 or newer
71 | }
72 |
73 | public extension W3WRfcLanguage {
| `- note: add @available attribute to enclosing extension
74 | /// if you want to init and validate that the language is supported on os, set `iOSCompatible` = `true`, or else = `false`
75 | /// if it's not valid, an error will be thrown
:
82 | }
83 | /// Initialize from a string
84 | init(from string: String) {
| `- note: add @available attribute to enclosing initializer
85 | // Normalize separators
86 | let normalized = string
:
95 |
96 | if #available(iOS 16, *), #available(watchOS 9, *) {
97 | self.init(from: Locale.Language(identifier: normalized))
| |- error: 'Language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
98 | } else {
99 | // Split into parts (e.g. zh-Hans-CN → ["zh", "Hans", "CN"])
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:97:30: error: 'init(identifier:)' is only available in macOS 13 or newer
71 | }
72 |
73 | public extension W3WRfcLanguage {
| `- note: add @available attribute to enclosing extension
74 | /// if you want to init and validate that the language is supported on os, set `iOSCompatible` = `true`, or else = `false`
75 | /// if it's not valid, an error will be thrown
:
82 | }
83 | /// Initialize from a string
84 | init(from string: String) {
| `- note: add @available attribute to enclosing initializer
85 | // Normalize separators
86 | let normalized = string
:
95 |
96 | if #available(iOS 16, *), #available(watchOS 9, *) {
97 | self.init(from: Locale.Language(identifier: normalized))
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
98 | } else {
99 | // Split into parts (e.g. zh-Hans-CN → ["zh", "Hans", "CN"])
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:132:12: error: 'languageCode' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
| `- note: add @available attribute to enclosing property
132 | return languageCode?.identifier
| |- error: 'languageCode' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
133 | }
134 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:136:17: error: 'script' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
133 | }
134 |
135 | public var scriptCode: String? {
| `- note: add @available attribute to enclosing property
136 | return self.script?.identifier
| |- error: 'script' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
137 | }
138 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:140:12: error: 'region' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
:
137 | }
138 |
139 | public var regionCode: String? {
| `- note: add @available attribute to enclosing property
140 | return region?.identifier
| |- error: 'region' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:21:29: error: 'Language' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
21 | let language = Locale.Language(identifier: identifier)
| |- error: 'Language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
22 | let langCode = language.code ?? ""
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:21:29: error: 'init(identifier:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
21 | let language = Locale.Language(identifier: identifier)
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
22 | let langCode = language.code ?? ""
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:26:17: error: 'isEquivalent(to:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
:
24 | // Check if code exists and is either equivalent to a standard locale or passes custom validation
25 | isValid = !langCode.isEmpty &&
26 | (language.isEquivalent(to: .init(identifier: langCode)) || identifier.isValidLocale)
| |- error: 'isEquivalent(to:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
27 | } else {
28 | isValid = identifier.isValidLocale
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:26:35: error: 'init(identifier:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
:
24 | // Check if code exists and is either equivalent to a standard locale or passes custom validation
25 | isValid = !langCode.isEmpty &&
26 | (language.isEquivalent(to: .init(identifier: langCode)) || identifier.isValidLocale)
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
27 | } else {
28 | isValid = identifier.isValidLocale
[16/58] Compiling W3WSwiftCore W3WRfcLanguage+W3WSdkLanguage.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:66:37: error: 'Language' is only available in macOS 13 or newer
14 | /// - script (optional, 4 letters, titlecased)
15 | /// - region (optional, 2 letters or 3-digit number)
16 | public struct W3WRfcLanguage: W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing struct
17 | /// default language is "en". name's default can be changed externally to use a different language by an app if nessesary
18 | public static var `default` = W3WRfcLanguage(code: "en")
:
64 | @available(iOS 16, *)
65 | @available(watchOS 9, *)
66 | public init(from language: Locale.Language) {
| | `- error: 'Language' is only available in macOS 13 or newer
| `- note: add @available attribute to enclosing initializer
67 | self.code = language.code
68 | self.scriptCode = language.scriptCode
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:130:18: error: 'Language' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| | `- error: 'Language' is only available in macOS 13 or newer
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:27:30: error: 'language' is only available in macOS 13 or newer
14 | /// - script (optional, 4 letters, titlecased)
15 | /// - region (optional, 2 letters or 3-digit number)
16 | public struct W3WRfcLanguage: W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing struct
17 | /// default language is "en". name's default can be changed externally to use a different language by an app if nessesary
18 | public static var `default` = W3WRfcLanguage(code: "en")
:
22 | public var regionCode: String?
23 |
24 | public init(locale: Locale) {
| `- note: add @available attribute to enclosing initializer
25 | if #available(iOS 16, *), #available(watchOS 9, *) {
26 | // from iOS 16 supports getting script
27 | self.init(from: locale.language)
| |- error: 'language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
28 | } else {
29 | // no script for iOS < 16
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:97:30: error: 'Language' is only available in macOS 13 or newer
71 | }
72 |
73 | public extension W3WRfcLanguage {
| `- note: add @available attribute to enclosing extension
74 | /// if you want to init and validate that the language is supported on os, set `iOSCompatible` = `true`, or else = `false`
75 | /// if it's not valid, an error will be thrown
:
82 | }
83 | /// Initialize from a string
84 | init(from string: String) {
| `- note: add @available attribute to enclosing initializer
85 | // Normalize separators
86 | let normalized = string
:
95 |
96 | if #available(iOS 16, *), #available(watchOS 9, *) {
97 | self.init(from: Locale.Language(identifier: normalized))
| |- error: 'Language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
98 | } else {
99 | // Split into parts (e.g. zh-Hans-CN → ["zh", "Hans", "CN"])
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:97:30: error: 'init(identifier:)' is only available in macOS 13 or newer
71 | }
72 |
73 | public extension W3WRfcLanguage {
| `- note: add @available attribute to enclosing extension
74 | /// if you want to init and validate that the language is supported on os, set `iOSCompatible` = `true`, or else = `false`
75 | /// if it's not valid, an error will be thrown
:
82 | }
83 | /// Initialize from a string
84 | init(from string: String) {
| `- note: add @available attribute to enclosing initializer
85 | // Normalize separators
86 | let normalized = string
:
95 |
96 | if #available(iOS 16, *), #available(watchOS 9, *) {
97 | self.init(from: Locale.Language(identifier: normalized))
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
98 | } else {
99 | // Split into parts (e.g. zh-Hans-CN → ["zh", "Hans", "CN"])
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:132:12: error: 'languageCode' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
| `- note: add @available attribute to enclosing property
132 | return languageCode?.identifier
| |- error: 'languageCode' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
133 | }
134 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:136:17: error: 'script' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
133 | }
134 |
135 | public var scriptCode: String? {
| `- note: add @available attribute to enclosing property
136 | return self.script?.identifier
| |- error: 'script' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
137 | }
138 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:140:12: error: 'region' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
:
137 | }
138 |
139 | public var regionCode: String? {
| `- note: add @available attribute to enclosing property
140 | return region?.identifier
| |- error: 'region' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:21:29: error: 'Language' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
21 | let language = Locale.Language(identifier: identifier)
| |- error: 'Language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
22 | let langCode = language.code ?? ""
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:21:29: error: 'init(identifier:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
21 | let language = Locale.Language(identifier: identifier)
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
22 | let langCode = language.code ?? ""
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:26:17: error: 'isEquivalent(to:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
:
24 | // Check if code exists and is either equivalent to a standard locale or passes custom validation
25 | isValid = !langCode.isEmpty &&
26 | (language.isEquivalent(to: .init(identifier: langCode)) || identifier.isValidLocale)
| |- error: 'isEquivalent(to:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
27 | } else {
28 | isValid = identifier.isValidLocale
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:26:35: error: 'init(identifier:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
:
24 | // Check if code exists and is either equivalent to a standard locale or passes custom validation
25 | isValid = !langCode.isEmpty &&
26 | (language.isEquivalent(to: .init(identifier: langCode)) || identifier.isValidLocale)
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
27 | } else {
28 | isValid = identifier.isValidLocale
[17/58] Compiling W3WSwiftCore W3WRfcLanguage.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:66:37: error: 'Language' is only available in macOS 13 or newer
14 | /// - script (optional, 4 letters, titlecased)
15 | /// - region (optional, 2 letters or 3-digit number)
16 | public struct W3WRfcLanguage: W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing struct
17 | /// default language is "en". name's default can be changed externally to use a different language by an app if nessesary
18 | public static var `default` = W3WRfcLanguage(code: "en")
:
64 | @available(iOS 16, *)
65 | @available(watchOS 9, *)
66 | public init(from language: Locale.Language) {
| | `- error: 'Language' is only available in macOS 13 or newer
| `- note: add @available attribute to enclosing initializer
67 | self.code = language.code
68 | self.scriptCode = language.scriptCode
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:130:18: error: 'Language' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| | `- error: 'Language' is only available in macOS 13 or newer
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:27:30: error: 'language' is only available in macOS 13 or newer
14 | /// - script (optional, 4 letters, titlecased)
15 | /// - region (optional, 2 letters or 3-digit number)
16 | public struct W3WRfcLanguage: W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing struct
17 | /// default language is "en". name's default can be changed externally to use a different language by an app if nessesary
18 | public static var `default` = W3WRfcLanguage(code: "en")
:
22 | public var regionCode: String?
23 |
24 | public init(locale: Locale) {
| `- note: add @available attribute to enclosing initializer
25 | if #available(iOS 16, *), #available(watchOS 9, *) {
26 | // from iOS 16 supports getting script
27 | self.init(from: locale.language)
| |- error: 'language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
28 | } else {
29 | // no script for iOS < 16
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:97:30: error: 'Language' is only available in macOS 13 or newer
71 | }
72 |
73 | public extension W3WRfcLanguage {
| `- note: add @available attribute to enclosing extension
74 | /// if you want to init and validate that the language is supported on os, set `iOSCompatible` = `true`, or else = `false`
75 | /// if it's not valid, an error will be thrown
:
82 | }
83 | /// Initialize from a string
84 | init(from string: String) {
| `- note: add @available attribute to enclosing initializer
85 | // Normalize separators
86 | let normalized = string
:
95 |
96 | if #available(iOS 16, *), #available(watchOS 9, *) {
97 | self.init(from: Locale.Language(identifier: normalized))
| |- error: 'Language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
98 | } else {
99 | // Split into parts (e.g. zh-Hans-CN → ["zh", "Hans", "CN"])
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:97:30: error: 'init(identifier:)' is only available in macOS 13 or newer
71 | }
72 |
73 | public extension W3WRfcLanguage {
| `- note: add @available attribute to enclosing extension
74 | /// if you want to init and validate that the language is supported on os, set `iOSCompatible` = `true`, or else = `false`
75 | /// if it's not valid, an error will be thrown
:
82 | }
83 | /// Initialize from a string
84 | init(from string: String) {
| `- note: add @available attribute to enclosing initializer
85 | // Normalize separators
86 | let normalized = string
:
95 |
96 | if #available(iOS 16, *), #available(watchOS 9, *) {
97 | self.init(from: Locale.Language(identifier: normalized))
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
98 | } else {
99 | // Split into parts (e.g. zh-Hans-CN → ["zh", "Hans", "CN"])
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:132:12: error: 'languageCode' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
| `- note: add @available attribute to enclosing property
132 | return languageCode?.identifier
| |- error: 'languageCode' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
133 | }
134 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:136:17: error: 'script' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
133 | }
134 |
135 | public var scriptCode: String? {
| `- note: add @available attribute to enclosing property
136 | return self.script?.identifier
| |- error: 'script' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
137 | }
138 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:140:12: error: 'region' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
:
137 | }
138 |
139 | public var regionCode: String? {
| `- note: add @available attribute to enclosing property
140 | return region?.identifier
| |- error: 'region' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:21:29: error: 'Language' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
21 | let language = Locale.Language(identifier: identifier)
| |- error: 'Language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
22 | let langCode = language.code ?? ""
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:21:29: error: 'init(identifier:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
21 | let language = Locale.Language(identifier: identifier)
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
22 | let langCode = language.code ?? ""
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:26:17: error: 'isEquivalent(to:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
:
24 | // Check if code exists and is either equivalent to a standard locale or passes custom validation
25 | isValid = !langCode.isEmpty &&
26 | (language.isEquivalent(to: .init(identifier: langCode)) || identifier.isValidLocale)
| |- error: 'isEquivalent(to:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
27 | } else {
28 | isValid = identifier.isValidLocale
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:26:35: error: 'init(identifier:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
:
24 | // Check if code exists and is either equivalent to a standard locale or passes custom validation
25 | isValid = !langCode.isEmpty &&
26 | (language.isEquivalent(to: .init(identifier: langCode)) || identifier.isValidLocale)
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
27 | } else {
28 | isValid = identifier.isValidLocale
[18/58] Compiling W3WSwiftCore W3WRfcLanguageProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:66:37: error: 'Language' is only available in macOS 13 or newer
14 | /// - script (optional, 4 letters, titlecased)
15 | /// - region (optional, 2 letters or 3-digit number)
16 | public struct W3WRfcLanguage: W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing struct
17 | /// default language is "en". name's default can be changed externally to use a different language by an app if nessesary
18 | public static var `default` = W3WRfcLanguage(code: "en")
:
64 | @available(iOS 16, *)
65 | @available(watchOS 9, *)
66 | public init(from language: Locale.Language) {
| | `- error: 'Language' is only available in macOS 13 or newer
| `- note: add @available attribute to enclosing initializer
67 | self.code = language.code
68 | self.scriptCode = language.scriptCode
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:130:18: error: 'Language' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| | `- error: 'Language' is only available in macOS 13 or newer
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:27:30: error: 'language' is only available in macOS 13 or newer
14 | /// - script (optional, 4 letters, titlecased)
15 | /// - region (optional, 2 letters or 3-digit number)
16 | public struct W3WRfcLanguage: W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing struct
17 | /// default language is "en". name's default can be changed externally to use a different language by an app if nessesary
18 | public static var `default` = W3WRfcLanguage(code: "en")
:
22 | public var regionCode: String?
23 |
24 | public init(locale: Locale) {
| `- note: add @available attribute to enclosing initializer
25 | if #available(iOS 16, *), #available(watchOS 9, *) {
26 | // from iOS 16 supports getting script
27 | self.init(from: locale.language)
| |- error: 'language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
28 | } else {
29 | // no script for iOS < 16
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:97:30: error: 'Language' is only available in macOS 13 or newer
71 | }
72 |
73 | public extension W3WRfcLanguage {
| `- note: add @available attribute to enclosing extension
74 | /// if you want to init and validate that the language is supported on os, set `iOSCompatible` = `true`, or else = `false`
75 | /// if it's not valid, an error will be thrown
:
82 | }
83 | /// Initialize from a string
84 | init(from string: String) {
| `- note: add @available attribute to enclosing initializer
85 | // Normalize separators
86 | let normalized = string
:
95 |
96 | if #available(iOS 16, *), #available(watchOS 9, *) {
97 | self.init(from: Locale.Language(identifier: normalized))
| |- error: 'Language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
98 | } else {
99 | // Split into parts (e.g. zh-Hans-CN → ["zh", "Hans", "CN"])
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:97:30: error: 'init(identifier:)' is only available in macOS 13 or newer
71 | }
72 |
73 | public extension W3WRfcLanguage {
| `- note: add @available attribute to enclosing extension
74 | /// if you want to init and validate that the language is supported on os, set `iOSCompatible` = `true`, or else = `false`
75 | /// if it's not valid, an error will be thrown
:
82 | }
83 | /// Initialize from a string
84 | init(from string: String) {
| `- note: add @available attribute to enclosing initializer
85 | // Normalize separators
86 | let normalized = string
:
95 |
96 | if #available(iOS 16, *), #available(watchOS 9, *) {
97 | self.init(from: Locale.Language(identifier: normalized))
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
98 | } else {
99 | // Split into parts (e.g. zh-Hans-CN → ["zh", "Hans", "CN"])
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:132:12: error: 'languageCode' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
| `- note: add @available attribute to enclosing property
132 | return languageCode?.identifier
| |- error: 'languageCode' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
133 | }
134 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:136:17: error: 'script' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
133 | }
134 |
135 | public var scriptCode: String? {
| `- note: add @available attribute to enclosing property
136 | return self.script?.identifier
| |- error: 'script' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
137 | }
138 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:140:12: error: 'region' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
:
137 | }
138 |
139 | public var regionCode: String? {
| `- note: add @available attribute to enclosing property
140 | return region?.identifier
| |- error: 'region' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:21:29: error: 'Language' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
21 | let language = Locale.Language(identifier: identifier)
| |- error: 'Language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
22 | let langCode = language.code ?? ""
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:21:29: error: 'init(identifier:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
21 | let language = Locale.Language(identifier: identifier)
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
22 | let langCode = language.code ?? ""
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:26:17: error: 'isEquivalent(to:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
:
24 | // Check if code exists and is either equivalent to a standard locale or passes custom validation
25 | isValid = !langCode.isEmpty &&
26 | (language.isEquivalent(to: .init(identifier: langCode)) || identifier.isValidLocale)
| |- error: 'isEquivalent(to:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
27 | } else {
28 | isValid = identifier.isValidLocale
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:26:35: error: 'init(identifier:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
:
24 | // Check if code exists and is either equivalent to a standard locale or passes custom validation
25 | isValid = !langCode.isEmpty &&
26 | (language.isEquivalent(to: .init(identifier: langCode)) || identifier.isValidLocale)
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
27 | } else {
28 | isValid = identifier.isValidLocale
[19/58] Compiling W3WSwiftCore W3WRfcLanguageProtocols.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:66:37: error: 'Language' is only available in macOS 13 or newer
14 | /// - script (optional, 4 letters, titlecased)
15 | /// - region (optional, 2 letters or 3-digit number)
16 | public struct W3WRfcLanguage: W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing struct
17 | /// default language is "en". name's default can be changed externally to use a different language by an app if nessesary
18 | public static var `default` = W3WRfcLanguage(code: "en")
:
64 | @available(iOS 16, *)
65 | @available(watchOS 9, *)
66 | public init(from language: Locale.Language) {
| | `- error: 'Language' is only available in macOS 13 or newer
| `- note: add @available attribute to enclosing initializer
67 | self.code = language.code
68 | self.scriptCode = language.scriptCode
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:130:18: error: 'Language' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| | `- error: 'Language' is only available in macOS 13 or newer
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:27:30: error: 'language' is only available in macOS 13 or newer
14 | /// - script (optional, 4 letters, titlecased)
15 | /// - region (optional, 2 letters or 3-digit number)
16 | public struct W3WRfcLanguage: W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing struct
17 | /// default language is "en". name's default can be changed externally to use a different language by an app if nessesary
18 | public static var `default` = W3WRfcLanguage(code: "en")
:
22 | public var regionCode: String?
23 |
24 | public init(locale: Locale) {
| `- note: add @available attribute to enclosing initializer
25 | if #available(iOS 16, *), #available(watchOS 9, *) {
26 | // from iOS 16 supports getting script
27 | self.init(from: locale.language)
| |- error: 'language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
28 | } else {
29 | // no script for iOS < 16
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:97:30: error: 'Language' is only available in macOS 13 or newer
71 | }
72 |
73 | public extension W3WRfcLanguage {
| `- note: add @available attribute to enclosing extension
74 | /// if you want to init and validate that the language is supported on os, set `iOSCompatible` = `true`, or else = `false`
75 | /// if it's not valid, an error will be thrown
:
82 | }
83 | /// Initialize from a string
84 | init(from string: String) {
| `- note: add @available attribute to enclosing initializer
85 | // Normalize separators
86 | let normalized = string
:
95 |
96 | if #available(iOS 16, *), #available(watchOS 9, *) {
97 | self.init(from: Locale.Language(identifier: normalized))
| |- error: 'Language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
98 | } else {
99 | // Split into parts (e.g. zh-Hans-CN → ["zh", "Hans", "CN"])
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:97:30: error: 'init(identifier:)' is only available in macOS 13 or newer
71 | }
72 |
73 | public extension W3WRfcLanguage {
| `- note: add @available attribute to enclosing extension
74 | /// if you want to init and validate that the language is supported on os, set `iOSCompatible` = `true`, or else = `false`
75 | /// if it's not valid, an error will be thrown
:
82 | }
83 | /// Initialize from a string
84 | init(from string: String) {
| `- note: add @available attribute to enclosing initializer
85 | // Normalize separators
86 | let normalized = string
:
95 |
96 | if #available(iOS 16, *), #available(watchOS 9, *) {
97 | self.init(from: Locale.Language(identifier: normalized))
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
98 | } else {
99 | // Split into parts (e.g. zh-Hans-CN → ["zh", "Hans", "CN"])
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:132:12: error: 'languageCode' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
| `- note: add @available attribute to enclosing property
132 | return languageCode?.identifier
| |- error: 'languageCode' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
133 | }
134 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:136:17: error: 'script' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
133 | }
134 |
135 | public var scriptCode: String? {
| `- note: add @available attribute to enclosing property
136 | return self.script?.identifier
| |- error: 'script' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
137 | }
138 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:140:12: error: 'region' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
:
137 | }
138 |
139 | public var regionCode: String? {
| `- note: add @available attribute to enclosing property
140 | return region?.identifier
| |- error: 'region' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:21:29: error: 'Language' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
21 | let language = Locale.Language(identifier: identifier)
| |- error: 'Language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
22 | let langCode = language.code ?? ""
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:21:29: error: 'init(identifier:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
21 | let language = Locale.Language(identifier: identifier)
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
22 | let langCode = language.code ?? ""
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:26:17: error: 'isEquivalent(to:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
:
24 | // Check if code exists and is either equivalent to a standard locale or passes custom validation
25 | isValid = !langCode.isEmpty &&
26 | (language.isEquivalent(to: .init(identifier: langCode)) || identifier.isValidLocale)
| |- error: 'isEquivalent(to:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
27 | } else {
28 | isValid = identifier.isValidLocale
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:26:35: error: 'init(identifier:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
:
24 | // Check if code exists and is either equivalent to a standard locale or passes custom validation
25 | isValid = !langCode.isEmpty &&
26 | (language.isEquivalent(to: .init(identifier: langCode)) || identifier.isValidLocale)
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
27 | } else {
28 | isValid = identifier.isValidLocale
[20/58] Compiling W3WSwiftCore W3WDebouncer.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:66:37: error: 'Language' is only available in macOS 13 or newer
14 | /// - script (optional, 4 letters, titlecased)
15 | /// - region (optional, 2 letters or 3-digit number)
16 | public struct W3WRfcLanguage: W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing struct
17 | /// default language is "en". name's default can be changed externally to use a different language by an app if nessesary
18 | public static var `default` = W3WRfcLanguage(code: "en")
:
64 | @available(iOS 16, *)
65 | @available(watchOS 9, *)
66 | public init(from language: Locale.Language) {
| | `- error: 'Language' is only available in macOS 13 or newer
| `- note: add @available attribute to enclosing initializer
67 | self.code = language.code
68 | self.scriptCode = language.scriptCode
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:130:18: error: 'Language' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| | `- error: 'Language' is only available in macOS 13 or newer
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:27:30: error: 'language' is only available in macOS 13 or newer
14 | /// - script (optional, 4 letters, titlecased)
15 | /// - region (optional, 2 letters or 3-digit number)
16 | public struct W3WRfcLanguage: W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing struct
17 | /// default language is "en". name's default can be changed externally to use a different language by an app if nessesary
18 | public static var `default` = W3WRfcLanguage(code: "en")
:
22 | public var regionCode: String?
23 |
24 | public init(locale: Locale) {
| `- note: add @available attribute to enclosing initializer
25 | if #available(iOS 16, *), #available(watchOS 9, *) {
26 | // from iOS 16 supports getting script
27 | self.init(from: locale.language)
| |- error: 'language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
28 | } else {
29 | // no script for iOS < 16
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:97:30: error: 'Language' is only available in macOS 13 or newer
71 | }
72 |
73 | public extension W3WRfcLanguage {
| `- note: add @available attribute to enclosing extension
74 | /// if you want to init and validate that the language is supported on os, set `iOSCompatible` = `true`, or else = `false`
75 | /// if it's not valid, an error will be thrown
:
82 | }
83 | /// Initialize from a string
84 | init(from string: String) {
| `- note: add @available attribute to enclosing initializer
85 | // Normalize separators
86 | let normalized = string
:
95 |
96 | if #available(iOS 16, *), #available(watchOS 9, *) {
97 | self.init(from: Locale.Language(identifier: normalized))
| |- error: 'Language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
98 | } else {
99 | // Split into parts (e.g. zh-Hans-CN → ["zh", "Hans", "CN"])
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:97:30: error: 'init(identifier:)' is only available in macOS 13 or newer
71 | }
72 |
73 | public extension W3WRfcLanguage {
| `- note: add @available attribute to enclosing extension
74 | /// if you want to init and validate that the language is supported on os, set `iOSCompatible` = `true`, or else = `false`
75 | /// if it's not valid, an error will be thrown
:
82 | }
83 | /// Initialize from a string
84 | init(from string: String) {
| `- note: add @available attribute to enclosing initializer
85 | // Normalize separators
86 | let normalized = string
:
95 |
96 | if #available(iOS 16, *), #available(watchOS 9, *) {
97 | self.init(from: Locale.Language(identifier: normalized))
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
98 | } else {
99 | // Split into parts (e.g. zh-Hans-CN → ["zh", "Hans", "CN"])
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:132:12: error: 'languageCode' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
| `- note: add @available attribute to enclosing property
132 | return languageCode?.identifier
| |- error: 'languageCode' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
133 | }
134 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:136:17: error: 'script' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
133 | }
134 |
135 | public var scriptCode: String? {
| `- note: add @available attribute to enclosing property
136 | return self.script?.identifier
| |- error: 'script' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
137 | }
138 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:140:12: error: 'region' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
:
137 | }
138 |
139 | public var regionCode: String? {
| `- note: add @available attribute to enclosing property
140 | return region?.identifier
| |- error: 'region' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:21:29: error: 'Language' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
21 | let language = Locale.Language(identifier: identifier)
| |- error: 'Language' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
22 | let langCode = language.code ?? ""
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:21:29: error: 'init(identifier:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
21 | let language = Locale.Language(identifier: identifier)
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
22 | let langCode = language.code ?? ""
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:26:17: error: 'isEquivalent(to:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
:
24 | // Check if code exists and is either equivalent to a standard locale or passes custom validation
25 | isValid = !langCode.isEmpty &&
26 | (language.isEquivalent(to: .init(identifier: langCode)) || identifier.isValidLocale)
| |- error: 'isEquivalent(to:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
27 | } else {
28 | isValid = identifier.isValidLocale
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguageProtocol.swift:26:35: error: 'init(identifier:)' is only available in macOS 13 or newer
14 | }
15 |
16 | public extension W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing extension
17 | // validate if language is supported by os, or else throw error
18 | static func validateiOSCompatibility(identifier: String) throws {
| `- note: add @available attribute to enclosing static method
19 | let isValid: Bool
20 | if #available(iOS 16, watchOS 9, *) {
:
24 | // Check if code exists and is either equivalent to a standard locale or passes custom validation
25 | isValid = !langCode.isEmpty &&
26 | (language.isEquivalent(to: .init(identifier: langCode)) || identifier.isValidLocale)
| |- error: 'init(identifier:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
27 | } else {
28 | isValid = identifier.isValidLocale
[21/64] Compiling W3WSwiftCore W3WStreetAddressKey.swift
[22/64] Compiling W3WSwiftCore W3WDuration.swift
[23/64] Compiling W3WSwiftCore ClosureDefinitions.swift
[24/64] Compiling W3WSwiftCore LanguageUtils.swift
[25/64] Compiling W3WSwiftCore W3WError+W3WSwiftCore.swift
[26/64] Compiling W3WSwiftCore W3WMeasurementSystem.swift
[27/64] Compiling W3WSwiftCore Combine+Extensions.swift
[28/64] Compiling W3WSwiftCore W3WEvent.swift
[29/64] Compiling W3WSwiftCore W3WEventSubscriberProtocol.swift
[30/64] Compiling W3WSwiftCore W3WEventsSubscriptions.swift
[31/64] Compiling W3WSwiftCore W3WLive.swift
[32/64] Compiling W3WSwiftCore W3WRegex.swift
[33/64] Compiling W3WSwiftCore W3WMockTranslation.swift
[34/64] Compiling W3WSwiftCore W3WTranslate.swift
[35/64] Compiling W3WSwiftCore W3WTranslationsProtocol.swift
[36/64] Compiling W3WSwiftCore NetworkConnection.swift
[37/64] Compiling W3WSwiftCore W3WJson.swift
[38/64] Compiling W3WSwiftCore W3WRequest.swift
[39/64] Compiling W3WSwiftCore W3WUtilitiesProtocol.swift
[40/64] Compiling W3WSwiftCore W3WWritingDirection.swift
[41/64] Compiling W3WSwiftCore W3WCountry.swift
[42/64] Compiling W3WSwiftCore W3WLanguage.swift
[43/64] Compiling W3WSwiftCore W3WRanked.swift
[44/64] Compiling W3WSwiftCore W3WSquare.swift
[45/64] Compiling W3WSwiftCore W3WThread.swift
[46/64] Compiling W3WSwiftCore W3WBox.swift
[47/64] Compiling W3WSwiftCore W3WCircle.swift
[48/64] Compiling W3WSwiftCore W3WDistance.swift
[49/64] Compiling W3WSwiftCore W3WLine.swift
[50/64] Compiling W3WSwiftCore W3WPolygon.swift
[51/64] Compiling W3WSwiftCore W3WSuggestion.swift
[52/64] Compiling W3WSwiftCore W3WAudioStreamProtocol.swift
[53/64] Compiling W3WSwiftCore W3WVoiceListeningState.swift
[54/64] Compiling W3WSwiftCore W3WVoiceProtocol.swift
[55/64] Compiling W3WSwiftCore W3WVoiceSuggestion+W3WSwiftCore.swift
[56/64] Compiling W3WSwiftCore W3WSettings+W3WSwiftCore.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[57/64] Compiling W3WSwiftCore W3WUser.swift
[58/64] Compiling W3WSwiftCore W3WAudioRecorder.swift
[59/64] Compiling W3WSwiftCore W3WAudioRecording.swift
[60/64] Compiling W3WSwiftCore W3WAudioStream.swift
[61/64] Compiling W3WSwiftCore W3WEncoding.swift
[62/64] Compiling W3WSwiftCore W3WMicrophone.swift
[63/64] Compiling W3WSwiftCore ApiExtension.swift
[64/64] Emitting module W3WSwiftCore
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:66:37: error: 'Language' is only available in macOS 13 or newer
14 | /// - script (optional, 4 letters, titlecased)
15 | /// - region (optional, 2 letters or 3-digit number)
16 | public struct W3WRfcLanguage: W3WRfcLanguageProtocol {
| `- note: add @available attribute to enclosing struct
17 | /// default language is "en". name's default can be changed externally to use a different language by an app if nessesary
18 | public static var `default` = W3WRfcLanguage(code: "en")
:
64 | @available(iOS 16, *)
65 | @available(watchOS 9, *)
66 | public init(from language: Locale.Language) {
| | `- error: 'Language' is only available in macOS 13 or newer
| `- note: add @available attribute to enclosing initializer
67 | self.code = language.code
68 | self.scriptCode = language.scriptCode
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.swift:130:18: error: 'Language' is only available in macOS 13 or newer
128 | @available(watchOS 9, *)
129 | @available(iOS 16, *)
130 | extension Locale.Language : W3WRfcLanguageProtocol {
| | `- error: 'Language' is only available in macOS 13 or newer
| `- note: add @available attribute to enclosing extension
131 | public var code: String? {
132 | return languageCode?.identifier
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.md
BUILD FAILURE 6.1 macosSpm