The Swift Package Index logo.Swift Package Index

Build Information

Failed to build w3w-swift-core, reference main (cb0b96), with Swift 6.3 for macOS (SPM) on 19 Apr 2026 11:23:32 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/what3words/w3w-swift-core.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/what3words/w3w-swift-core
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
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-core",
      "name": "w3w-swift-core",
      "url": "https://github.com/what3words/w3w-swift-core.git",
      "version": "unspecified",
      "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-core.git
[1/732] Fetching w3w-swift-core
Fetched https://github.com/what3words/w3w-swift-core.git from cache (0.80s)
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 main (cb0b96b)
warning: '.resolve-product-dependencies': dependency 'w3w-swift-core' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/what3words/w3w-swift-core.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.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 W3WStreetAddressKey.swift
[11/65] Compiling W3WSwiftCore W3WDuration.swift
[12/65] Compiling W3WSwiftCore ClosureDefinitions.swift
[13/65] Compiling W3WSwiftCore LanguageUtils.swift
[14/65] Compiling W3WSwiftCore W3WError+W3WSwiftCore.swift
[15/65] Compiling W3WSwiftCore W3WMeasurementSystem.swift
[16/65] Compiling W3WSwiftCore W3WMockTranslation.swift
[17/65] Compiling W3WSwiftCore W3WTranslate.swift
[18/65] Compiling W3WSwiftCore W3WTranslationsProtocol.swift
[19/65] Compiling W3WSwiftCore NetworkConnection.swift
[20/65] Compiling W3WSwiftCore W3WJson.swift
[21/65] Compiling W3WSwiftCore W3WRequest.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 SdkExtension.swift
[29/65] Compiling W3WSwiftCore SdkTypes.swift
[30/65] Compiling W3WSwiftCore W3WGpsReading.swift
[31/65] Compiling W3WSwiftCore W3WGpsState.swift
[32/65] Compiling W3WSwiftCore W3WGpsStatus.swift
[33/65] Compiling W3WSwiftCore W3WProtocolV3.swift
[34/65] Compiling W3WSwiftCore W3WProtocolV4.swift
[35/65] Compiling W3WSwiftCore W3WUtilitiesProtocol.swift
[36/65] Compiling W3WSwiftCore W3WWritingDirection.swift
[37/65] Compiling W3WSwiftCore W3WCountry.swift
[38/65] Compiling W3WSwiftCore W3WLanguage.swift
[39/65] Compiling W3WSwiftCore W3WRanked.swift
[40/65] Compiling W3WSwiftCore W3WSquare.swift
[41/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
[42/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
[43/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
[44/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
[45/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
[46/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
[47/65] Compiling W3WSwiftCore W3WThread.swift
[48/65] Compiling W3WSwiftCore W3WBox.swift
[49/65] Compiling W3WSwiftCore W3WCircle.swift
[50/65] Compiling W3WSwiftCore W3WDistance.swift
[51/65] Compiling W3WSwiftCore W3WLine.swift
[52/65] Compiling W3WSwiftCore W3WPolygon.swift
[53/65] Compiling W3WSwiftCore Combine+Extensions.swift
[54/65] Compiling W3WSwiftCore W3WEvent.swift
[55/65] Compiling W3WSwiftCore W3WEventSubscriberProtocol.swift
[56/65] Compiling W3WSwiftCore W3WEventsSubscriptions.swift
[57/65] Compiling W3WSwiftCore W3WLive.swift
[58/65] Compiling W3WSwiftCore W3WRegex.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.3 macosSpm