Build Information
Failed to build w3w-swift-core, reference v1.2.0 (cb0b96), with Swift 6.2 for macOS (SPM) on 19 Apr 2026 12:28:34 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/what3words/w3w-swift-core.git
Reference: v1.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/what3words/w3w-swift-core
* tag v1.2.0 -> FETCH_HEAD
HEAD is now at cb0b96b Merge pull request #32 from what3words/staging
Cloned https://github.com/what3words/w3w-swift-core.git
Revision (git rev-parse @):
cb0b96bfca22fde97d4549498480c22e587ab352
SUCCESS checkout https://github.com/what3words/w3w-swift-core.git at v1.2.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/what3words/w3w-swift-core.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--3CB7CFEC50E0D141.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/59] 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
[4/65] Compiling W3WSwiftCore W3WSuggestion.swift
[5/65] Compiling W3WSwiftCore W3WAudioStreamProtocol.swift
[6/65] Compiling W3WSwiftCore W3WVoiceListeningState.swift
[7/65] Compiling W3WSwiftCore W3WVoiceProtocol.swift
[8/65] Compiling W3WSwiftCore W3WVoiceSuggestion+W3WSwiftCore.swift
[9/65] Compiling W3WSwiftCore W3WSettings+W3WSwiftCore.swift
[10/65] 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
[11/65] 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
[12/65] 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
[13/65] 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
[14/65] 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
[15/65] 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
[16/65] Compiling W3WSwiftCore W3WStreetAddressKey.swift
[17/65] Compiling W3WSwiftCore W3WDuration.swift
[18/65] Compiling W3WSwiftCore ClosureDefinitions.swift
[19/65] Compiling W3WSwiftCore LanguageUtils.swift
[20/65] Compiling W3WSwiftCore W3WError+W3WSwiftCore.swift
[21/65] Compiling W3WSwiftCore W3WMeasurementSystem.swift
[22/65] Compiling W3WSwiftCore W3WInputType.swift
[23/65] Compiling W3WSwiftCore W3WOption.swift
[24/65] Compiling W3WSwiftCore W3WOptionAcceptorProtocol.swift
[25/65] Compiling W3WSwiftCore W3WOptionProtocol.swift
[26/65] Compiling W3WSwiftCore W3WOptions.swift
[27/65] Compiling W3WSwiftCore W3WStreetAddress.swift
[28/65] Compiling W3WSwiftCore W3WMockTranslation.swift
[29/65] Compiling W3WSwiftCore W3WTranslate.swift
[30/65] Compiling W3WSwiftCore W3WTranslationsProtocol.swift
[31/65] Compiling W3WSwiftCore NetworkConnection.swift
[32/65] Compiling W3WSwiftCore W3WJson.swift
[33/65] Compiling W3WSwiftCore W3WRequest.swift
[34/65] Compiling W3WSwiftCore W3WUtilitiesProtocol.swift
[35/65] Compiling W3WSwiftCore W3WWritingDirection.swift
[36/65] Compiling W3WSwiftCore W3WCountry.swift
[37/65] Compiling W3WSwiftCore W3WLanguage.swift
[38/65] Compiling W3WSwiftCore W3WRanked.swift
[39/65] Compiling W3WSwiftCore W3WSquare.swift
[40/65] Compiling W3WSwiftCore Combine+Extensions.swift
[41/65] Compiling W3WSwiftCore W3WEvent.swift
[42/65] Compiling W3WSwiftCore W3WEventSubscriberProtocol.swift
[43/65] Compiling W3WSwiftCore W3WEventsSubscriptions.swift
[44/65] Compiling W3WSwiftCore W3WLive.swift
[45/65] Compiling W3WSwiftCore W3WRegex.swift
[46/65] Compiling W3WSwiftCore W3WThread.swift
[47/65] Compiling W3WSwiftCore W3WBox.swift
[48/65] Compiling W3WSwiftCore W3WCircle.swift
[49/65] Compiling W3WSwiftCore W3WDistance.swift
[50/65] Compiling W3WSwiftCore W3WLine.swift
[51/65] Compiling W3WSwiftCore W3WPolygon.swift
[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
[60/65] Compiling W3WSwiftCore W3WAudioRecorder.swift
[61/65] Compiling W3WSwiftCore W3WAudioRecording.swift
[62/65] Compiling W3WSwiftCore W3WAudioStream.swift
[63/65] Compiling W3WSwiftCore W3WEncoding.swift
[64/65] Compiling W3WSwiftCore W3WMicrophone.swift
[65/65] Compiling W3WSwiftCore ApiExtension.swift
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.2 macosSpm