Build Information
Failed to build w3w-swift-wrapper, reference master (3c0115), with Swift 6.3 for macOS (SPM) on 21 Apr 2026 18:00:24 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.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-wrapper.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/what3words/w3w-swift-wrapper
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 3c01152 Merge pull request #18 from what3words/staging
Cloned https://github.com/what3words/w3w-swift-wrapper.git
Revision (git rev-parse @):
3c01152aa316b7a9714f038b34a8adb4adeb7c4a
SUCCESS checkout https://github.com/what3words/w3w-swift-wrapper.git at master
Fetching https://github.com/what3words/w3w-swift-voice-api.git
Fetching https://github.com/what3words/w3w-swift-core.git
[1/55] Fetching w3w-swift-voice-api
[51/787] Fetching w3w-swift-voice-api, w3w-swift-core
Fetched https://github.com/what3words/w3w-swift-voice-api.git from cache (0.94s)
Fetched https://github.com/what3words/w3w-swift-core.git from cache (0.94s)
Computing version for https://github.com/what3words/w3w-swift-voice-api.git
Computed https://github.com/what3words/w3w-swift-voice-api.git at 1.0.0 (1.66s)
Computing version for https://github.com/what3words/w3w-swift-core.git
Computed https://github.com/what3words/w3w-swift-core.git at 1.2.0 (0.68s)
Creating working copy for https://github.com/what3words/w3w-swift-voice-api.git
Working copy of https://github.com/what3words/w3w-swift-voice-api.git resolved at 1.0.0
Creating working copy for https://github.com/what3words/w3w-swift-core.git
Working copy of https://github.com/what3words/w3w-swift-core.git resolved at 1.2.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"traits": [
"default"
],
"dependencies": [
{
"identity": "w3w-swift-wrapper",
"name": "w3w-swift-wrapper",
"url": "https://github.com/what3words/w3w-swift-wrapper.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/w3w-swift-wrapper",
"traits": [
"default"
],
"dependencies": [
{
"identity": "w3w-swift-core",
"name": "w3w-swift-core",
"url": "https://github.com/what3words/w3w-swift-core.git",
"version": "1.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/w3w-swift-core",
"traits": [
"default"
],
"dependencies": [
]
},
{
"identity": "w3w-swift-voice-api",
"name": "w3w-swift-voice-api",
"url": "https://github.com/what3words/w3w-swift-voice-api.git",
"version": "1.0.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/w3w-swift-voice-api",
"traits": [
"default"
],
"dependencies": [
{
"identity": "w3w-swift-core",
"name": "w3w-swift-core",
"url": "https://github.com/what3words/w3w-swift-core.git",
"version": "1.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/w3w-swift-core",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
]
}
]
}
Fetching https://github.com/what3words/w3w-swift-wrapper.git
[1/1979] Fetching w3w-swift-wrapper
Fetched https://github.com/what3words/w3w-swift-wrapper.git from cache (1.11s)
Fetching https://github.com/what3words/w3w-swift-voice-api.git from cache
Fetching https://github.com/what3words/w3w-swift-core.git from cache
Fetched https://github.com/what3words/w3w-swift-voice-api.git from cache (0.45s)
Fetched https://github.com/what3words/w3w-swift-core.git from cache (0.47s)
Computing version for https://github.com/what3words/w3w-swift-voice-api.git
Computed https://github.com/what3words/w3w-swift-voice-api.git at 1.0.0 (0.54s)
Computing version for https://github.com/what3words/w3w-swift-core.git
Computed https://github.com/what3words/w3w-swift-core.git at 1.2.0 (0.03s)
Creating working copy for https://github.com/what3words/w3w-swift-core.git
Working copy of https://github.com/what3words/w3w-swift-core.git resolved at 1.2.0
Creating working copy for https://github.com/what3words/w3w-swift-voice-api.git
Working copy of https://github.com/what3words/w3w-swift-voice-api.git resolved at 1.0.0
Creating working copy for https://github.com/what3words/w3w-swift-wrapper.git
Working copy of https://github.com/what3words/w3w-swift-wrapper.git resolved at master (3c01152)
warning: '.resolve-product-dependencies': dependency 'w3w-swift-wrapper' is not used by any target
Found 2 product dependencies
- w3w-swift-core
- w3w-swift-voice-api
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/what3words/w3w-swift-wrapper.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version--6988338F2F200930.txt
[5/61] Compiling W3WSwiftCore Combine+Extensions.swift
[6/61] Compiling W3WSwiftCore W3WEvent.swift
[7/61] Compiling W3WSwiftCore W3WEventSubscriberProtocol.swift
[8/61] Compiling W3WSwiftCore W3WEventsSubscriptions.swift
[9/61] Compiling W3WSwiftCore W3WLive.swift
[10/61] Compiling W3WSwiftCore W3WRegex.swift
[11/67] Compiling W3WSwiftCore W3WStreetAddressKey.swift
[12/67] Compiling W3WSwiftCore W3WDuration.swift
[13/67] Compiling W3WSwiftCore ClosureDefinitions.swift
[14/67] Compiling W3WSwiftCore LanguageUtils.swift
[15/67] Compiling W3WSwiftCore W3WError+W3WSwiftCore.swift
[16/67] Compiling W3WSwiftCore W3WMeasurementSystem.swift
[17/67] Compiling W3WSwiftCore W3WRfcLanguage+W3WLanguage.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/67] Compiling W3WSwiftCore W3WRfcLanguage+W3WSdkLanguage.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/67] Compiling W3WSwiftCore W3WRfcLanguage.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/67] Compiling W3WSwiftCore W3WRfcLanguageProtocol.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/67] Compiling W3WSwiftCore W3WRfcLanguageProtocols.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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
[22/67] Compiling W3WSwiftCore W3WDebouncer.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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
[23/67] Compiling W3WSwiftCore W3WMockTranslation.swift
[24/67] Compiling W3WSwiftCore W3WTranslate.swift
[25/67] Compiling W3WSwiftCore W3WTranslationsProtocol.swift
[26/67] Compiling W3WSwiftCore NetworkConnection.swift
[27/67] Compiling W3WSwiftCore W3WJson.swift
[28/67] Compiling W3WSwiftCore W3WRequest.swift
[29/67] Compiling W3WSwiftCore W3WSuggestion.swift
[30/67] Compiling W3WSwiftCore W3WAudioStreamProtocol.swift
[31/67] Compiling W3WSwiftCore W3WVoiceListeningState.swift
[32/67] Compiling W3WSwiftCore W3WVoiceProtocol.swift
[33/67] Compiling W3WSwiftCore W3WVoiceSuggestion+W3WSwiftCore.swift
[34/67] Compiling W3WSwiftCore W3WSettings+W3WSwiftCore.swift
[35/67] Compiling W3WSwiftCore W3WThread.swift
[36/67] Compiling W3WSwiftCore W3WBox.swift
[37/67] Compiling W3WSwiftCore W3WCircle.swift
[38/67] Compiling W3WSwiftCore W3WDistance.swift
[39/67] Compiling W3WSwiftCore W3WLine.swift
[40/67] Compiling W3WSwiftCore W3WPolygon.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[41/67] Compiling W3WSwiftCore SdkExtension.swift
[42/67] Compiling W3WSwiftCore SdkTypes.swift
[43/67] Compiling W3WSwiftCore W3WGpsReading.swift
[44/67] Compiling W3WSwiftCore W3WGpsState.swift
[45/67] Compiling W3WSwiftCore W3WGpsStatus.swift
[46/67] Compiling W3WSwiftCore W3WProtocolV3.swift
[47/67] Compiling W3WSwiftCore W3WProtocolV4.swift
[48/67] Compiling W3WSwiftCore W3WUser.swift
[49/67] Compiling W3WSwiftCore W3WAudioRecorder.swift
[50/67] Compiling W3WSwiftCore W3WAudioRecording.swift
[51/67] Compiling W3WSwiftCore W3WAudioStream.swift
[52/67] Compiling W3WSwiftCore W3WEncoding.swift
[53/67] Compiling W3WSwiftCore W3WMicrophone.swift
[54/67] Compiling W3WSwiftCore ApiExtension.swift
[55/67] Compiling W3WSwiftCore W3WInputType.swift
[56/67] Compiling W3WSwiftCore W3WOption.swift
[57/67] Compiling W3WSwiftCore W3WOptionAcceptorProtocol.swift
[58/67] Compiling W3WSwiftCore W3WOptionProtocol.swift
[59/67] Compiling W3WSwiftCore W3WOptions.swift
[60/67] Compiling W3WSwiftCore W3WStreetAddress.swift
[61/67] Compiling W3WSwiftCore W3WUtilitiesProtocol.swift
[62/67] Compiling W3WSwiftCore W3WWritingDirection.swift
[63/67] Compiling W3WSwiftCore W3WCountry.swift
[64/67] Compiling W3WSwiftCore W3WLanguage.swift
[65/67] Compiling W3WSwiftCore W3WRanked.swift
[66/67] Compiling W3WSwiftCore W3WSquare.swift
[67/67] Emitting module W3WSwiftCore
/Users/admin/builder/spi-builder-workspace/.build/checkouts/w3w-swift-core/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/.build/checkouts/w3w-swift-core/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: 'w3w-swift-core': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/.build/checkouts/w3w-swift-core/Sources/W3WSwiftCore/RfcLanguage/W3WRfcLanguage.md
BUILD FAILURE 6.3 macosSpm