Build Information
Failed to build AnyMeasure, reference main (359f83), with Swift 6.1 for Wasm on 28 May 2025 19:11:28 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/wildthink/anymeasure.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/wildthink/anymeasure
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 359f83f wip - switch to use BaseTable
Cloned https://github.com/wildthink/anymeasure.git
Revision (git rev-parse @):
359f83fc3901b355d5bc62c6faea5099374ea471
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/wildthink/anymeasure.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/wildthink/anymeasure.git
https://github.com/wildthink/anymeasure.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-numerics",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-numerics"
},
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "AnyMeasure",
"name" : "AnyMeasure",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "8.0"
}
],
"products" : [
{
"name" : "AnyMeasure",
"targets" : [
"AnyMeasure"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AnyMeasureTests",
"module_type" : "SwiftTarget",
"name" : "AnyMeasureTests",
"path" : "Tests/AnyMeasureTests",
"sources" : [
"AnyMeasureTests.swift",
"Test.swift"
],
"target_dependencies" : [
"AnyMeasure"
],
"type" : "test"
},
{
"c99name" : "AnyMeasure",
"module_type" : "SwiftTarget",
"name" : "AnyMeasure",
"path" : "Sources/AnyMeasure",
"product_dependencies" : [
"Numerics"
],
"product_memberships" : [
"AnyMeasure"
],
"sources" : [
"AnyMeasure.swift",
"Core.swift",
"Currency.swift",
"Duration.swift",
"Extensions.swift",
"Interval.swift",
"IntervalMath.swift",
"Metric.swift",
"Quantity.swift",
"Ratio.swift",
"UnitCount.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-numerics
Fetching https://github.com/apple/swift-docc-plugin
[1/5691] Fetching swift-numerics
[2961/7740] Fetching swift-numerics, swift-docc-plugin
Fetched https://github.com/apple/swift-numerics from cache (0.59s)
Fetched https://github.com/apple/swift-docc-plugin from cache (0.59s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 0.1.0 (3.12s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (0.67s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3391] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.48s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.10s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.3
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 0.1.0
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/8] Write sources
[6/8] Compiling _NumericsShims _NumericsShims.c
[7/8] Write swift-version-24593BA9C3E375BF.txt
[9/18] Compiling RealModule ElementaryFunctions.swift
[10/19] Compiling RealModule Float16+Real.swift
[11/19] Compiling RealModule Float80+Real.swift
[12/19] Compiling RealModule Real.swift
[13/19] Compiling RealModule RealFunctions.swift
[14/19] Compiling RealModule Float+Real.swift
[15/19] Compiling RealModule AugmentedArithmetic.swift
[16/19] Compiling RealModule Double+Real.swift
[17/19] Compiling RealModule AlgebraicField.swift
[18/19] Compiling RealModule ApproximateEquality.swift
[19/19] Emitting module RealModule
[21/25] Compiling ComplexModule Differentiable.swift
[22/25] Compiling ComplexModule Complex.swift
[23/25] Compiling ComplexModule Arithmetic.swift
[24/25] Compiling ComplexModule ElementaryFunctions.swift
[25/25] Emitting module ComplexModule
[27/28] Emitting module Numerics
[28/28] Compiling Numerics Numerics.swift
[30/40] Compiling AnyMeasure IntervalMath.swift
[31/41] Compiling AnyMeasure UnitCount.swift
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:30:1: error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Unit'
28 | fatalError("init(coder:) has not been implemented")
29 | }
30 |
| `- error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Unit'
31 | public func randomValue(using gen: inout RandomNumberGenerator) -> NSMeasurement {
32 | let r = _range.randomValue(using: &gen)
Foundation.Unit.init:2:17: note: 'required' initializer is declared in superclass here
1 | class Unit {
2 | required public init(symbol: String)}
| `- note: 'required' initializer is declared in superclass here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:47:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
45 | public func unitString(
46 | style: Formatter.UnitStyle = .short,
47 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
48 | ) -> String {
49 | switch style {
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:64:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
62 | _ value: NSMeasurement,
63 | style: Formatter.UnitStyle = .short,
64 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
65 | ) -> String {
66 | let fmt = NumberFormatter()
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:61:26: error: instance method 'format(_:style:unit:)' is declared in extension of 'Unit' and cannot be overridden
59 | }
60 |
61 | public override func format(
| `- error: instance method 'format(_:style:unit:)' is declared in extension of 'Unit' and cannot be overridden
62 | _ value: NSMeasurement,
63 | style: Formatter.UnitStyle = .short,
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:107:16: note: overridden declaration is here
105 | public extension Unit {
106 |
107 | @objc func format(
| `- note: overridden declaration is here
108 | _ value: NSMeasurement,
109 | style: Formatter.UnitStyle = .short,
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:13:20: warning: class 'UnitCount' must restate inherited '@unchecked Sendable' conformance
11 |
12 |
13 | public final class UnitCount: Unit, UnitPresentation {
| `- warning: class 'UnitCount' must restate inherited '@unchecked Sendable' conformance
14 | public var label: String { "Count" }
15 | var _range: Interval<Double>
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:83:6: error: Objective-C interoperability is disabled
81 |
82 | extension Unit {
83 | @objc
| `- error: Objective-C interoperability is disabled
84 | public class func count(max: Double = 100) -> UnitCount {
85 | return UnitCount(range: 0...max)
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:90:6: error: Objective-C interoperability is disabled
88 |
89 | extension UnitCount {
90 | @objc
| `- error: Objective-C interoperability is disabled
91 | public override class func count(max: Double = 100) -> UnitCount {
92 | return UnitCount(range: 0...max)
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:91:32: error: class method 'count(max:)' is declared in extension of 'Unit' and cannot be overridden
82 | extension Unit {
83 | @objc
84 | public class func count(max: Double = 100) -> UnitCount {
| `- note: overridden declaration is here
85 | return UnitCount(range: 0...max)
86 | }
:
89 | extension UnitCount {
90 | @objc
91 | public override class func count(max: Double = 100) -> UnitCount {
| `- error: class method 'count(max:)' is declared in extension of 'Unit' and cannot be overridden
92 | return UnitCount(range: 0...max)
93 | }
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:119:20: warning: class 'UnitPercent' must restate inherited '@unchecked Sendable' conformance
117 | // MARK: Percent
118 | /// Percentage Unit
119 | final public class UnitPercent: Unit {
| `- warning: class 'UnitPercent' must restate inherited '@unchecked Sendable' conformance
120 |
121 | private struct Symbol {
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:109:38: error: ambiguous use of 'count(max:)'
82 | extension Unit {
83 | @objc
84 | public class func count(max: Double = 100) -> UnitCount {
| `- note: found this candidate
85 | return UnitCount(range: 0...max)
86 | }
:
89 | extension UnitCount {
90 | @objc
91 | public override class func count(max: Double = 100) -> UnitCount {
| `- note: found this candidate
92 | return UnitCount(range: 0...max)
93 | }
:
107 |
108 | static var zero: Measurement<UnitType> {
109 | Measurement(value: 0, unit: .count())
| `- error: ambiguous use of 'count(max:)'
110 | }
111 |
[32/41] Compiling AnyMeasure Quantity.swift
[33/41] Compiling AnyMeasure Metric.swift
/host/spi-builder-workspace/Sources/AnyMeasure/Metric.swift:36:1: error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Unit'
34 | fatalError("init(coder:) has not been implemented")
35 | }
36 |
| `- error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Unit'
37 | public func randomValue(using gen: inout RandomNumberGenerator) -> NSMeasurement {
38 | let r = _range.randomValue(using: &gen)
Foundation.Unit.init:2:17: note: 'required' initializer is declared in superclass here
1 | class Unit {
2 | required public init(symbol: String)}
| `- note: 'required' initializer is declared in superclass here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Metric.swift:53:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
51 | public func unitString(
52 | style: Formatter.UnitStyle = .short,
53 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
54 | ) -> String {
55 | switch style {
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/Metric.swift:70:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
68 | _ value: NSMeasurement,
69 | style: Formatter.UnitStyle = .short,
70 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
71 | ) -> String {
72 | let ms = units.format(value)
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/Metric.swift:67:26: error: instance method 'format(_:style:unit:)' is declared in extension of 'Unit' and cannot be overridden
65 | }
66 |
67 | public override func format(
| `- error: instance method 'format(_:style:unit:)' is declared in extension of 'Unit' and cannot be overridden
68 | _ value: NSMeasurement,
69 | style: Formatter.UnitStyle = .short,
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:107:16: note: overridden declaration is here
105 | public extension Unit {
106 |
107 | @objc func format(
| `- note: overridden declaration is here
108 | _ value: NSMeasurement,
109 | style: Formatter.UnitStyle = .short,
/host/spi-builder-workspace/Sources/AnyMeasure/Metric.swift:10:14: warning: class 'Metric' must restate inherited '@unchecked Sendable' conformance
8 | import Foundation
9 |
10 | public class Metric: Unit, UnitPresentation {
| `- warning: class 'Metric' must restate inherited '@unchecked Sendable' conformance
11 | public var label: String { subject.name }
12 | public var range: ClosedRange<Double> { _range.range }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[34/41] Compiling AnyMeasure AnyMeasure.swift
[35/41] Compiling AnyMeasure Core.swift
[36/41] Emitting module AnyMeasure
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:51:12: warning: class 'CurrencyConverter' must restate inherited '@unchecked Sendable' conformance
49 | business interruption, or loss of business opportunity.
50 | */
51 | open class CurrencyConverter: UnitConverterLinear {
| `- warning: class 'CurrencyConverter' must restate inherited '@unchecked Sendable' conformance
52 |
53 | // BIG List Below
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:118:1: error: 'required' initializer 'init(symbol:converter:)' must be provided by subclass of 'Dimension'
116 | super.init(symbol: sym, converter: CurrencyConverter(sym))
117 | }
118 |
| `- error: 'required' initializer 'init(symbol:converter:)' must be provided by subclass of 'Dimension'
119 | public override class func baseUnit() -> UnitCurrency {
120 | return UnitCurrency.USD
Foundation.Dimension.init:2:17: note: 'required' initializer is declared in superclass here
1 | class Dimension {
2 | required public init(symbol: String, converter: UnitConverter)}
| `- note: 'required' initializer is declared in superclass here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:88:23: warning: static property 'instantiateConverter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
86 | public final class UnitCurrency: Dimension, Codable {
87 |
88 | public static var instantiateConverter: (String) -> CurrencyConverter
| |- warning: static property 'instantiateConverter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'instantiateConverter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'instantiateConverter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 | = { symbol in CurrencyConverter(symbol) }
90 |
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:93:12: error: 'required' modifier must be present on all overrides of a required initializer
91 | var country_code: String?
92 |
93 | public init (symbol: String) {
| `- error: 'required' modifier must be present on all overrides of a required initializer
94 | super.init(symbol: symbol, converter: UnitCurrency.instantiateConverter(symbol))
95 | }
Foundation.Dimension.init:2:17: note: overridden required initializer is here
1 | class Dimension {
2 | required public init(symbol: String)}
| `- note: overridden required initializer is here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:86:20: warning: class 'UnitCurrency' must restate inherited '@unchecked Sendable' conformance
84 | }
85 |
86 | public final class UnitCurrency: Dimension, Codable {
| `- warning: class 'UnitCurrency' must restate inherited '@unchecked Sendable' conformance
87 |
88 | public static var instantiateConverter: (String) -> CurrencyConverter
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:128:23: warning: static property 'Local' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
126 | extension UnitCurrency {
127 |
128 | public static var Local = UnitCurrency.USD
| |- warning: static property 'Local' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'Local' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'Local' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
129 |
130 | public static let USD = UnitCurrency(symbol: "USD")
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:403:16: warning: static property 'jsonData' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
401 | }
402 |
403 | static var jsonData = """
| |- warning: static property 'jsonData' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonData' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'jsonData' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
404 | {"result":"success","provider":"https://www.exchangerate-api.com","documentation":"https://www.exchangerate-api.com/docs/free","terms_of_use":"https://www.exchangerate-api.com/terms","time_last_update_unix":1724025751,"time_last_update_utc":"Mon, 19 Aug 2024 00:02:31 +0000","time_next_update_unix":1724112381,"time_next_update_utc":"Tue, 20 Aug 2024 00:06:21 +0000","time_eol_unix":0,"base_code":"USD","rates":{"USD":1,"AED":3.6725,"AFN":71.016252,"ALL":90.546764,"AMD":388.108035,"ANG":1.79,"AOA":896.224421,"ARS":944,"AUD":1.500276,"AWG":1.79,"AZN":1.700134,"BAM":1.774989,"BBD":2,"BDT":117.540636,"BGN":1.775043,"BHD":0.376,"BIF":2881.348943,"BMD":1,"BND":1.316504,"BOB":6.930177,"BRL":5.472157,"BSD":1,"BTN":83.920117,"BWP":13.400365,"BYN":3.264038,"BZD":2,"CAD":1.368645,"CDF":2850.844721,"CHF":0.867267,"CLP":936.549977,"CNY":7.165629,"COP":4017.47619,"CRC":520.078062,"CUP":24,"CVE":100.06963,"CZK":22.866531,"DJF":177.721,"DKK":6.769635,"DOP":59.828471,"DZD":134.353208,"EGP":48.838355,"ERN":15,"ETB":109.541281,"EUR":0.907539,"FJD":2.234295,"FKP":0.773355,"FOK":6.769766,"GBP":0.773358,"GEL":2.686386,"GGP":0.773355,"GHS":15.611113,"GIP":0.773355,"GMD":70.421657,"GNF":8704.905422,"GTQ":7.750961,"GYD":209.309134,"HKD":7.79508,"HNL":24.831503,"HRK":6.837842,"HTG":131.717583,"HUF":358.428746,"IDR":15688.05663,"ILS":3.677988,"IMP":0.773355,"INR":83.920127,"IQD":1310.696768,"IRR":42069.27132,"ISK":139.106032,"JEP":0.773355,"JMD":157.210066,"JOD":0.709,"JPY":148.042596,"KES":128.979169,"KGS":85.734152,"KHR":4124.246671,"KID":1.500269,"KMF":446.479215,"KRW":1350.003043,"KWD":0.305712,"KYD":0.833333,"KZT":478.947251,"LAK":22023.722412,"LBP":89500,"LKR":298.566193,"LRD":195.260541,"LSL":17.861494,"LYD":4.792865,"MAD":9.772076,"MDL":17.582754,"MGA":4577.467135,"MKD":55.944868,"MMK":2102.108564,"MNT":3378.947165,"MOP":8.028932,"MRU":39.799971,"MUR":46.314541,"MVR":15.421968,"MWK":1737.451325,"MXN":18.63293,"MYR":4.431477,"MZN":63.913789,"NAD":17.861494,"NGN":1589.504939,"NIO":36.850468,"NOK":10.68785,"NPR":134.272187,"NZD":1.652117,"OMR":0.384497,"PAB":1,"PEN":3.742677,"PGK":3.887325,"PHP":57.082917,"PKR":278.486704,"PLN":3.870604,"PYG":7608.243841,"QAR":3.64,"RON":4.526961,"RSD":106.443087,"RUB":89.378323,"RWF":1322.06323,"SAR":3.75,"SBD":8.505192,"SCR":13.518586,"SDG":458.739153,"SEK":10.454472,"SGD":1.316512,"SHP":0.773355,"SLE":22.451424,"SLL":22451.423718,"SOS":571.890189,"SRD":28.893735,"SSP":2683.857048,"STN":22.23467,"SYP":12860.52293,"SZL":17.861494,"THB":34.85934,"TJS":10.605885,"TMT":3.500532,"TND":3.066811,"TOP":2.338029,"TRY":33.706931,"TTD":6.79389,"TVD":1.500269,"TWD":32.092281,"TZS":2702.2802,"UAH":41.227988,"UGX":3724.132235,"UYU":40.421881,"UZS":12707.572003,"VES":36.6848,"VND":25048.492735,"VUV":118.243894,"WST":2.729339,"XAF":595.30562,"XCD":2.7,"XDR":0.748415,"XOF":595.30562,"XPF":108.298273,"YER":250.319587,"ZAR":17.860111,"ZMW":26.375513,"ZWL":13.7902}}
405 | """.data(using: .utf8)!
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:30:20: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
28 | var commonUnit: Unit
29 |
30 | var formatter: MeasurementFormatter
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
31 | }
32 |
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:50:1: error: 'required' initializer 'init(symbol:converter:)' must be provided by subclass of 'Dimension'
48 | fatalError("init(coder:) has not been implemented")
49 | }
50 | }
| `- error: 'required' initializer 'init(symbol:converter:)' must be provided by subclass of 'Dimension'
51 |
52 | public extension UsableUnitWrapper where Wrapped: Dimension {
Foundation.Dimension.init:2:17: note: 'required' initializer is declared in superclass here
1 | class Dimension {
2 | required public init(symbol: String, converter: UnitConverter)}
| `- note: 'required' initializer is declared in superclass here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:50:1: error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Dimension'
48 | fatalError("init(coder:) has not been implemented")
49 | }
50 | }
| `- error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Dimension'
51 |
52 | public extension UsableUnitWrapper where Wrapped: Dimension {
Foundation.Dimension.init:2:17: note: 'required' initializer is declared in superclass here
1 | class Dimension {
2 | required public init(symbol: String)}
| `- note: 'required' initializer is declared in superclass here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:34:14: warning: class 'UsableUnitWrapper' must restate inherited '@unchecked Sendable' conformance
32 |
33 | // MARK: UsableUnitWrapper
34 | public class UsableUnitWrapper<Wrapped: Unit>: Dimension, UsableUnit {
| `- warning: class 'UsableUnitWrapper' must restate inherited '@unchecked Sendable' conformance
35 | typealias Wrapped = Wrapped
36 | public var usage: UnitUsage
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:95:16: warning: static property 'zero' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
93 |
94 | public extension NSMeasurement {
95 | static var zero: NSMeasurement = .init(doubleValue: 0, unit: .init(symbol: ""))
| |- warning: static property 'zero' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'zero' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'zero' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
96 |
97 | func formatted(
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:99:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
97 | func formatted(
98 | style: Formatter.UnitStyle = .short,
99 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
100 | ) -> String {
101 | self.unit.format(self, style: style, unit: unit)
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:110:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
108 | _ value: NSMeasurement,
109 | style: Formatter.UnitStyle = .short,
110 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
111 | ) -> String {
112 | let fmt = MeasurementFormatter()
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:107:6: error: Objective-C interoperability is disabled
105 | public extension Unit {
106 |
107 | @objc func format(
| `- error: Objective-C interoperability is disabled
108 | _ value: NSMeasurement,
109 | style: Formatter.UnitStyle = .short,
/host/spi-builder-workspace/Sources/AnyMeasure/Metric.swift:36:1: error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Unit'
34 | fatalError("init(coder:) has not been implemented")
35 | }
36 |
| `- error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Unit'
37 | public func randomValue(using gen: inout RandomNumberGenerator) -> NSMeasurement {
38 | let r = _range.randomValue(using: &gen)
Foundation.Unit.init:2:17: note: 'required' initializer is declared in superclass here
1 | class Unit {
2 | required public init(symbol: String)}
| `- note: 'required' initializer is declared in superclass here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Metric.swift:53:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
51 | public func unitString(
52 | style: Formatter.UnitStyle = .short,
53 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
54 | ) -> String {
55 | switch style {
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/Metric.swift:70:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
68 | _ value: NSMeasurement,
69 | style: Formatter.UnitStyle = .short,
70 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
71 | ) -> String {
72 | let ms = units.format(value)
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/Metric.swift:67:26: error: instance method 'format(_:style:unit:)' is declared in extension of 'Unit' and cannot be overridden
65 | }
66 |
67 | public override func format(
| `- error: instance method 'format(_:style:unit:)' is declared in extension of 'Unit' and cannot be overridden
68 | _ value: NSMeasurement,
69 | style: Formatter.UnitStyle = .short,
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:107:16: note: overridden declaration is here
105 | public extension Unit {
106 |
107 | @objc func format(
| `- note: overridden declaration is here
108 | _ value: NSMeasurement,
109 | style: Formatter.UnitStyle = .short,
/host/spi-builder-workspace/Sources/AnyMeasure/Metric.swift:10:14: warning: class 'Metric' must restate inherited '@unchecked Sendable' conformance
8 | import Foundation
9 |
10 | public class Metric: Unit, UnitPresentation {
| `- warning: class 'Metric' must restate inherited '@unchecked Sendable' conformance
11 | public var label: String { subject.name }
12 | public var range: ClosedRange<Double> { _range.range }
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:30:1: error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Unit'
28 | fatalError("init(coder:) has not been implemented")
29 | }
30 |
| `- error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Unit'
31 | public func randomValue(using gen: inout RandomNumberGenerator) -> NSMeasurement {
32 | let r = _range.randomValue(using: &gen)
Foundation.Unit.init:2:17: note: 'required' initializer is declared in superclass here
1 | class Unit {
2 | required public init(symbol: String)}
| `- note: 'required' initializer is declared in superclass here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:47:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
45 | public func unitString(
46 | style: Formatter.UnitStyle = .short,
47 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
48 | ) -> String {
49 | switch style {
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:64:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
62 | _ value: NSMeasurement,
63 | style: Formatter.UnitStyle = .short,
64 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
65 | ) -> String {
66 | let fmt = NumberFormatter()
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:61:26: error: instance method 'format(_:style:unit:)' is declared in extension of 'Unit' and cannot be overridden
59 | }
60 |
61 | public override func format(
| `- error: instance method 'format(_:style:unit:)' is declared in extension of 'Unit' and cannot be overridden
62 | _ value: NSMeasurement,
63 | style: Formatter.UnitStyle = .short,
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:107:16: note: overridden declaration is here
105 | public extension Unit {
106 |
107 | @objc func format(
| `- note: overridden declaration is here
108 | _ value: NSMeasurement,
109 | style: Formatter.UnitStyle = .short,
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:13:20: warning: class 'UnitCount' must restate inherited '@unchecked Sendable' conformance
11 |
12 |
13 | public final class UnitCount: Unit, UnitPresentation {
| `- warning: class 'UnitCount' must restate inherited '@unchecked Sendable' conformance
14 | public var label: String { "Count" }
15 | var _range: Interval<Double>
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:83:6: error: Objective-C interoperability is disabled
81 |
82 | extension Unit {
83 | @objc
| `- error: Objective-C interoperability is disabled
84 | public class func count(max: Double = 100) -> UnitCount {
85 | return UnitCount(range: 0...max)
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:90:6: error: Objective-C interoperability is disabled
88 |
89 | extension UnitCount {
90 | @objc
| `- error: Objective-C interoperability is disabled
91 | public override class func count(max: Double = 100) -> UnitCount {
92 | return UnitCount(range: 0...max)
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:91:32: error: class method 'count(max:)' is declared in extension of 'Unit' and cannot be overridden
82 | extension Unit {
83 | @objc
84 | public class func count(max: Double = 100) -> UnitCount {
| `- note: overridden declaration is here
85 | return UnitCount(range: 0...max)
86 | }
:
89 | extension UnitCount {
90 | @objc
91 | public override class func count(max: Double = 100) -> UnitCount {
| `- error: class method 'count(max:)' is declared in extension of 'Unit' and cannot be overridden
92 | return UnitCount(range: 0...max)
93 | }
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:119:20: warning: class 'UnitPercent' must restate inherited '@unchecked Sendable' conformance
117 | // MARK: Percent
118 | /// Percentage Unit
119 | final public class UnitPercent: Unit {
| `- warning: class 'UnitPercent' must restate inherited '@unchecked Sendable' conformance
120 |
121 | private struct Symbol {
[37/41] Compiling AnyMeasure Extensions.swift
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:30:20: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
28 | var commonUnit: Unit
29 |
30 | var formatter: MeasurementFormatter
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
31 | }
32 |
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:50:1: error: 'required' initializer 'init(symbol:converter:)' must be provided by subclass of 'Dimension'
48 | fatalError("init(coder:) has not been implemented")
49 | }
50 | }
| `- error: 'required' initializer 'init(symbol:converter:)' must be provided by subclass of 'Dimension'
51 |
52 | public extension UsableUnitWrapper where Wrapped: Dimension {
Foundation.Dimension.init:2:17: note: 'required' initializer is declared in superclass here
1 | class Dimension {
2 | required public init(symbol: String, converter: UnitConverter)}
| `- note: 'required' initializer is declared in superclass here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:50:1: error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Dimension'
48 | fatalError("init(coder:) has not been implemented")
49 | }
50 | }
| `- error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Dimension'
51 |
52 | public extension UsableUnitWrapper where Wrapped: Dimension {
Foundation.Dimension.init:2:17: note: 'required' initializer is declared in superclass here
1 | class Dimension {
2 | required public init(symbol: String)}
| `- note: 'required' initializer is declared in superclass here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:34:14: warning: class 'UsableUnitWrapper' must restate inherited '@unchecked Sendable' conformance
32 |
33 | // MARK: UsableUnitWrapper
34 | public class UsableUnitWrapper<Wrapped: Unit>: Dimension, UsableUnit {
| `- warning: class 'UsableUnitWrapper' must restate inherited '@unchecked Sendable' conformance
35 | typealias Wrapped = Wrapped
36 | public var usage: UnitUsage
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:95:16: warning: static property 'zero' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
93 |
94 | public extension NSMeasurement {
95 | static var zero: NSMeasurement = .init(doubleValue: 0, unit: .init(symbol: ""))
| |- warning: static property 'zero' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'zero' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'zero' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
96 |
97 | func formatted(
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:99:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
97 | func formatted(
98 | style: Formatter.UnitStyle = .short,
99 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
100 | ) -> String {
101 | self.unit.format(self, style: style, unit: unit)
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:110:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
108 | _ value: NSMeasurement,
109 | style: Formatter.UnitStyle = .short,
110 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
111 | ) -> String {
112 | let fmt = MeasurementFormatter()
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:107:6: error: Objective-C interoperability is disabled
105 | public extension Unit {
106 |
107 | @objc func format(
| `- error: Objective-C interoperability is disabled
108 | _ value: NSMeasurement,
109 | style: Formatter.UnitStyle = .short,
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:112:19: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
110 | unit: MeasurementFormatter.UnitOptions = .providedUnit
111 | ) -> String {
112 | let fmt = MeasurementFormatter()
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
113 | fmt.unitStyle = style
114 | fmt.unitOptions = unit
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
[38/41] Compiling AnyMeasure Interval.swift
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:30:20: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
28 | var commonUnit: Unit
29 |
30 | var formatter: MeasurementFormatter
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
31 | }
32 |
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:50:1: error: 'required' initializer 'init(symbol:converter:)' must be provided by subclass of 'Dimension'
48 | fatalError("init(coder:) has not been implemented")
49 | }
50 | }
| `- error: 'required' initializer 'init(symbol:converter:)' must be provided by subclass of 'Dimension'
51 |
52 | public extension UsableUnitWrapper where Wrapped: Dimension {
Foundation.Dimension.init:2:17: note: 'required' initializer is declared in superclass here
1 | class Dimension {
2 | required public init(symbol: String, converter: UnitConverter)}
| `- note: 'required' initializer is declared in superclass here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:50:1: error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Dimension'
48 | fatalError("init(coder:) has not been implemented")
49 | }
50 | }
| `- error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Dimension'
51 |
52 | public extension UsableUnitWrapper where Wrapped: Dimension {
Foundation.Dimension.init:2:17: note: 'required' initializer is declared in superclass here
1 | class Dimension {
2 | required public init(symbol: String)}
| `- note: 'required' initializer is declared in superclass here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:34:14: warning: class 'UsableUnitWrapper' must restate inherited '@unchecked Sendable' conformance
32 |
33 | // MARK: UsableUnitWrapper
34 | public class UsableUnitWrapper<Wrapped: Unit>: Dimension, UsableUnit {
| `- warning: class 'UsableUnitWrapper' must restate inherited '@unchecked Sendable' conformance
35 | typealias Wrapped = Wrapped
36 | public var usage: UnitUsage
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:95:16: warning: static property 'zero' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
93 |
94 | public extension NSMeasurement {
95 | static var zero: NSMeasurement = .init(doubleValue: 0, unit: .init(symbol: ""))
| |- warning: static property 'zero' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'zero' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'zero' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
96 |
97 | func formatted(
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:99:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
97 | func formatted(
98 | style: Formatter.UnitStyle = .short,
99 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
100 | ) -> String {
101 | self.unit.format(self, style: style, unit: unit)
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:110:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
108 | _ value: NSMeasurement,
109 | style: Formatter.UnitStyle = .short,
110 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
111 | ) -> String {
112 | let fmt = MeasurementFormatter()
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:107:6: error: Objective-C interoperability is disabled
105 | public extension Unit {
106 |
107 | @objc func format(
| `- error: Objective-C interoperability is disabled
108 | _ value: NSMeasurement,
109 | style: Formatter.UnitStyle = .short,
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:112:19: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
110 | unit: MeasurementFormatter.UnitOptions = .providedUnit
111 | ) -> String {
112 | let fmt = MeasurementFormatter()
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
113 | fmt.unitStyle = style
114 | fmt.unitOptions = unit
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
[39/41] Compiling AnyMeasure Currency.swift
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:51:12: warning: class 'CurrencyConverter' must restate inherited '@unchecked Sendable' conformance
49 | business interruption, or loss of business opportunity.
50 | */
51 | open class CurrencyConverter: UnitConverterLinear {
| `- warning: class 'CurrencyConverter' must restate inherited '@unchecked Sendable' conformance
52 |
53 | // BIG List Below
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:118:1: error: 'required' initializer 'init(symbol:converter:)' must be provided by subclass of 'Dimension'
116 | super.init(symbol: sym, converter: CurrencyConverter(sym))
117 | }
118 |
| `- error: 'required' initializer 'init(symbol:converter:)' must be provided by subclass of 'Dimension'
119 | public override class func baseUnit() -> UnitCurrency {
120 | return UnitCurrency.USD
Foundation.Dimension.init:2:17: note: 'required' initializer is declared in superclass here
1 | class Dimension {
2 | required public init(symbol: String, converter: UnitConverter)}
| `- note: 'required' initializer is declared in superclass here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:88:23: warning: static property 'instantiateConverter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
86 | public final class UnitCurrency: Dimension, Codable {
87 |
88 | public static var instantiateConverter: (String) -> CurrencyConverter
| |- warning: static property 'instantiateConverter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'instantiateConverter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'instantiateConverter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 | = { symbol in CurrencyConverter(symbol) }
90 |
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:93:12: error: 'required' modifier must be present on all overrides of a required initializer
91 | var country_code: String?
92 |
93 | public init (symbol: String) {
| `- error: 'required' modifier must be present on all overrides of a required initializer
94 | super.init(symbol: symbol, converter: UnitCurrency.instantiateConverter(symbol))
95 | }
Foundation.Dimension.init:2:17: note: overridden required initializer is here
1 | class Dimension {
2 | required public init(symbol: String)}
| `- note: overridden required initializer is here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:86:20: warning: class 'UnitCurrency' must restate inherited '@unchecked Sendable' conformance
84 | }
85 |
86 | public final class UnitCurrency: Dimension, Codable {
| `- warning: class 'UnitCurrency' must restate inherited '@unchecked Sendable' conformance
87 |
88 | public static var instantiateConverter: (String) -> CurrencyConverter
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:128:23: warning: static property 'Local' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
126 | extension UnitCurrency {
127 |
128 | public static var Local = UnitCurrency.USD
| |- warning: static property 'Local' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'Local' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'Local' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
129 |
130 | public static let USD = UnitCurrency(symbol: "USD")
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:403:16: warning: static property 'jsonData' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
401 | }
402 |
403 | static var jsonData = """
| |- warning: static property 'jsonData' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonData' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'jsonData' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
404 | {"result":"success","provider":"https://www.exchangerate-api.com","documentation":"https://www.exchangerate-api.com/docs/free","terms_of_use":"https://www.exchangerate-api.com/terms","time_last_update_unix":1724025751,"time_last_update_utc":"Mon, 19 Aug 2024 00:02:31 +0000","time_next_update_unix":1724112381,"time_next_update_utc":"Tue, 20 Aug 2024 00:06:21 +0000","time_eol_unix":0,"base_code":"USD","rates":{"USD":1,"AED":3.6725,"AFN":71.016252,"ALL":90.546764,"AMD":388.108035,"ANG":1.79,"AOA":896.224421,"ARS":944,"AUD":1.500276,"AWG":1.79,"AZN":1.700134,"BAM":1.774989,"BBD":2,"BDT":117.540636,"BGN":1.775043,"BHD":0.376,"BIF":2881.348943,"BMD":1,"BND":1.316504,"BOB":6.930177,"BRL":5.472157,"BSD":1,"BTN":83.920117,"BWP":13.400365,"BYN":3.264038,"BZD":2,"CAD":1.368645,"CDF":2850.844721,"CHF":0.867267,"CLP":936.549977,"CNY":7.165629,"COP":4017.47619,"CRC":520.078062,"CUP":24,"CVE":100.06963,"CZK":22.866531,"DJF":177.721,"DKK":6.769635,"DOP":59.828471,"DZD":134.353208,"EGP":48.838355,"ERN":15,"ETB":109.541281,"EUR":0.907539,"FJD":2.234295,"FKP":0.773355,"FOK":6.769766,"GBP":0.773358,"GEL":2.686386,"GGP":0.773355,"GHS":15.611113,"GIP":0.773355,"GMD":70.421657,"GNF":8704.905422,"GTQ":7.750961,"GYD":209.309134,"HKD":7.79508,"HNL":24.831503,"HRK":6.837842,"HTG":131.717583,"HUF":358.428746,"IDR":15688.05663,"ILS":3.677988,"IMP":0.773355,"INR":83.920127,"IQD":1310.696768,"IRR":42069.27132,"ISK":139.106032,"JEP":0.773355,"JMD":157.210066,"JOD":0.709,"JPY":148.042596,"KES":128.979169,"KGS":85.734152,"KHR":4124.246671,"KID":1.500269,"KMF":446.479215,"KRW":1350.003043,"KWD":0.305712,"KYD":0.833333,"KZT":478.947251,"LAK":22023.722412,"LBP":89500,"LKR":298.566193,"LRD":195.260541,"LSL":17.861494,"LYD":4.792865,"MAD":9.772076,"MDL":17.582754,"MGA":4577.467135,"MKD":55.944868,"MMK":2102.108564,"MNT":3378.947165,"MOP":8.028932,"MRU":39.799971,"MUR":46.314541,"MVR":15.421968,"MWK":1737.451325,"MXN":18.63293,"MYR":4.431477,"MZN":63.913789,"NAD":17.861494,"NGN":1589.504939,"NIO":36.850468,"NOK":10.68785,"NPR":134.272187,"NZD":1.652117,"OMR":0.384497,"PAB":1,"PEN":3.742677,"PGK":3.887325,"PHP":57.082917,"PKR":278.486704,"PLN":3.870604,"PYG":7608.243841,"QAR":3.64,"RON":4.526961,"RSD":106.443087,"RUB":89.378323,"RWF":1322.06323,"SAR":3.75,"SBD":8.505192,"SCR":13.518586,"SDG":458.739153,"SEK":10.454472,"SGD":1.316512,"SHP":0.773355,"SLE":22.451424,"SLL":22451.423718,"SOS":571.890189,"SRD":28.893735,"SSP":2683.857048,"STN":22.23467,"SYP":12860.52293,"SZL":17.861494,"THB":34.85934,"TJS":10.605885,"TMT":3.500532,"TND":3.066811,"TOP":2.338029,"TRY":33.706931,"TTD":6.79389,"TVD":1.500269,"TWD":32.092281,"TZS":2702.2802,"UAH":41.227988,"UGX":3724.132235,"UYU":40.421881,"UZS":12707.572003,"VES":36.6848,"VND":25048.492735,"VUV":118.243894,"WST":2.729339,"XAF":595.30562,"XCD":2.7,"XDR":0.748415,"XOF":595.30562,"XPF":108.298273,"YER":250.319587,"ZAR":17.860111,"ZMW":26.375513,"ZWL":13.7902}}
405 | """.data(using: .utf8)!
[40/41] Compiling AnyMeasure Duration.swift
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:51:12: warning: class 'CurrencyConverter' must restate inherited '@unchecked Sendable' conformance
49 | business interruption, or loss of business opportunity.
50 | */
51 | open class CurrencyConverter: UnitConverterLinear {
| `- warning: class 'CurrencyConverter' must restate inherited '@unchecked Sendable' conformance
52 |
53 | // BIG List Below
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:118:1: error: 'required' initializer 'init(symbol:converter:)' must be provided by subclass of 'Dimension'
116 | super.init(symbol: sym, converter: CurrencyConverter(sym))
117 | }
118 |
| `- error: 'required' initializer 'init(symbol:converter:)' must be provided by subclass of 'Dimension'
119 | public override class func baseUnit() -> UnitCurrency {
120 | return UnitCurrency.USD
Foundation.Dimension.init:2:17: note: 'required' initializer is declared in superclass here
1 | class Dimension {
2 | required public init(symbol: String, converter: UnitConverter)}
| `- note: 'required' initializer is declared in superclass here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:88:23: warning: static property 'instantiateConverter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
86 | public final class UnitCurrency: Dimension, Codable {
87 |
88 | public static var instantiateConverter: (String) -> CurrencyConverter
| |- warning: static property 'instantiateConverter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'instantiateConverter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'instantiateConverter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 | = { symbol in CurrencyConverter(symbol) }
90 |
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:93:12: error: 'required' modifier must be present on all overrides of a required initializer
91 | var country_code: String?
92 |
93 | public init (symbol: String) {
| `- error: 'required' modifier must be present on all overrides of a required initializer
94 | super.init(symbol: symbol, converter: UnitCurrency.instantiateConverter(symbol))
95 | }
Foundation.Dimension.init:2:17: note: overridden required initializer is here
1 | class Dimension {
2 | required public init(symbol: String)}
| `- note: overridden required initializer is here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:86:20: warning: class 'UnitCurrency' must restate inherited '@unchecked Sendable' conformance
84 | }
85 |
86 | public final class UnitCurrency: Dimension, Codable {
| `- warning: class 'UnitCurrency' must restate inherited '@unchecked Sendable' conformance
87 |
88 | public static var instantiateConverter: (String) -> CurrencyConverter
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:128:23: warning: static property 'Local' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
126 | extension UnitCurrency {
127 |
128 | public static var Local = UnitCurrency.USD
| |- warning: static property 'Local' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'Local' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'Local' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
129 |
130 | public static let USD = UnitCurrency(symbol: "USD")
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:403:16: warning: static property 'jsonData' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
401 | }
402 |
403 | static var jsonData = """
| |- warning: static property 'jsonData' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonData' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'jsonData' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
404 | {"result":"success","provider":"https://www.exchangerate-api.com","documentation":"https://www.exchangerate-api.com/docs/free","terms_of_use":"https://www.exchangerate-api.com/terms","time_last_update_unix":1724025751,"time_last_update_utc":"Mon, 19 Aug 2024 00:02:31 +0000","time_next_update_unix":1724112381,"time_next_update_utc":"Tue, 20 Aug 2024 00:06:21 +0000","time_eol_unix":0,"base_code":"USD","rates":{"USD":1,"AED":3.6725,"AFN":71.016252,"ALL":90.546764,"AMD":388.108035,"ANG":1.79,"AOA":896.224421,"ARS":944,"AUD":1.500276,"AWG":1.79,"AZN":1.700134,"BAM":1.774989,"BBD":2,"BDT":117.540636,"BGN":1.775043,"BHD":0.376,"BIF":2881.348943,"BMD":1,"BND":1.316504,"BOB":6.930177,"BRL":5.472157,"BSD":1,"BTN":83.920117,"BWP":13.400365,"BYN":3.264038,"BZD":2,"CAD":1.368645,"CDF":2850.844721,"CHF":0.867267,"CLP":936.549977,"CNY":7.165629,"COP":4017.47619,"CRC":520.078062,"CUP":24,"CVE":100.06963,"CZK":22.866531,"DJF":177.721,"DKK":6.769635,"DOP":59.828471,"DZD":134.353208,"EGP":48.838355,"ERN":15,"ETB":109.541281,"EUR":0.907539,"FJD":2.234295,"FKP":0.773355,"FOK":6.769766,"GBP":0.773358,"GEL":2.686386,"GGP":0.773355,"GHS":15.611113,"GIP":0.773355,"GMD":70.421657,"GNF":8704.905422,"GTQ":7.750961,"GYD":209.309134,"HKD":7.79508,"HNL":24.831503,"HRK":6.837842,"HTG":131.717583,"HUF":358.428746,"IDR":15688.05663,"ILS":3.677988,"IMP":0.773355,"INR":83.920127,"IQD":1310.696768,"IRR":42069.27132,"ISK":139.106032,"JEP":0.773355,"JMD":157.210066,"JOD":0.709,"JPY":148.042596,"KES":128.979169,"KGS":85.734152,"KHR":4124.246671,"KID":1.500269,"KMF":446.479215,"KRW":1350.003043,"KWD":0.305712,"KYD":0.833333,"KZT":478.947251,"LAK":22023.722412,"LBP":89500,"LKR":298.566193,"LRD":195.260541,"LSL":17.861494,"LYD":4.792865,"MAD":9.772076,"MDL":17.582754,"MGA":4577.467135,"MKD":55.944868,"MMK":2102.108564,"MNT":3378.947165,"MOP":8.028932,"MRU":39.799971,"MUR":46.314541,"MVR":15.421968,"MWK":1737.451325,"MXN":18.63293,"MYR":4.431477,"MZN":63.913789,"NAD":17.861494,"NGN":1589.504939,"NIO":36.850468,"NOK":10.68785,"NPR":134.272187,"NZD":1.652117,"OMR":0.384497,"PAB":1,"PEN":3.742677,"PGK":3.887325,"PHP":57.082917,"PKR":278.486704,"PLN":3.870604,"PYG":7608.243841,"QAR":3.64,"RON":4.526961,"RSD":106.443087,"RUB":89.378323,"RWF":1322.06323,"SAR":3.75,"SBD":8.505192,"SCR":13.518586,"SDG":458.739153,"SEK":10.454472,"SGD":1.316512,"SHP":0.773355,"SLE":22.451424,"SLL":22451.423718,"SOS":571.890189,"SRD":28.893735,"SSP":2683.857048,"STN":22.23467,"SYP":12860.52293,"SZL":17.861494,"THB":34.85934,"TJS":10.605885,"TMT":3.500532,"TND":3.066811,"TOP":2.338029,"TRY":33.706931,"TTD":6.79389,"TVD":1.500269,"TWD":32.092281,"TZS":2702.2802,"UAH":41.227988,"UGX":3724.132235,"UYU":40.421881,"UZS":12707.572003,"VES":36.6848,"VND":25048.492735,"VUV":118.243894,"WST":2.729339,"XAF":595.30562,"XCD":2.7,"XDR":0.748415,"XOF":595.30562,"XPF":108.298273,"YER":250.319587,"ZAR":17.860111,"ZMW":26.375513,"ZWL":13.7902}}
405 | """.data(using: .utf8)!
[41/41] Compiling AnyMeasure Ratio.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/13] Compiling RealModule Float80+Real.swift
[5/13] Compiling RealModule Real.swift
[6/14] Compiling RealModule Float+Real.swift
[7/14] Compiling RealModule ElementaryFunctions.swift
[8/14] Compiling RealModule Float16+Real.swift
[9/14] Compiling RealModule RealFunctions.swift
[10/14] Compiling RealModule AlgebraicField.swift
[11/14] Compiling RealModule ApproximateEquality.swift
[12/14] Emitting module RealModule
[13/14] Compiling RealModule AugmentedArithmetic.swift
[14/14] Compiling RealModule Double+Real.swift
[16/20] Compiling ComplexModule Differentiable.swift
[17/20] Compiling ComplexModule Complex.swift
[18/20] Compiling ComplexModule Arithmetic.swift
[19/20] Emitting module ComplexModule
[20/20] Compiling ComplexModule ElementaryFunctions.swift
[22/23] Compiling Numerics Numerics.swift
[23/23] Emitting module Numerics
[25/35] Compiling AnyMeasure Ratio.swift
[26/36] Compiling AnyMeasure Quantity.swift
[27/36] Compiling AnyMeasure Metric.swift
/host/spi-builder-workspace/Sources/AnyMeasure/Metric.swift:36:1: error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Unit'
34 | fatalError("init(coder:) has not been implemented")
35 | }
36 |
| `- error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Unit'
37 | public func randomValue(using gen: inout RandomNumberGenerator) -> NSMeasurement {
38 | let r = _range.randomValue(using: &gen)
Foundation.Unit.init:2:17: note: 'required' initializer is declared in superclass here
1 | class Unit {
2 | required public init(symbol: String)}
| `- note: 'required' initializer is declared in superclass here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Metric.swift:53:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
51 | public func unitString(
52 | style: Formatter.UnitStyle = .short,
53 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
54 | ) -> String {
55 | switch style {
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/Metric.swift:70:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
68 | _ value: NSMeasurement,
69 | style: Formatter.UnitStyle = .short,
70 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
71 | ) -> String {
72 | let ms = units.format(value)
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/Metric.swift:67:26: error: instance method 'format(_:style:unit:)' is declared in extension of 'Unit' and cannot be overridden
65 | }
66 |
67 | public override func format(
| `- error: instance method 'format(_:style:unit:)' is declared in extension of 'Unit' and cannot be overridden
68 | _ value: NSMeasurement,
69 | style: Formatter.UnitStyle = .short,
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:107:16: note: overridden declaration is here
105 | public extension Unit {
106 |
107 | @objc func format(
| `- note: overridden declaration is here
108 | _ value: NSMeasurement,
109 | style: Formatter.UnitStyle = .short,
/host/spi-builder-workspace/Sources/AnyMeasure/Metric.swift:10:14: warning: class 'Metric' must restate inherited '@unchecked Sendable' conformance
8 | import Foundation
9 |
10 | public class Metric: Unit, UnitPresentation {
| `- warning: class 'Metric' must restate inherited '@unchecked Sendable' conformance
11 | public var label: String { subject.name }
12 | public var range: ClosedRange<Double> { _range.range }
[28/36] Compiling AnyMeasure Currency.swift
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:51:12: warning: class 'CurrencyConverter' must restate inherited '@unchecked Sendable' conformance
49 | business interruption, or loss of business opportunity.
50 | */
51 | open class CurrencyConverter: UnitConverterLinear {
| `- warning: class 'CurrencyConverter' must restate inherited '@unchecked Sendable' conformance
52 |
53 | // BIG List Below
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:118:1: error: 'required' initializer 'init(symbol:converter:)' must be provided by subclass of 'Dimension'
116 | super.init(symbol: sym, converter: CurrencyConverter(sym))
117 | }
118 |
| `- error: 'required' initializer 'init(symbol:converter:)' must be provided by subclass of 'Dimension'
119 | public override class func baseUnit() -> UnitCurrency {
120 | return UnitCurrency.USD
Foundation.Dimension.init:2:17: note: 'required' initializer is declared in superclass here
1 | class Dimension {
2 | required public init(symbol: String, converter: UnitConverter)}
| `- note: 'required' initializer is declared in superclass here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:93:12: error: 'required' modifier must be present on all overrides of a required initializer
91 | var country_code: String?
92 |
93 | public init (symbol: String) {
| `- error: 'required' modifier must be present on all overrides of a required initializer
94 | super.init(symbol: symbol, converter: UnitCurrency.instantiateConverter(symbol))
95 | }
Foundation.Dimension.init:2:17: note: overridden required initializer is here
1 | class Dimension {
2 | required public init(symbol: String)}
| `- note: overridden required initializer is here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:86:20: warning: class 'UnitCurrency' must restate inherited '@unchecked Sendable' conformance
84 | }
85 |
86 | public final class UnitCurrency: Dimension, Codable {
| `- warning: class 'UnitCurrency' must restate inherited '@unchecked Sendable' conformance
87 |
88 | public static var instantiateConverter: (String) -> CurrencyConverter
[29/36] Compiling AnyMeasure Duration.swift
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:51:12: warning: class 'CurrencyConverter' must restate inherited '@unchecked Sendable' conformance
49 | business interruption, or loss of business opportunity.
50 | */
51 | open class CurrencyConverter: UnitConverterLinear {
| `- warning: class 'CurrencyConverter' must restate inherited '@unchecked Sendable' conformance
52 |
53 | // BIG List Below
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:118:1: error: 'required' initializer 'init(symbol:converter:)' must be provided by subclass of 'Dimension'
116 | super.init(symbol: sym, converter: CurrencyConverter(sym))
117 | }
118 |
| `- error: 'required' initializer 'init(symbol:converter:)' must be provided by subclass of 'Dimension'
119 | public override class func baseUnit() -> UnitCurrency {
120 | return UnitCurrency.USD
Foundation.Dimension.init:2:17: note: 'required' initializer is declared in superclass here
1 | class Dimension {
2 | required public init(symbol: String, converter: UnitConverter)}
| `- note: 'required' initializer is declared in superclass here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:93:12: error: 'required' modifier must be present on all overrides of a required initializer
91 | var country_code: String?
92 |
93 | public init (symbol: String) {
| `- error: 'required' modifier must be present on all overrides of a required initializer
94 | super.init(symbol: symbol, converter: UnitCurrency.instantiateConverter(symbol))
95 | }
Foundation.Dimension.init:2:17: note: overridden required initializer is here
1 | class Dimension {
2 | required public init(symbol: String)}
| `- note: overridden required initializer is here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:86:20: warning: class 'UnitCurrency' must restate inherited '@unchecked Sendable' conformance
84 | }
85 |
86 | public final class UnitCurrency: Dimension, Codable {
| `- warning: class 'UnitCurrency' must restate inherited '@unchecked Sendable' conformance
87 |
88 | public static var instantiateConverter: (String) -> CurrencyConverter
[30/36] Compiling AnyMeasure UnitCount.swift
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:30:1: error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Unit'
28 | fatalError("init(coder:) has not been implemented")
29 | }
30 |
| `- error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Unit'
31 | public func randomValue(using gen: inout RandomNumberGenerator) -> NSMeasurement {
32 | let r = _range.randomValue(using: &gen)
Foundation.Unit.init:2:17: note: 'required' initializer is declared in superclass here
1 | class Unit {
2 | required public init(symbol: String)}
| `- note: 'required' initializer is declared in superclass here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:47:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
45 | public func unitString(
46 | style: Formatter.UnitStyle = .short,
47 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
48 | ) -> String {
49 | switch style {
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:64:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
62 | _ value: NSMeasurement,
63 | style: Formatter.UnitStyle = .short,
64 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
65 | ) -> String {
66 | let fmt = NumberFormatter()
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:61:26: error: instance method 'format(_:style:unit:)' is declared in extension of 'Unit' and cannot be overridden
59 | }
60 |
61 | public override func format(
| `- error: instance method 'format(_:style:unit:)' is declared in extension of 'Unit' and cannot be overridden
62 | _ value: NSMeasurement,
63 | style: Formatter.UnitStyle = .short,
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:107:16: note: overridden declaration is here
105 | public extension Unit {
106 |
107 | @objc func format(
| `- note: overridden declaration is here
108 | _ value: NSMeasurement,
109 | style: Formatter.UnitStyle = .short,
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:13:20: warning: class 'UnitCount' must restate inherited '@unchecked Sendable' conformance
11 |
12 |
13 | public final class UnitCount: Unit, UnitPresentation {
| `- warning: class 'UnitCount' must restate inherited '@unchecked Sendable' conformance
14 | public var label: String { "Count" }
15 | var _range: Interval<Double>
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:83:6: error: Objective-C interoperability is disabled
81 |
82 | extension Unit {
83 | @objc
| `- error: Objective-C interoperability is disabled
84 | public class func count(max: Double = 100) -> UnitCount {
85 | return UnitCount(range: 0...max)
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:90:6: error: Objective-C interoperability is disabled
88 |
89 | extension UnitCount {
90 | @objc
| `- error: Objective-C interoperability is disabled
91 | public override class func count(max: Double = 100) -> UnitCount {
92 | return UnitCount(range: 0...max)
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:91:32: error: class method 'count(max:)' is declared in extension of 'Unit' and cannot be overridden
82 | extension Unit {
83 | @objc
84 | public class func count(max: Double = 100) -> UnitCount {
| `- note: overridden declaration is here
85 | return UnitCount(range: 0...max)
86 | }
:
89 | extension UnitCount {
90 | @objc
91 | public override class func count(max: Double = 100) -> UnitCount {
| `- error: class method 'count(max:)' is declared in extension of 'Unit' and cannot be overridden
92 | return UnitCount(range: 0...max)
93 | }
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:119:20: warning: class 'UnitPercent' must restate inherited '@unchecked Sendable' conformance
117 | // MARK: Percent
118 | /// Percentage Unit
119 | final public class UnitPercent: Unit {
| `- warning: class 'UnitPercent' must restate inherited '@unchecked Sendable' conformance
120 |
121 | private struct Symbol {
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:109:38: error: ambiguous use of 'count(max:)'
82 | extension Unit {
83 | @objc
84 | public class func count(max: Double = 100) -> UnitCount {
| `- note: found this candidate
85 | return UnitCount(range: 0...max)
86 | }
:
89 | extension UnitCount {
90 | @objc
91 | public override class func count(max: Double = 100) -> UnitCount {
| `- note: found this candidate
92 | return UnitCount(range: 0...max)
93 | }
:
107 |
108 | static var zero: Measurement<UnitType> {
109 | Measurement(value: 0, unit: .count())
| `- error: ambiguous use of 'count(max:)'
110 | }
111 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[31/36] Compiling AnyMeasure AnyMeasure.swift
[32/36] Compiling AnyMeasure Core.swift
[33/36] Compiling AnyMeasure IntervalMath.swift
[34/36] Emitting module AnyMeasure
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:51:12: warning: class 'CurrencyConverter' must restate inherited '@unchecked Sendable' conformance
49 | business interruption, or loss of business opportunity.
50 | */
51 | open class CurrencyConverter: UnitConverterLinear {
| `- warning: class 'CurrencyConverter' must restate inherited '@unchecked Sendable' conformance
52 |
53 | // BIG List Below
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:118:1: error: 'required' initializer 'init(symbol:converter:)' must be provided by subclass of 'Dimension'
116 | super.init(symbol: sym, converter: CurrencyConverter(sym))
117 | }
118 |
| `- error: 'required' initializer 'init(symbol:converter:)' must be provided by subclass of 'Dimension'
119 | public override class func baseUnit() -> UnitCurrency {
120 | return UnitCurrency.USD
Foundation.Dimension.init:2:17: note: 'required' initializer is declared in superclass here
1 | class Dimension {
2 | required public init(symbol: String, converter: UnitConverter)}
| `- note: 'required' initializer is declared in superclass here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:93:12: error: 'required' modifier must be present on all overrides of a required initializer
91 | var country_code: String?
92 |
93 | public init (symbol: String) {
| `- error: 'required' modifier must be present on all overrides of a required initializer
94 | super.init(symbol: symbol, converter: UnitCurrency.instantiateConverter(symbol))
95 | }
Foundation.Dimension.init:2:17: note: overridden required initializer is here
1 | class Dimension {
2 | required public init(symbol: String)}
| `- note: overridden required initializer is here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Currency.swift:86:20: warning: class 'UnitCurrency' must restate inherited '@unchecked Sendable' conformance
84 | }
85 |
86 | public final class UnitCurrency: Dimension, Codable {
| `- warning: class 'UnitCurrency' must restate inherited '@unchecked Sendable' conformance
87 |
88 | public static var instantiateConverter: (String) -> CurrencyConverter
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:30:20: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
28 | var commonUnit: Unit
29 |
30 | var formatter: MeasurementFormatter
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
31 | }
32 |
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:50:1: error: 'required' initializer 'init(symbol:converter:)' must be provided by subclass of 'Dimension'
48 | fatalError("init(coder:) has not been implemented")
49 | }
50 | }
| `- error: 'required' initializer 'init(symbol:converter:)' must be provided by subclass of 'Dimension'
51 |
52 | public extension UsableUnitWrapper where Wrapped: Dimension {
Foundation.Dimension.init:2:17: note: 'required' initializer is declared in superclass here
1 | class Dimension {
2 | required public init(symbol: String, converter: UnitConverter)}
| `- note: 'required' initializer is declared in superclass here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:50:1: error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Dimension'
48 | fatalError("init(coder:) has not been implemented")
49 | }
50 | }
| `- error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Dimension'
51 |
52 | public extension UsableUnitWrapper where Wrapped: Dimension {
Foundation.Dimension.init:2:17: note: 'required' initializer is declared in superclass here
1 | class Dimension {
2 | required public init(symbol: String)}
| `- note: 'required' initializer is declared in superclass here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:34:14: warning: class 'UsableUnitWrapper' must restate inherited '@unchecked Sendable' conformance
32 |
33 | // MARK: UsableUnitWrapper
34 | public class UsableUnitWrapper<Wrapped: Unit>: Dimension, UsableUnit {
| `- warning: class 'UsableUnitWrapper' must restate inherited '@unchecked Sendable' conformance
35 | typealias Wrapped = Wrapped
36 | public var usage: UnitUsage
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:99:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
97 | func formatted(
98 | style: Formatter.UnitStyle = .short,
99 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
100 | ) -> String {
101 | self.unit.format(self, style: style, unit: unit)
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:110:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
108 | _ value: NSMeasurement,
109 | style: Formatter.UnitStyle = .short,
110 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
111 | ) -> String {
112 | let fmt = MeasurementFormatter()
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:107:6: error: Objective-C interoperability is disabled
105 | public extension Unit {
106 |
107 | @objc func format(
| `- error: Objective-C interoperability is disabled
108 | _ value: NSMeasurement,
109 | style: Formatter.UnitStyle = .short,
/host/spi-builder-workspace/Sources/AnyMeasure/Metric.swift:36:1: error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Unit'
34 | fatalError("init(coder:) has not been implemented")
35 | }
36 |
| `- error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Unit'
37 | public func randomValue(using gen: inout RandomNumberGenerator) -> NSMeasurement {
38 | let r = _range.randomValue(using: &gen)
Foundation.Unit.init:2:17: note: 'required' initializer is declared in superclass here
1 | class Unit {
2 | required public init(symbol: String)}
| `- note: 'required' initializer is declared in superclass here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Metric.swift:53:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
51 | public func unitString(
52 | style: Formatter.UnitStyle = .short,
53 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
54 | ) -> String {
55 | switch style {
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/Metric.swift:70:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
68 | _ value: NSMeasurement,
69 | style: Formatter.UnitStyle = .short,
70 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
71 | ) -> String {
72 | let ms = units.format(value)
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/Metric.swift:67:26: error: instance method 'format(_:style:unit:)' is declared in extension of 'Unit' and cannot be overridden
65 | }
66 |
67 | public override func format(
| `- error: instance method 'format(_:style:unit:)' is declared in extension of 'Unit' and cannot be overridden
68 | _ value: NSMeasurement,
69 | style: Formatter.UnitStyle = .short,
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:107:16: note: overridden declaration is here
105 | public extension Unit {
106 |
107 | @objc func format(
| `- note: overridden declaration is here
108 | _ value: NSMeasurement,
109 | style: Formatter.UnitStyle = .short,
/host/spi-builder-workspace/Sources/AnyMeasure/Metric.swift:10:14: warning: class 'Metric' must restate inherited '@unchecked Sendable' conformance
8 | import Foundation
9 |
10 | public class Metric: Unit, UnitPresentation {
| `- warning: class 'Metric' must restate inherited '@unchecked Sendable' conformance
11 | public var label: String { subject.name }
12 | public var range: ClosedRange<Double> { _range.range }
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:30:1: error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Unit'
28 | fatalError("init(coder:) has not been implemented")
29 | }
30 |
| `- error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Unit'
31 | public func randomValue(using gen: inout RandomNumberGenerator) -> NSMeasurement {
32 | let r = _range.randomValue(using: &gen)
Foundation.Unit.init:2:17: note: 'required' initializer is declared in superclass here
1 | class Unit {
2 | required public init(symbol: String)}
| `- note: 'required' initializer is declared in superclass here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:47:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
45 | public func unitString(
46 | style: Formatter.UnitStyle = .short,
47 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
48 | ) -> String {
49 | switch style {
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:64:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
62 | _ value: NSMeasurement,
63 | style: Formatter.UnitStyle = .short,
64 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
65 | ) -> String {
66 | let fmt = NumberFormatter()
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:61:26: error: instance method 'format(_:style:unit:)' is declared in extension of 'Unit' and cannot be overridden
59 | }
60 |
61 | public override func format(
| `- error: instance method 'format(_:style:unit:)' is declared in extension of 'Unit' and cannot be overridden
62 | _ value: NSMeasurement,
63 | style: Formatter.UnitStyle = .short,
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:107:16: note: overridden declaration is here
105 | public extension Unit {
106 |
107 | @objc func format(
| `- note: overridden declaration is here
108 | _ value: NSMeasurement,
109 | style: Formatter.UnitStyle = .short,
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:13:20: warning: class 'UnitCount' must restate inherited '@unchecked Sendable' conformance
11 |
12 |
13 | public final class UnitCount: Unit, UnitPresentation {
| `- warning: class 'UnitCount' must restate inherited '@unchecked Sendable' conformance
14 | public var label: String { "Count" }
15 | var _range: Interval<Double>
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:83:6: error: Objective-C interoperability is disabled
81 |
82 | extension Unit {
83 | @objc
| `- error: Objective-C interoperability is disabled
84 | public class func count(max: Double = 100) -> UnitCount {
85 | return UnitCount(range: 0...max)
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:90:6: error: Objective-C interoperability is disabled
88 |
89 | extension UnitCount {
90 | @objc
| `- error: Objective-C interoperability is disabled
91 | public override class func count(max: Double = 100) -> UnitCount {
92 | return UnitCount(range: 0...max)
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:91:32: error: class method 'count(max:)' is declared in extension of 'Unit' and cannot be overridden
82 | extension Unit {
83 | @objc
84 | public class func count(max: Double = 100) -> UnitCount {
| `- note: overridden declaration is here
85 | return UnitCount(range: 0...max)
86 | }
:
89 | extension UnitCount {
90 | @objc
91 | public override class func count(max: Double = 100) -> UnitCount {
| `- error: class method 'count(max:)' is declared in extension of 'Unit' and cannot be overridden
92 | return UnitCount(range: 0...max)
93 | }
/host/spi-builder-workspace/Sources/AnyMeasure/UnitCount.swift:119:20: warning: class 'UnitPercent' must restate inherited '@unchecked Sendable' conformance
117 | // MARK: Percent
118 | /// Percentage Unit
119 | final public class UnitPercent: Unit {
| `- warning: class 'UnitPercent' must restate inherited '@unchecked Sendable' conformance
120 |
121 | private struct Symbol {
[35/36] Compiling AnyMeasure Extensions.swift
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:30:20: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
28 | var commonUnit: Unit
29 |
30 | var formatter: MeasurementFormatter
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
31 | }
32 |
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:50:1: error: 'required' initializer 'init(symbol:converter:)' must be provided by subclass of 'Dimension'
48 | fatalError("init(coder:) has not been implemented")
49 | }
50 | }
| `- error: 'required' initializer 'init(symbol:converter:)' must be provided by subclass of 'Dimension'
51 |
52 | public extension UsableUnitWrapper where Wrapped: Dimension {
Foundation.Dimension.init:2:17: note: 'required' initializer is declared in superclass here
1 | class Dimension {
2 | required public init(symbol: String, converter: UnitConverter)}
| `- note: 'required' initializer is declared in superclass here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:50:1: error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Dimension'
48 | fatalError("init(coder:) has not been implemented")
49 | }
50 | }
| `- error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Dimension'
51 |
52 | public extension UsableUnitWrapper where Wrapped: Dimension {
Foundation.Dimension.init:2:17: note: 'required' initializer is declared in superclass here
1 | class Dimension {
2 | required public init(symbol: String)}
| `- note: 'required' initializer is declared in superclass here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:34:14: warning: class 'UsableUnitWrapper' must restate inherited '@unchecked Sendable' conformance
32 |
33 | // MARK: UsableUnitWrapper
34 | public class UsableUnitWrapper<Wrapped: Unit>: Dimension, UsableUnit {
| `- warning: class 'UsableUnitWrapper' must restate inherited '@unchecked Sendable' conformance
35 | typealias Wrapped = Wrapped
36 | public var usage: UnitUsage
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:99:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
97 | func formatted(
98 | style: Formatter.UnitStyle = .short,
99 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
100 | ) -> String {
101 | self.unit.format(self, style: style, unit: unit)
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:110:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
108 | _ value: NSMeasurement,
109 | style: Formatter.UnitStyle = .short,
110 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
111 | ) -> String {
112 | let fmt = MeasurementFormatter()
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:107:6: error: Objective-C interoperability is disabled
105 | public extension Unit {
106 |
107 | @objc func format(
| `- error: Objective-C interoperability is disabled
108 | _ value: NSMeasurement,
109 | style: Formatter.UnitStyle = .short,
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:112:19: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
110 | unit: MeasurementFormatter.UnitOptions = .providedUnit
111 | ) -> String {
112 | let fmt = MeasurementFormatter()
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
113 | fmt.unitStyle = style
114 | fmt.unitOptions = unit
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
[36/36] Compiling AnyMeasure Interval.swift
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:30:20: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
28 | var commonUnit: Unit
29 |
30 | var formatter: MeasurementFormatter
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
31 | }
32 |
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:50:1: error: 'required' initializer 'init(symbol:converter:)' must be provided by subclass of 'Dimension'
48 | fatalError("init(coder:) has not been implemented")
49 | }
50 | }
| `- error: 'required' initializer 'init(symbol:converter:)' must be provided by subclass of 'Dimension'
51 |
52 | public extension UsableUnitWrapper where Wrapped: Dimension {
Foundation.Dimension.init:2:17: note: 'required' initializer is declared in superclass here
1 | class Dimension {
2 | required public init(symbol: String, converter: UnitConverter)}
| `- note: 'required' initializer is declared in superclass here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:50:1: error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Dimension'
48 | fatalError("init(coder:) has not been implemented")
49 | }
50 | }
| `- error: 'required' initializer 'init(symbol:)' must be provided by subclass of 'Dimension'
51 |
52 | public extension UsableUnitWrapper where Wrapped: Dimension {
Foundation.Dimension.init:2:17: note: 'required' initializer is declared in superclass here
1 | class Dimension {
2 | required public init(symbol: String)}
| `- note: 'required' initializer is declared in superclass here
3 |
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:34:14: warning: class 'UsableUnitWrapper' must restate inherited '@unchecked Sendable' conformance
32 |
33 | // MARK: UsableUnitWrapper
34 | public class UsableUnitWrapper<Wrapped: Unit>: Dimension, UsableUnit {
| `- warning: class 'UsableUnitWrapper' must restate inherited '@unchecked Sendable' conformance
35 | typealias Wrapped = Wrapped
36 | public var usage: UnitUsage
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:99:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
97 | func formatted(
98 | style: Formatter.UnitStyle = .short,
99 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
100 | ) -> String {
101 | self.unit.format(self, style: style, unit: unit)
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:110:15: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
108 | _ value: NSMeasurement,
109 | style: Formatter.UnitStyle = .short,
110 | unit: MeasurementFormatter.UnitOptions = .providedUnit
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
111 | ) -> String {
112 | let fmt = MeasurementFormatter()
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:107:6: error: Objective-C interoperability is disabled
105 | public extension Unit {
106 |
107 | @objc func format(
| `- error: Objective-C interoperability is disabled
108 | _ value: NSMeasurement,
109 | style: Formatter.UnitStyle = .short,
/host/spi-builder-workspace/Sources/AnyMeasure/Extensions.swift:112:19: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
110 | unit: MeasurementFormatter.UnitOptions = .providedUnit
111 | ) -> String {
112 | let fmt = MeasurementFormatter()
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
113 | fmt.unitStyle = style
114 | fmt.unitOptions = unit
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
BUILD FAILURE 6.1 wasm