Build Information
Failed to build SmartCodable, reference 7.0.1 (bc1522), with Swift 6.1 for Wasm on 29 Sep 2026 11:17:49 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344845-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
169 | if let handler = logsHandler {
170 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
171 | handler(message)
172 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/55] Emitting module SmartCodable
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:36:30: error: cannot find type 'ColorObject' in scope
34 | public struct SmartHexColor: PropertyWrapperable {
35 |
36 | public var wrappedValue: ColorObject?
| `- error: cannot find type 'ColorObject' in scope
37 | public init(wrappedValue: ColorObject?) {
38 | self.wrappedValue = wrappedValue
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:37:31: error: cannot find type 'ColorObject' in scope
35 |
36 | public var wrappedValue: ColorObject?
37 | public init(wrappedValue: ColorObject?) {
| `- error: cannot find type 'ColorObject' in scope
38 | self.wrappedValue = wrappedValue
39 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:55:31: error: cannot find type 'ColorObject' in scope
53 | var encodeHexFormat: HexFormat?
54 |
55 | public init(wrappedValue: ColorObject?, encodeHexFormat: HexFormat? = nil) {
| `- error: cannot find type 'ColorObject' in scope
56 | self.wrappedValue = wrappedValue
57 | self.encodeHexFormat = encodeHexFormat
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:34:15: error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
32 |
33 | @propertyWrapper
34 | public struct SmartHexColor: PropertyWrapperable {
| |- error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
| `- note: add stubs for conformance
35 |
36 | public var wrappedValue: ColorObject?
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:18:20: note: protocol requires nested type 'WrappedValue'
16 | */
17 | public protocol PropertyWrapperable {
18 | associatedtype WrappedValue
| `- note: protocol requires nested type 'WrappedValue'
19 |
20 | var wrappedValue: WrappedValue { get }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:125:86: error: cannot find type 'ColorObject' in scope
123 | extension SmartHexColor {
124 |
125 | public static func toColor(from hex: String, format: SmartHexColor.HexFormat) -> ColorObject? {
| `- error: cannot find type 'ColorObject' in scope
126 | // 1. 移除前缀
127 | let hexString = normalizedHexString(from: hex, prefix: format.prefix)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:184:41: error: cannot find type 'ColorObject' in scope
182 |
183 |
184 | static func toHexString(from color: ColorObject, format: SmartHexColor.HexFormat) -> String? {
| `- error: cannot find type 'ColorObject' in scope
185 | guard let components = color.rgbaComponents else { return nil }
186 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:313:11: error: cannot find type 'ColorObject' in scope
311 |
312 |
313 | extension ColorObject {
| `- error: cannot find type 'ColorObject' in scope
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
315 | #if os(macOS)
/host/spi-builder-workspace/Sources/SmartCodable/Core/Sentinel/SmartSentinel.swift:62:39: error: cannot find 'DispatchQueue' in scope
60 |
61 | /// 用于同步访问 logsHandler 的队列
62 | private static let handlerQueue = DispatchQueue(label: "com.smartcodable.handler", qos: .utility)
| `- error: cannot find 'DispatchQueue' in scope
63 |
64 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/Sentinel/SmartSentinel.swift:62:94: error: cannot infer contextual base in reference to member 'utility'
60 |
61 | /// 用于同步访问 logsHandler 的队列
62 | private static let handlerQueue = DispatchQueue(label: "com.smartcodable.handler", qos: .utility)
| `- error: cannot infer contextual base in reference to member 'utility'
63 |
64 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:14:31: error: cannot find type 'ColorObject' in scope
12 | public struct SmartHexColorTransformer: ValueTransformable {
13 |
14 | public typealias Object = ColorObject
| `- error: cannot find type 'ColorObject' in scope
15 | public typealias JSON = String
16 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:21:52: error: cannot find type 'ColorObject' in scope
19 | self.colorFormat = colorFormat
20 | }
21 | public func transformFromJSON(_ value: Any) -> ColorObject? {
| `- error: cannot find type 'ColorObject' in scope
22 | if let colorStr = value as? String {
23 | return SmartHexColor.toColor(from: colorStr, format: colorFormat)
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:28:42: error: cannot find type 'ColorObject' in scope
26 | }
27 |
28 | public func transformToJSON(_ value: ColorObject) -> String? {
| `- error: cannot find type 'ColorObject' in scope
29 | SmartHexColor.toHexString(from: value, format: colorFormat)
30 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:12:15: error: type 'SmartHexColorTransformer' does not conform to protocol 'ValueTransformable'
10 |
11 |
12 | public struct SmartHexColorTransformer: ValueTransformable {
| |- error: type 'SmartHexColorTransformer' does not conform to protocol 'ValueTransformable'
| `- note: add stubs for conformance
13 |
14 | public typealias Object = ColorObject
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/Transformer.swift:51:20: note: protocol requires nested type 'Object'
49 |
50 | public protocol ValueTransformable {
51 | associatedtype Object
| `- note: protocol requires nested type 'Object'
52 | associatedtype JSON
53 |
[9/55] Compiling SmartCodable SmartCaseDefaultable.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:14:31: error: cannot find type 'ColorObject' in scope
12 | public struct SmartHexColorTransformer: ValueTransformable {
13 |
14 | public typealias Object = ColorObject
| `- error: cannot find type 'ColorObject' in scope
15 | public typealias JSON = String
16 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:21:52: error: cannot find type 'ColorObject' in scope
19 | self.colorFormat = colorFormat
20 | }
21 | public func transformFromJSON(_ value: Any) -> ColorObject? {
| `- error: cannot find type 'ColorObject' in scope
22 | if let colorStr = value as? String {
23 | return SmartHexColor.toColor(from: colorStr, format: colorFormat)
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:28:42: error: cannot find type 'ColorObject' in scope
26 | }
27 |
28 | public func transformToJSON(_ value: ColorObject) -> String? {
| `- error: cannot find type 'ColorObject' in scope
29 | SmartHexColor.toHexString(from: value, format: colorFormat)
30 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:12:15: error: type 'SmartHexColorTransformer' does not conform to protocol 'ValueTransformable'
10 |
11 |
12 | public struct SmartHexColorTransformer: ValueTransformable {
| |- error: type 'SmartHexColorTransformer' does not conform to protocol 'ValueTransformable'
| `- note: add stubs for conformance
13 |
14 | public typealias Object = ColorObject
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/Transformer.swift:51:20: note: protocol requires nested type 'Object'
49 |
50 | public protocol ValueTransformable {
51 | associatedtype Object
| `- note: protocol requires nested type 'Object'
52 | associatedtype JSON
53 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:184:41: error: cannot find type 'ColorObject' in scope
182 |
183 |
184 | static func toHexString(from color: ColorObject, format: SmartHexColor.HexFormat) -> String? {
| `- error: cannot find type 'ColorObject' in scope
185 | guard let components = color.rgbaComponents else { return nil }
186 |
[10/55] Compiling SmartCodable DataTransformer.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:14:31: error: cannot find type 'ColorObject' in scope
12 | public struct SmartHexColorTransformer: ValueTransformable {
13 |
14 | public typealias Object = ColorObject
| `- error: cannot find type 'ColorObject' in scope
15 | public typealias JSON = String
16 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:21:52: error: cannot find type 'ColorObject' in scope
19 | self.colorFormat = colorFormat
20 | }
21 | public func transformFromJSON(_ value: Any) -> ColorObject? {
| `- error: cannot find type 'ColorObject' in scope
22 | if let colorStr = value as? String {
23 | return SmartHexColor.toColor(from: colorStr, format: colorFormat)
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:28:42: error: cannot find type 'ColorObject' in scope
26 | }
27 |
28 | public func transformToJSON(_ value: ColorObject) -> String? {
| `- error: cannot find type 'ColorObject' in scope
29 | SmartHexColor.toHexString(from: value, format: colorFormat)
30 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:12:15: error: type 'SmartHexColorTransformer' does not conform to protocol 'ValueTransformable'
10 |
11 |
12 | public struct SmartHexColorTransformer: ValueTransformable {
| |- error: type 'SmartHexColorTransformer' does not conform to protocol 'ValueTransformable'
| `- note: add stubs for conformance
13 |
14 | public typealias Object = ColorObject
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/Transformer.swift:51:20: note: protocol requires nested type 'Object'
49 |
50 | public protocol ValueTransformable {
51 | associatedtype Object
| `- note: protocol requires nested type 'Object'
52 | associatedtype JSON
53 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:184:41: error: cannot find type 'ColorObject' in scope
182 |
183 |
184 | static func toHexString(from color: ColorObject, format: SmartHexColor.HexFormat) -> String? {
| `- error: cannot find type 'ColorObject' in scope
185 | guard let components = color.rgbaComponents else { return nil }
186 |
[11/55] Compiling SmartCodable DateTransformer.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:14:31: error: cannot find type 'ColorObject' in scope
12 | public struct SmartHexColorTransformer: ValueTransformable {
13 |
14 | public typealias Object = ColorObject
| `- error: cannot find type 'ColorObject' in scope
15 | public typealias JSON = String
16 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:21:52: error: cannot find type 'ColorObject' in scope
19 | self.colorFormat = colorFormat
20 | }
21 | public func transformFromJSON(_ value: Any) -> ColorObject? {
| `- error: cannot find type 'ColorObject' in scope
22 | if let colorStr = value as? String {
23 | return SmartHexColor.toColor(from: colorStr, format: colorFormat)
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:28:42: error: cannot find type 'ColorObject' in scope
26 | }
27 |
28 | public func transformToJSON(_ value: ColorObject) -> String? {
| `- error: cannot find type 'ColorObject' in scope
29 | SmartHexColor.toHexString(from: value, format: colorFormat)
30 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:12:15: error: type 'SmartHexColorTransformer' does not conform to protocol 'ValueTransformable'
10 |
11 |
12 | public struct SmartHexColorTransformer: ValueTransformable {
| |- error: type 'SmartHexColorTransformer' does not conform to protocol 'ValueTransformable'
| `- note: add stubs for conformance
13 |
14 | public typealias Object = ColorObject
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/Transformer.swift:51:20: note: protocol requires nested type 'Object'
49 |
50 | public protocol ValueTransformable {
51 | associatedtype Object
| `- note: protocol requires nested type 'Object'
52 | associatedtype JSON
53 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:184:41: error: cannot find type 'ColorObject' in scope
182 |
183 |
184 | static func toHexString(from color: ColorObject, format: SmartHexColor.HexFormat) -> String? {
| `- error: cannot find type 'ColorObject' in scope
185 | guard let components = color.rgbaComponents else { return nil }
186 |
[12/55] Compiling SmartCodable HexColorTransformer.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:14:31: error: cannot find type 'ColorObject' in scope
12 | public struct SmartHexColorTransformer: ValueTransformable {
13 |
14 | public typealias Object = ColorObject
| `- error: cannot find type 'ColorObject' in scope
15 | public typealias JSON = String
16 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:21:52: error: cannot find type 'ColorObject' in scope
19 | self.colorFormat = colorFormat
20 | }
21 | public func transformFromJSON(_ value: Any) -> ColorObject? {
| `- error: cannot find type 'ColorObject' in scope
22 | if let colorStr = value as? String {
23 | return SmartHexColor.toColor(from: colorStr, format: colorFormat)
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:28:42: error: cannot find type 'ColorObject' in scope
26 | }
27 |
28 | public func transformToJSON(_ value: ColorObject) -> String? {
| `- error: cannot find type 'ColorObject' in scope
29 | SmartHexColor.toHexString(from: value, format: colorFormat)
30 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:12:15: error: type 'SmartHexColorTransformer' does not conform to protocol 'ValueTransformable'
10 |
11 |
12 | public struct SmartHexColorTransformer: ValueTransformable {
| |- error: type 'SmartHexColorTransformer' does not conform to protocol 'ValueTransformable'
| `- note: add stubs for conformance
13 |
14 | public typealias Object = ColorObject
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/Transformer.swift:51:20: note: protocol requires nested type 'Object'
49 |
50 | public protocol ValueTransformable {
51 | associatedtype Object
| `- note: protocol requires nested type 'Object'
52 | associatedtype JSON
53 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:184:41: error: cannot find type 'ColorObject' in scope
182 |
183 |
184 | static func toHexString(from color: ColorObject, format: SmartHexColor.HexFormat) -> String? {
| `- error: cannot find type 'ColorObject' in scope
185 | guard let components = color.rgbaComponents else { return nil }
186 |
[13/55] Compiling SmartCodable Transformer.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:14:31: error: cannot find type 'ColorObject' in scope
12 | public struct SmartHexColorTransformer: ValueTransformable {
13 |
14 | public typealias Object = ColorObject
| `- error: cannot find type 'ColorObject' in scope
15 | public typealias JSON = String
16 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:21:52: error: cannot find type 'ColorObject' in scope
19 | self.colorFormat = colorFormat
20 | }
21 | public func transformFromJSON(_ value: Any) -> ColorObject? {
| `- error: cannot find type 'ColorObject' in scope
22 | if let colorStr = value as? String {
23 | return SmartHexColor.toColor(from: colorStr, format: colorFormat)
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:28:42: error: cannot find type 'ColorObject' in scope
26 | }
27 |
28 | public func transformToJSON(_ value: ColorObject) -> String? {
| `- error: cannot find type 'ColorObject' in scope
29 | SmartHexColor.toHexString(from: value, format: colorFormat)
30 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:12:15: error: type 'SmartHexColorTransformer' does not conform to protocol 'ValueTransformable'
10 |
11 |
12 | public struct SmartHexColorTransformer: ValueTransformable {
| |- error: type 'SmartHexColorTransformer' does not conform to protocol 'ValueTransformable'
| `- note: add stubs for conformance
13 |
14 | public typealias Object = ColorObject
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/Transformer.swift:51:20: note: protocol requires nested type 'Object'
49 |
50 | public protocol ValueTransformable {
51 | associatedtype Object
| `- note: protocol requires nested type 'Object'
52 | associatedtype JSON
53 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:184:41: error: cannot find type 'ColorObject' in scope
182 |
183 |
184 | static func toHexString(from color: ColorObject, format: SmartHexColor.HexFormat) -> String? {
| `- error: cannot find type 'ColorObject' in scope
185 | guard let components = color.rgbaComponents else { return nil }
186 |
[14/55] Compiling SmartCodable URLTransformer.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:14:31: error: cannot find type 'ColorObject' in scope
12 | public struct SmartHexColorTransformer: ValueTransformable {
13 |
14 | public typealias Object = ColorObject
| `- error: cannot find type 'ColorObject' in scope
15 | public typealias JSON = String
16 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:21:52: error: cannot find type 'ColorObject' in scope
19 | self.colorFormat = colorFormat
20 | }
21 | public func transformFromJSON(_ value: Any) -> ColorObject? {
| `- error: cannot find type 'ColorObject' in scope
22 | if let colorStr = value as? String {
23 | return SmartHexColor.toColor(from: colorStr, format: colorFormat)
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:28:42: error: cannot find type 'ColorObject' in scope
26 | }
27 |
28 | public func transformToJSON(_ value: ColorObject) -> String? {
| `- error: cannot find type 'ColorObject' in scope
29 | SmartHexColor.toHexString(from: value, format: colorFormat)
30 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:12:15: error: type 'SmartHexColorTransformer' does not conform to protocol 'ValueTransformable'
10 |
11 |
12 | public struct SmartHexColorTransformer: ValueTransformable {
| |- error: type 'SmartHexColorTransformer' does not conform to protocol 'ValueTransformable'
| `- note: add stubs for conformance
13 |
14 | public typealias Object = ColorObject
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/Transformer.swift:51:20: note: protocol requires nested type 'Object'
49 |
50 | public protocol ValueTransformable {
51 | associatedtype Object
| `- note: protocol requires nested type 'Object'
52 | associatedtype JSON
53 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:184:41: error: cannot find type 'ColorObject' in scope
182 |
183 |
184 | static func toHexString(from color: ColorObject, format: SmartHexColor.HexFormat) -> String? {
| `- error: cannot find type 'ColorObject' in scope
185 | guard let components = color.rgbaComponents else { return nil }
186 |
[15/55] Compiling SmartCodable Cachable.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONDecoder/Decoder/Impl/JSONDecoderImpl+Unwrap.swift:232:29: error: 'let' binding pattern cannot appear in an expression
230 | }
231 |
232 | case .formatted(let formatter):
| `- error: 'let' binding pattern cannot appear in an expression
233 | let string = try container.decode(String.self)
234 | guard let date = formatter.date(from: string) else {
[16/55] Compiling SmartCodable DecodingError+Extension.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONDecoder/Decoder/Impl/JSONDecoderImpl+Unwrap.swift:232:29: error: 'let' binding pattern cannot appear in an expression
230 | }
231 |
232 | case .formatted(let formatter):
| `- error: 'let' binding pattern cannot appear in an expression
233 | let string = try container.decode(String.self)
234 | guard let date = formatter.date(from: string) else {
[17/55] Compiling SmartCodable DecodingSnapshot.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONDecoder/Decoder/Impl/JSONDecoderImpl+Unwrap.swift:232:29: error: 'let' binding pattern cannot appear in an expression
230 | }
231 |
232 | case .formatted(let formatter):
| `- error: 'let' binding pattern cannot appear in an expression
233 | let string = try container.decode(String.self)
234 | guard let date = formatter.date(from: string) else {
[18/55] Compiling SmartCodable JSONDecoderImpl+KeyedContainer.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONDecoder/Decoder/Impl/JSONDecoderImpl+Unwrap.swift:232:29: error: 'let' binding pattern cannot appear in an expression
230 | }
231 |
232 | case .formatted(let formatter):
| `- error: 'let' binding pattern cannot appear in an expression
233 | let string = try container.decode(String.self)
234 | guard let date = formatter.date(from: string) else {
[19/55] Compiling SmartCodable JSONDecoderImpl+SingleValueContainer.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONDecoder/Decoder/Impl/JSONDecoderImpl+Unwrap.swift:232:29: error: 'let' binding pattern cannot appear in an expression
230 | }
231 |
232 | case .formatted(let formatter):
| `- error: 'let' binding pattern cannot appear in an expression
233 | let string = try container.decode(String.self)
234 | guard let date = formatter.date(from: string) else {
[20/55] Compiling SmartCodable JSONDecoderImpl+UnkeyedContainer.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONDecoder/Decoder/Impl/JSONDecoderImpl+Unwrap.swift:232:29: error: 'let' binding pattern cannot appear in an expression
230 | }
231 |
232 | case .formatted(let formatter):
| `- error: 'let' binding pattern cannot appear in an expression
233 | let string = try container.decode(String.self)
234 | guard let date = formatter.date(from: string) else {
[21/55] Compiling SmartCodable JSONDecoderImpl+Unwrap.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONDecoder/Decoder/Impl/JSONDecoderImpl+Unwrap.swift:232:29: error: 'let' binding pattern cannot appear in an expression
230 | }
231 |
232 | case .formatted(let formatter):
| `- error: 'let' binding pattern cannot appear in an expression
233 | let string = try container.decode(String.self)
234 | guard let date = formatter.date(from: string) else {
[22/55] Compiling SmartCodable JSONDecoderImpl.swift
[23/55] Compiling SmartCodable KeysMapper.swift
[24/55] Compiling SmartCodable SmartJSONDecoder.swift
[25/55] Compiling SmartCodable SmartKeyDecodingStrategy.swift
[26/55] Compiling SmartCodable Patcher+Provider.swift
[27/55] Compiling SmartCodable Patcher+Transformer.swift
[28/55] Compiling SmartCodable Patcher.swift
[29/55] Compiling SmartCodable SmartIgnored.swift
[30/55] Compiling SmartCodable SmartPublished.swift
[31/55] Compiling SmartCodable LogCache.swift
[32/55] Compiling SmartCodable LogContainer.swift
[33/55] Compiling SmartCodable LogItem.swift
[34/55] Compiling SmartCodable SafeDictionary.swift
[35/55] Compiling SmartCodable SmartJSONEncoder.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONValue/JSONValue.swift:35:26: error: cannot find 'CFNumberGetType' in scope
33 |
34 | // 判断是否为 Bool 类型
35 | let cfType = CFNumberGetType(number)
| `- error: cannot find 'CFNumberGetType' in scope
36 | if cfType == .charType {
37 | return .bool(number.boolValue)
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONValue/JSONValue.swift:178:16: error: cannot find 'CFNumberGetType' in scope
176 | }
177 |
178 | switch CFNumberGetType(self) {
| `- error: cannot find 'CFNumberGetType' in scope
179 | case .charType:
180 | return self.boolValue
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:36:30: error: cannot find type 'ColorObject' in scope
34 | public struct SmartHexColor: PropertyWrapperable {
35 |
36 | public var wrappedValue: ColorObject?
| `- error: cannot find type 'ColorObject' in scope
37 | public init(wrappedValue: ColorObject?) {
38 | self.wrappedValue = wrappedValue
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:37:31: error: cannot find type 'ColorObject' in scope
35 |
36 | public var wrappedValue: ColorObject?
37 | public init(wrappedValue: ColorObject?) {
| `- error: cannot find type 'ColorObject' in scope
38 | self.wrappedValue = wrappedValue
39 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:119:1: error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
117 | extension SmartDate: Hashable {}
118 |
119 | extension SmartHexColor: Equatable {
| `- error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
120 | public static func == (lhs: SmartHexColor, rhs: SmartHexColor) -> Bool {
121 | switch (lhs.wrappedValue?.rgbaComponents, rhs.wrappedValue?.rgbaComponents) {
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:122:20: error: '?' pattern cannot match values of type '<<error type>>'
120 | public static func == (lhs: SmartHexColor, rhs: SmartHexColor) -> Bool {
121 | switch (lhs.wrappedValue?.rgbaComponents, rhs.wrappedValue?.rgbaComponents) {
122 | case let (l?, r?):
| `- error: '?' pattern cannot match values of type '<<error type>>'
123 | return l.r == r.r && l.g == r.g && l.b == r.b && l.a == r.a
124 | case (nil, nil):
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:124:15: warning: type '<<error type>>' is not optional, value can never be nil; this is an error in the Swift 6 language mode
122 | case let (l?, r?):
123 | return l.r == r.r && l.g == r.g && l.b == r.b && l.a == r.a
124 | case (nil, nil):
| `- warning: type '<<error type>>' is not optional, value can never be nil; this is an error in the Swift 6 language mode
125 | return true
126 | default:
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:123:20: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
121 | switch (lhs.wrappedValue?.rgbaComponents, rhs.wrappedValue?.rgbaComponents) {
122 | case let (l?, r?):
123 | return l.r == r.r && l.g == r.g && l.b == r.b && l.a == r.a
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
124 | case (nil, nil):
125 | return true
[36/55] Compiling SmartCodable SmartKeyEncodingStrategy.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONValue/JSONValue.swift:35:26: error: cannot find 'CFNumberGetType' in scope
33 |
34 | // 判断是否为 Bool 类型
35 | let cfType = CFNumberGetType(number)
| `- error: cannot find 'CFNumberGetType' in scope
36 | if cfType == .charType {
37 | return .bool(number.boolValue)
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONValue/JSONValue.swift:178:16: error: cannot find 'CFNumberGetType' in scope
176 | }
177 |
178 | switch CFNumberGetType(self) {
| `- error: cannot find 'CFNumberGetType' in scope
179 | case .charType:
180 | return self.boolValue
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:36:30: error: cannot find type 'ColorObject' in scope
34 | public struct SmartHexColor: PropertyWrapperable {
35 |
36 | public var wrappedValue: ColorObject?
| `- error: cannot find type 'ColorObject' in scope
37 | public init(wrappedValue: ColorObject?) {
38 | self.wrappedValue = wrappedValue
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:37:31: error: cannot find type 'ColorObject' in scope
35 |
36 | public var wrappedValue: ColorObject?
37 | public init(wrappedValue: ColorObject?) {
| `- error: cannot find type 'ColorObject' in scope
38 | self.wrappedValue = wrappedValue
39 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:119:1: error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
117 | extension SmartDate: Hashable {}
118 |
119 | extension SmartHexColor: Equatable {
| `- error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
120 | public static func == (lhs: SmartHexColor, rhs: SmartHexColor) -> Bool {
121 | switch (lhs.wrappedValue?.rgbaComponents, rhs.wrappedValue?.rgbaComponents) {
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:122:20: error: '?' pattern cannot match values of type '<<error type>>'
120 | public static func == (lhs: SmartHexColor, rhs: SmartHexColor) -> Bool {
121 | switch (lhs.wrappedValue?.rgbaComponents, rhs.wrappedValue?.rgbaComponents) {
122 | case let (l?, r?):
| `- error: '?' pattern cannot match values of type '<<error type>>'
123 | return l.r == r.r && l.g == r.g && l.b == r.b && l.a == r.a
124 | case (nil, nil):
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:124:15: warning: type '<<error type>>' is not optional, value can never be nil; this is an error in the Swift 6 language mode
122 | case let (l?, r?):
123 | return l.r == r.r && l.g == r.g && l.b == r.b && l.a == r.a
124 | case (nil, nil):
| `- warning: type '<<error type>>' is not optional, value can never be nil; this is an error in the Swift 6 language mode
125 | return true
126 | default:
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:123:20: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
121 | switch (lhs.wrappedValue?.rgbaComponents, rhs.wrappedValue?.rgbaComponents) {
122 | case let (l?, r?):
123 | return l.r == r.r && l.g == r.g && l.b == r.b && l.a == r.a
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
124 | case (nil, nil):
125 | return true
[37/55] Compiling SmartCodable JSONExtractor.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONValue/JSONValue.swift:35:26: error: cannot find 'CFNumberGetType' in scope
33 |
34 | // 判断是否为 Bool 类型
35 | let cfType = CFNumberGetType(number)
| `- error: cannot find 'CFNumberGetType' in scope
36 | if cfType == .charType {
37 | return .bool(number.boolValue)
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONValue/JSONValue.swift:178:16: error: cannot find 'CFNumberGetType' in scope
176 | }
177 |
178 | switch CFNumberGetType(self) {
| `- error: cannot find 'CFNumberGetType' in scope
179 | case .charType:
180 | return self.boolValue
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:36:30: error: cannot find type 'ColorObject' in scope
34 | public struct SmartHexColor: PropertyWrapperable {
35 |
36 | public var wrappedValue: ColorObject?
| `- error: cannot find type 'ColorObject' in scope
37 | public init(wrappedValue: ColorObject?) {
38 | self.wrappedValue = wrappedValue
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:37:31: error: cannot find type 'ColorObject' in scope
35 |
36 | public var wrappedValue: ColorObject?
37 | public init(wrappedValue: ColorObject?) {
| `- error: cannot find type 'ColorObject' in scope
38 | self.wrappedValue = wrappedValue
39 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:119:1: error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
117 | extension SmartDate: Hashable {}
118 |
119 | extension SmartHexColor: Equatable {
| `- error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
120 | public static func == (lhs: SmartHexColor, rhs: SmartHexColor) -> Bool {
121 | switch (lhs.wrappedValue?.rgbaComponents, rhs.wrappedValue?.rgbaComponents) {
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:122:20: error: '?' pattern cannot match values of type '<<error type>>'
120 | public static func == (lhs: SmartHexColor, rhs: SmartHexColor) -> Bool {
121 | switch (lhs.wrappedValue?.rgbaComponents, rhs.wrappedValue?.rgbaComponents) {
122 | case let (l?, r?):
| `- error: '?' pattern cannot match values of type '<<error type>>'
123 | return l.r == r.r && l.g == r.g && l.b == r.b && l.a == r.a
124 | case (nil, nil):
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:124:15: warning: type '<<error type>>' is not optional, value can never be nil; this is an error in the Swift 6 language mode
122 | case let (l?, r?):
123 | return l.r == r.r && l.g == r.g && l.b == r.b && l.a == r.a
124 | case (nil, nil):
| `- warning: type '<<error type>>' is not optional, value can never be nil; this is an error in the Swift 6 language mode
125 | return true
126 | default:
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:123:20: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
121 | switch (lhs.wrappedValue?.rgbaComponents, rhs.wrappedValue?.rgbaComponents) {
122 | case let (l?, r?):
123 | return l.r == r.r && l.g == r.g && l.b == r.b && l.a == r.a
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
124 | case (nil, nil):
125 | return true
[38/55] Compiling SmartCodable JSONValue+Extension.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONValue/JSONValue.swift:35:26: error: cannot find 'CFNumberGetType' in scope
33 |
34 | // 判断是否为 Bool 类型
35 | let cfType = CFNumberGetType(number)
| `- error: cannot find 'CFNumberGetType' in scope
36 | if cfType == .charType {
37 | return .bool(number.boolValue)
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONValue/JSONValue.swift:178:16: error: cannot find 'CFNumberGetType' in scope
176 | }
177 |
178 | switch CFNumberGetType(self) {
| `- error: cannot find 'CFNumberGetType' in scope
179 | case .charType:
180 | return self.boolValue
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:36:30: error: cannot find type 'ColorObject' in scope
34 | public struct SmartHexColor: PropertyWrapperable {
35 |
36 | public var wrappedValue: ColorObject?
| `- error: cannot find type 'ColorObject' in scope
37 | public init(wrappedValue: ColorObject?) {
38 | self.wrappedValue = wrappedValue
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:37:31: error: cannot find type 'ColorObject' in scope
35 |
36 | public var wrappedValue: ColorObject?
37 | public init(wrappedValue: ColorObject?) {
| `- error: cannot find type 'ColorObject' in scope
38 | self.wrappedValue = wrappedValue
39 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:119:1: error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
117 | extension SmartDate: Hashable {}
118 |
119 | extension SmartHexColor: Equatable {
| `- error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
120 | public static func == (lhs: SmartHexColor, rhs: SmartHexColor) -> Bool {
121 | switch (lhs.wrappedValue?.rgbaComponents, rhs.wrappedValue?.rgbaComponents) {
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:122:20: error: '?' pattern cannot match values of type '<<error type>>'
120 | public static func == (lhs: SmartHexColor, rhs: SmartHexColor) -> Bool {
121 | switch (lhs.wrappedValue?.rgbaComponents, rhs.wrappedValue?.rgbaComponents) {
122 | case let (l?, r?):
| `- error: '?' pattern cannot match values of type '<<error type>>'
123 | return l.r == r.r && l.g == r.g && l.b == r.b && l.a == r.a
124 | case (nil, nil):
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:124:15: warning: type '<<error type>>' is not optional, value can never be nil; this is an error in the Swift 6 language mode
122 | case let (l?, r?):
123 | return l.r == r.r && l.g == r.g && l.b == r.b && l.a == r.a
124 | case (nil, nil):
| `- warning: type '<<error type>>' is not optional, value can never be nil; this is an error in the Swift 6 language mode
125 | return true
126 | default:
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:123:20: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
121 | switch (lhs.wrappedValue?.rgbaComponents, rhs.wrappedValue?.rgbaComponents) {
122 | case let (l?, r?):
123 | return l.r == r.r && l.g == r.g && l.b == r.b && l.a == r.a
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
124 | case (nil, nil):
125 | return true
[39/55] Compiling SmartCodable JSONValue.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONValue/JSONValue.swift:35:26: error: cannot find 'CFNumberGetType' in scope
33 |
34 | // 判断是否为 Bool 类型
35 | let cfType = CFNumberGetType(number)
| `- error: cannot find 'CFNumberGetType' in scope
36 | if cfType == .charType {
37 | return .bool(number.boolValue)
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONValue/JSONValue.swift:178:16: error: cannot find 'CFNumberGetType' in scope
176 | }
177 |
178 | switch CFNumberGetType(self) {
| `- error: cannot find 'CFNumberGetType' in scope
179 | case .charType:
180 | return self.boolValue
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:36:30: error: cannot find type 'ColorObject' in scope
34 | public struct SmartHexColor: PropertyWrapperable {
35 |
36 | public var wrappedValue: ColorObject?
| `- error: cannot find type 'ColorObject' in scope
37 | public init(wrappedValue: ColorObject?) {
38 | self.wrappedValue = wrappedValue
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:37:31: error: cannot find type 'ColorObject' in scope
35 |
36 | public var wrappedValue: ColorObject?
37 | public init(wrappedValue: ColorObject?) {
| `- error: cannot find type 'ColorObject' in scope
38 | self.wrappedValue = wrappedValue
39 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:119:1: error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
117 | extension SmartDate: Hashable {}
118 |
119 | extension SmartHexColor: Equatable {
| `- error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
120 | public static func == (lhs: SmartHexColor, rhs: SmartHexColor) -> Bool {
121 | switch (lhs.wrappedValue?.rgbaComponents, rhs.wrappedValue?.rgbaComponents) {
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:122:20: error: '?' pattern cannot match values of type '<<error type>>'
120 | public static func == (lhs: SmartHexColor, rhs: SmartHexColor) -> Bool {
121 | switch (lhs.wrappedValue?.rgbaComponents, rhs.wrappedValue?.rgbaComponents) {
122 | case let (l?, r?):
| `- error: '?' pattern cannot match values of type '<<error type>>'
123 | return l.r == r.r && l.g == r.g && l.b == r.b && l.a == r.a
124 | case (nil, nil):
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:124:15: warning: type '<<error type>>' is not optional, value can never be nil; this is an error in the Swift 6 language mode
122 | case let (l?, r?):
123 | return l.r == r.r && l.g == r.g && l.b == r.b && l.a == r.a
124 | case (nil, nil):
| `- warning: type '<<error type>>' is not optional, value can never be nil; this is an error in the Swift 6 language mode
125 | return true
126 | default:
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:123:20: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
121 | switch (lhs.wrappedValue?.rgbaComponents, rhs.wrappedValue?.rgbaComponents) {
122 | case let (l?, r?):
123 | return l.r == r.r && l.g == r.g && l.b == r.b && l.a == r.a
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
124 | case (nil, nil):
125 | return true
[40/55] Compiling SmartCodable PropertyWrapperProtocol.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONValue/JSONValue.swift:35:26: error: cannot find 'CFNumberGetType' in scope
33 |
34 | // 判断是否为 Bool 类型
35 | let cfType = CFNumberGetType(number)
| `- error: cannot find 'CFNumberGetType' in scope
36 | if cfType == .charType {
37 | return .bool(number.boolValue)
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONValue/JSONValue.swift:178:16: error: cannot find 'CFNumberGetType' in scope
176 | }
177 |
178 | switch CFNumberGetType(self) {
| `- error: cannot find 'CFNumberGetType' in scope
179 | case .charType:
180 | return self.boolValue
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:36:30: error: cannot find type 'ColorObject' in scope
34 | public struct SmartHexColor: PropertyWrapperable {
35 |
36 | public var wrappedValue: ColorObject?
| `- error: cannot find type 'ColorObject' in scope
37 | public init(wrappedValue: ColorObject?) {
38 | self.wrappedValue = wrappedValue
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:37:31: error: cannot find type 'ColorObject' in scope
35 |
36 | public var wrappedValue: ColorObject?
37 | public init(wrappedValue: ColorObject?) {
| `- error: cannot find type 'ColorObject' in scope
38 | self.wrappedValue = wrappedValue
39 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:119:1: error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
117 | extension SmartDate: Hashable {}
118 |
119 | extension SmartHexColor: Equatable {
| `- error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
120 | public static func == (lhs: SmartHexColor, rhs: SmartHexColor) -> Bool {
121 | switch (lhs.wrappedValue?.rgbaComponents, rhs.wrappedValue?.rgbaComponents) {
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:122:20: error: '?' pattern cannot match values of type '<<error type>>'
120 | public static func == (lhs: SmartHexColor, rhs: SmartHexColor) -> Bool {
121 | switch (lhs.wrappedValue?.rgbaComponents, rhs.wrappedValue?.rgbaComponents) {
122 | case let (l?, r?):
| `- error: '?' pattern cannot match values of type '<<error type>>'
123 | return l.r == r.r && l.g == r.g && l.b == r.b && l.a == r.a
124 | case (nil, nil):
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:124:15: warning: type '<<error type>>' is not optional, value can never be nil; this is an error in the Swift 6 language mode
122 | case let (l?, r?):
123 | return l.r == r.r && l.g == r.g && l.b == r.b && l.a == r.a
124 | case (nil, nil):
| `- warning: type '<<error type>>' is not optional, value can never be nil; this is an error in the Swift 6 language mode
125 | return true
126 | default:
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:123:20: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
121 | switch (lhs.wrappedValue?.rgbaComponents, rhs.wrappedValue?.rgbaComponents) {
122 | case let (l?, r?):
123 | return l.r == r.r && l.g == r.g && l.b == r.b && l.a == r.a
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
124 | case (nil, nil):
125 | return true
[41/55] Compiling SmartCodable SmartAny.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONValue/JSONValue.swift:35:26: error: cannot find 'CFNumberGetType' in scope
33 |
34 | // 判断是否为 Bool 类型
35 | let cfType = CFNumberGetType(number)
| `- error: cannot find 'CFNumberGetType' in scope
36 | if cfType == .charType {
37 | return .bool(number.boolValue)
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONValue/JSONValue.swift:178:16: error: cannot find 'CFNumberGetType' in scope
176 | }
177 |
178 | switch CFNumberGetType(self) {
| `- error: cannot find 'CFNumberGetType' in scope
179 | case .charType:
180 | return self.boolValue
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:36:30: error: cannot find type 'ColorObject' in scope
34 | public struct SmartHexColor: PropertyWrapperable {
35 |
36 | public var wrappedValue: ColorObject?
| `- error: cannot find type 'ColorObject' in scope
37 | public init(wrappedValue: ColorObject?) {
38 | self.wrappedValue = wrappedValue
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:37:31: error: cannot find type 'ColorObject' in scope
35 |
36 | public var wrappedValue: ColorObject?
37 | public init(wrappedValue: ColorObject?) {
| `- error: cannot find type 'ColorObject' in scope
38 | self.wrappedValue = wrappedValue
39 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:119:1: error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
117 | extension SmartDate: Hashable {}
118 |
119 | extension SmartHexColor: Equatable {
| `- error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
120 | public static func == (lhs: SmartHexColor, rhs: SmartHexColor) -> Bool {
121 | switch (lhs.wrappedValue?.rgbaComponents, rhs.wrappedValue?.rgbaComponents) {
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:122:20: error: '?' pattern cannot match values of type '<<error type>>'
120 | public static func == (lhs: SmartHexColor, rhs: SmartHexColor) -> Bool {
121 | switch (lhs.wrappedValue?.rgbaComponents, rhs.wrappedValue?.rgbaComponents) {
122 | case let (l?, r?):
| `- error: '?' pattern cannot match values of type '<<error type>>'
123 | return l.r == r.r && l.g == r.g && l.b == r.b && l.a == r.a
124 | case (nil, nil):
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:124:15: warning: type '<<error type>>' is not optional, value can never be nil; this is an error in the Swift 6 language mode
122 | case let (l?, r?):
123 | return l.r == r.r && l.g == r.g && l.b == r.b && l.a == r.a
124 | case (nil, nil):
| `- warning: type '<<error type>>' is not optional, value can never be nil; this is an error in the Swift 6 language mode
125 | return true
126 | default:
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:123:20: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
121 | switch (lhs.wrappedValue?.rgbaComponents, rhs.wrappedValue?.rgbaComponents) {
122 | case let (l?, r?):
123 | return l.r == r.r && l.g == r.g && l.b == r.b && l.a == r.a
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
124 | case (nil, nil):
125 | return true
[42/55] Compiling SmartCodable JSONKeyedEncodingContainer.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONEncoder/Impl/_SpecialTreatmentEncoder.swift:114:25: error: 'let' binding pattern cannot appear in an expression
112 | }
113 |
114 | case .formatted(let formatter):
| `- error: 'let' binding pattern cannot appear in an expression
115 | return .string(formatter.string(from: date))
116 |
[43/55] Compiling SmartCodable JSONSingleValueEncodingContainer.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONEncoder/Impl/_SpecialTreatmentEncoder.swift:114:25: error: 'let' binding pattern cannot appear in an expression
112 | }
113 |
114 | case .formatted(let formatter):
| `- error: 'let' binding pattern cannot appear in an expression
115 | return .string(formatter.string(from: date))
116 |
[44/55] Compiling SmartCodable JSONUnkeyedEncodingContainer.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONEncoder/Impl/_SpecialTreatmentEncoder.swift:114:25: error: 'let' binding pattern cannot appear in an expression
112 | }
113 |
114 | case .formatted(let formatter):
| `- error: 'let' binding pattern cannot appear in an expression
115 | return .string(formatter.string(from: date))
116 |
[45/55] Compiling SmartCodable EncodingCache.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONEncoder/Impl/_SpecialTreatmentEncoder.swift:114:25: error: 'let' binding pattern cannot appear in an expression
112 | }
113 |
114 | case .formatted(let formatter):
| `- error: 'let' binding pattern cannot appear in an expression
115 | return .string(formatter.string(from: date))
116 |
[46/55] Compiling SmartCodable JSONEncoderImpl.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONEncoder/Impl/_SpecialTreatmentEncoder.swift:114:25: error: 'let' binding pattern cannot appear in an expression
112 | }
113 |
114 | case .formatted(let formatter):
| `- error: 'let' binding pattern cannot appear in an expression
115 | return .string(formatter.string(from: date))
116 |
[47/55] Compiling SmartCodable _SpecialTreatmentEncoder.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONEncoder/Impl/_SpecialTreatmentEncoder.swift:114:25: error: 'let' binding pattern cannot appear in an expression
112 | }
113 |
114 | case .formatted(let formatter):
| `- error: 'let' binding pattern cannot appear in an expression
115 | return .string(formatter.string(from: date))
116 |
[48/55] Compiling SmartCodable JSONFuture.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/JSONEncoder/Impl/_SpecialTreatmentEncoder.swift:114:25: error: 'let' binding pattern cannot appear in an expression
112 | }
113 |
114 | case .formatted(let formatter):
| `- error: 'let' binding pattern cannot appear in an expression
115 | return .string(formatter.string(from: date))
116 |
[49/55] Compiling SmartCodable SmartAnyImpl.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartAny/SmartAnyImpl.swift:172:26: error: cannot find 'kCFBooleanTrue' in scope
170 | */
171 |
172 | if value === kCFBooleanTrue as NSNumber || value === kCFBooleanFalse as NSNumber {
| `- error: cannot find 'kCFBooleanTrue' in scope
173 | if let bool = value as? Bool {
174 | try container.encode(bool)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartAny/SmartAnyImpl.swift:172:66: error: cannot find 'kCFBooleanFalse' in scope
170 | */
171 |
172 | if value === kCFBooleanTrue as NSNumber || value === kCFBooleanFalse as NSNumber {
| `- error: cannot find 'kCFBooleanFalse' in scope
173 | if let bool = value as? Bool {
174 | try container.encode(bool)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartAny/SmartAnyImpl.swift:180:43: warning: cast from 'NSNumber' to unrelated type 'CGFloat' always fails
178 | } else if let float = value as? Float {
179 | try container.encode(float)
180 | } else if let cgfloat = value as? CGFloat {
| `- warning: cast from 'NSNumber' to unrelated type 'CGFloat' always fails
181 | try container.encode(cgfloat)
182 | } else if let int = value as? Int {
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:37:31: error: cannot find type 'ColorObject' in scope
35 |
36 | public var wrappedValue: ColorObject?
37 | public init(wrappedValue: ColorObject?) {
| `- error: cannot find type 'ColorObject' in scope
38 | self.wrappedValue = wrappedValue
39 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:55:31: error: cannot find type 'ColorObject' in scope
53 | var encodeHexFormat: HexFormat?
54 |
55 | public init(wrappedValue: ColorObject?, encodeHexFormat: HexFormat? = nil) {
| `- error: cannot find type 'ColorObject' in scope
56 | self.wrappedValue = wrappedValue
57 | self.encodeHexFormat = encodeHexFormat
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:36:30: error: cannot find type 'ColorObject' in scope
34 | public struct SmartHexColor: PropertyWrapperable {
35 |
36 | public var wrappedValue: ColorObject?
| `- error: cannot find type 'ColorObject' in scope
37 | public init(wrappedValue: ColorObject?) {
38 | self.wrappedValue = wrappedValue
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:34:15: error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
32 |
33 | @propertyWrapper
34 | public struct SmartHexColor: PropertyWrapperable {
| |- error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
| `- note: add stubs for conformance
35 |
36 | public var wrappedValue: ColorObject?
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:18:20: note: protocol requires nested type 'WrappedValue'
16 | */
17 | public protocol PropertyWrapperable {
18 | associatedtype WrappedValue
| `- note: protocol requires nested type 'WrappedValue'
19 |
20 | var wrappedValue: WrappedValue { get }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:125:86: error: cannot find type 'ColorObject' in scope
123 | extension SmartHexColor {
124 |
125 | public static func toColor(from hex: String, format: SmartHexColor.HexFormat) -> ColorObject? {
| `- error: cannot find type 'ColorObject' in scope
126 | // 1. 移除前缀
127 | let hexString = normalizedHexString(from: hex, prefix: format.prefix)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:184:41: error: cannot find type 'ColorObject' in scope
182 |
183 |
184 | static func toHexString(from color: ColorObject, format: SmartHexColor.HexFormat) -> String? {
| `- error: cannot find type 'ColorObject' in scope
185 | guard let components = color.rgbaComponents else { return nil }
186 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:313:11: error: cannot find type 'ColorObject' in scope
311 |
312 |
313 | extension ColorObject {
| `- error: cannot find type 'ColorObject' in scope
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
315 | #if os(macOS)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:42:34: error: cannot find type 'ColorObject' in scope
40 |
41 | public static func createInstance(with value: Any) -> SmartHexColor? {
42 | if let value = value as? ColorObject {
| `- error: cannot find type 'ColorObject' in scope
43 | return SmartHexColor(wrappedValue: value)
44 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:43:33: error: incorrect argument label in call (have 'wrappedValue:', expected 'from:')
41 | public static func createInstance(with value: Any) -> SmartHexColor? {
42 | if let value = value as? ColorObject {
43 | return SmartHexColor(wrappedValue: value)
| `- error: incorrect argument label in call (have 'wrappedValue:', expected 'from:')
44 | }
45 | return nil
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:133:70: error: cannot find type 'CGFloat' in scope
131 |
132 | // 3. 按格式解析颜色分量
133 | func component(_ value: UInt64, shift: Int, mask: UInt64) -> CGFloat {
| `- error: cannot find type 'CGFloat' in scope
134 | return CGFloat((value >> shift) & mask) / 255
135 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:137:25: error: cannot find type 'CGFloat' in scope
135 | }
136 |
137 | let r, g, b, a: CGFloat
| `- error: cannot find type 'CGFloat' in scope
138 |
139 | switch format {
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:141:17: error: cannot find 'CGFloat' in scope
139 | switch format {
140 | case .rgb:
141 | r = CGFloat((hexValue >> 8) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
142 | g = CGFloat((hexValue >> 4) & 0xF) / 15
143 | b = CGFloat(hexValue & 0xF) / 15
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:142:17: error: cannot find 'CGFloat' in scope
140 | case .rgb:
141 | r = CGFloat((hexValue >> 8) & 0xF) / 15
142 | g = CGFloat((hexValue >> 4) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
143 | b = CGFloat(hexValue & 0xF) / 15
144 | a = 1.0
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:143:17: error: cannot find 'CGFloat' in scope
141 | r = CGFloat((hexValue >> 8) & 0xF) / 15
142 | g = CGFloat((hexValue >> 4) & 0xF) / 15
143 | b = CGFloat(hexValue & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
144 | a = 1.0
145 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:147:17: error: cannot find 'CGFloat' in scope
145 |
146 | case .rgba:
147 | r = CGFloat((hexValue >> 12) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:148:17: error: cannot find 'CGFloat' in scope
146 | case .rgba:
147 | r = CGFloat((hexValue >> 12) & 0xF) / 15
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
150 | a = CGFloat(hexValue & 0xF) / 15
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:149:17: error: cannot find 'CGFloat' in scope
147 | r = CGFloat((hexValue >> 12) & 0xF) / 15
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
150 | a = CGFloat(hexValue & 0xF) / 15
151 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:150:17: error: cannot find 'CGFloat' in scope
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
150 | a = CGFloat(hexValue & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
151 |
152 | case .rrggbb:
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:187:34: error: cannot find type 'CGFloat' in scope
185 | guard let components = color.rgbaComponents else { return nil }
186 |
187 | func clamped255(_ value: CGFloat) -> Int {
| `- error: cannot find type 'CGFloat' in scope
188 | return min(max(Int(value * 255), 0), 255)
189 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:200:72: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
198 | switch format {
199 | case .rgb(let prefix):
200 | return prefix.rawValue + String(format: "%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:200:82: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
198 | switch format {
199 | case .rgb(let prefix):
200 | return prefix.rawValue + String(format: "%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:200:92: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
198 | switch format {
199 | case .rgb(let prefix):
200 | return prefix.rawValue + String(format: "%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:76: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:86: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:96: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:106: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:29: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:41: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:53: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:65: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
[50/55] Compiling SmartCodable SmartCompact.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartAny/SmartAnyImpl.swift:172:26: error: cannot find 'kCFBooleanTrue' in scope
170 | */
171 |
172 | if value === kCFBooleanTrue as NSNumber || value === kCFBooleanFalse as NSNumber {
| `- error: cannot find 'kCFBooleanTrue' in scope
173 | if let bool = value as? Bool {
174 | try container.encode(bool)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartAny/SmartAnyImpl.swift:172:66: error: cannot find 'kCFBooleanFalse' in scope
170 | */
171 |
172 | if value === kCFBooleanTrue as NSNumber || value === kCFBooleanFalse as NSNumber {
| `- error: cannot find 'kCFBooleanFalse' in scope
173 | if let bool = value as? Bool {
174 | try container.encode(bool)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartAny/SmartAnyImpl.swift:180:43: warning: cast from 'NSNumber' to unrelated type 'CGFloat' always fails
178 | } else if let float = value as? Float {
179 | try container.encode(float)
180 | } else if let cgfloat = value as? CGFloat {
| `- warning: cast from 'NSNumber' to unrelated type 'CGFloat' always fails
181 | try container.encode(cgfloat)
182 | } else if let int = value as? Int {
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:37:31: error: cannot find type 'ColorObject' in scope
35 |
36 | public var wrappedValue: ColorObject?
37 | public init(wrappedValue: ColorObject?) {
| `- error: cannot find type 'ColorObject' in scope
38 | self.wrappedValue = wrappedValue
39 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:55:31: error: cannot find type 'ColorObject' in scope
53 | var encodeHexFormat: HexFormat?
54 |
55 | public init(wrappedValue: ColorObject?, encodeHexFormat: HexFormat? = nil) {
| `- error: cannot find type 'ColorObject' in scope
56 | self.wrappedValue = wrappedValue
57 | self.encodeHexFormat = encodeHexFormat
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:36:30: error: cannot find type 'ColorObject' in scope
34 | public struct SmartHexColor: PropertyWrapperable {
35 |
36 | public var wrappedValue: ColorObject?
| `- error: cannot find type 'ColorObject' in scope
37 | public init(wrappedValue: ColorObject?) {
38 | self.wrappedValue = wrappedValue
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:34:15: error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
32 |
33 | @propertyWrapper
34 | public struct SmartHexColor: PropertyWrapperable {
| |- error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
| `- note: add stubs for conformance
35 |
36 | public var wrappedValue: ColorObject?
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:18:20: note: protocol requires nested type 'WrappedValue'
16 | */
17 | public protocol PropertyWrapperable {
18 | associatedtype WrappedValue
| `- note: protocol requires nested type 'WrappedValue'
19 |
20 | var wrappedValue: WrappedValue { get }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:125:86: error: cannot find type 'ColorObject' in scope
123 | extension SmartHexColor {
124 |
125 | public static func toColor(from hex: String, format: SmartHexColor.HexFormat) -> ColorObject? {
| `- error: cannot find type 'ColorObject' in scope
126 | // 1. 移除前缀
127 | let hexString = normalizedHexString(from: hex, prefix: format.prefix)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:184:41: error: cannot find type 'ColorObject' in scope
182 |
183 |
184 | static func toHexString(from color: ColorObject, format: SmartHexColor.HexFormat) -> String? {
| `- error: cannot find type 'ColorObject' in scope
185 | guard let components = color.rgbaComponents else { return nil }
186 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:313:11: error: cannot find type 'ColorObject' in scope
311 |
312 |
313 | extension ColorObject {
| `- error: cannot find type 'ColorObject' in scope
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
315 | #if os(macOS)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:42:34: error: cannot find type 'ColorObject' in scope
40 |
41 | public static func createInstance(with value: Any) -> SmartHexColor? {
42 | if let value = value as? ColorObject {
| `- error: cannot find type 'ColorObject' in scope
43 | return SmartHexColor(wrappedValue: value)
44 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:43:33: error: incorrect argument label in call (have 'wrappedValue:', expected 'from:')
41 | public static func createInstance(with value: Any) -> SmartHexColor? {
42 | if let value = value as? ColorObject {
43 | return SmartHexColor(wrappedValue: value)
| `- error: incorrect argument label in call (have 'wrappedValue:', expected 'from:')
44 | }
45 | return nil
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:133:70: error: cannot find type 'CGFloat' in scope
131 |
132 | // 3. 按格式解析颜色分量
133 | func component(_ value: UInt64, shift: Int, mask: UInt64) -> CGFloat {
| `- error: cannot find type 'CGFloat' in scope
134 | return CGFloat((value >> shift) & mask) / 255
135 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:137:25: error: cannot find type 'CGFloat' in scope
135 | }
136 |
137 | let r, g, b, a: CGFloat
| `- error: cannot find type 'CGFloat' in scope
138 |
139 | switch format {
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:141:17: error: cannot find 'CGFloat' in scope
139 | switch format {
140 | case .rgb:
141 | r = CGFloat((hexValue >> 8) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
142 | g = CGFloat((hexValue >> 4) & 0xF) / 15
143 | b = CGFloat(hexValue & 0xF) / 15
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:142:17: error: cannot find 'CGFloat' in scope
140 | case .rgb:
141 | r = CGFloat((hexValue >> 8) & 0xF) / 15
142 | g = CGFloat((hexValue >> 4) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
143 | b = CGFloat(hexValue & 0xF) / 15
144 | a = 1.0
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:143:17: error: cannot find 'CGFloat' in scope
141 | r = CGFloat((hexValue >> 8) & 0xF) / 15
142 | g = CGFloat((hexValue >> 4) & 0xF) / 15
143 | b = CGFloat(hexValue & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
144 | a = 1.0
145 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:147:17: error: cannot find 'CGFloat' in scope
145 |
146 | case .rgba:
147 | r = CGFloat((hexValue >> 12) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:148:17: error: cannot find 'CGFloat' in scope
146 | case .rgba:
147 | r = CGFloat((hexValue >> 12) & 0xF) / 15
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
150 | a = CGFloat(hexValue & 0xF) / 15
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:149:17: error: cannot find 'CGFloat' in scope
147 | r = CGFloat((hexValue >> 12) & 0xF) / 15
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
150 | a = CGFloat(hexValue & 0xF) / 15
151 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:150:17: error: cannot find 'CGFloat' in scope
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
150 | a = CGFloat(hexValue & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
151 |
152 | case .rrggbb:
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:187:34: error: cannot find type 'CGFloat' in scope
185 | guard let components = color.rgbaComponents else { return nil }
186 |
187 | func clamped255(_ value: CGFloat) -> Int {
| `- error: cannot find type 'CGFloat' in scope
188 | return min(max(Int(value * 255), 0), 255)
189 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:200:72: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
198 | switch format {
199 | case .rgb(let prefix):
200 | return prefix.rawValue + String(format: "%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:200:82: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
198 | switch format {
199 | case .rgb(let prefix):
200 | return prefix.rawValue + String(format: "%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:200:92: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
198 | switch format {
199 | case .rgb(let prefix):
200 | return prefix.rawValue + String(format: "%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:76: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:86: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:96: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:106: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:29: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:41: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:53: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:65: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
[51/55] Compiling SmartCodable SmartCompactArray.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartAny/SmartAnyImpl.swift:172:26: error: cannot find 'kCFBooleanTrue' in scope
170 | */
171 |
172 | if value === kCFBooleanTrue as NSNumber || value === kCFBooleanFalse as NSNumber {
| `- error: cannot find 'kCFBooleanTrue' in scope
173 | if let bool = value as? Bool {
174 | try container.encode(bool)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartAny/SmartAnyImpl.swift:172:66: error: cannot find 'kCFBooleanFalse' in scope
170 | */
171 |
172 | if value === kCFBooleanTrue as NSNumber || value === kCFBooleanFalse as NSNumber {
| `- error: cannot find 'kCFBooleanFalse' in scope
173 | if let bool = value as? Bool {
174 | try container.encode(bool)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartAny/SmartAnyImpl.swift:180:43: warning: cast from 'NSNumber' to unrelated type 'CGFloat' always fails
178 | } else if let float = value as? Float {
179 | try container.encode(float)
180 | } else if let cgfloat = value as? CGFloat {
| `- warning: cast from 'NSNumber' to unrelated type 'CGFloat' always fails
181 | try container.encode(cgfloat)
182 | } else if let int = value as? Int {
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:37:31: error: cannot find type 'ColorObject' in scope
35 |
36 | public var wrappedValue: ColorObject?
37 | public init(wrappedValue: ColorObject?) {
| `- error: cannot find type 'ColorObject' in scope
38 | self.wrappedValue = wrappedValue
39 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:55:31: error: cannot find type 'ColorObject' in scope
53 | var encodeHexFormat: HexFormat?
54 |
55 | public init(wrappedValue: ColorObject?, encodeHexFormat: HexFormat? = nil) {
| `- error: cannot find type 'ColorObject' in scope
56 | self.wrappedValue = wrappedValue
57 | self.encodeHexFormat = encodeHexFormat
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:36:30: error: cannot find type 'ColorObject' in scope
34 | public struct SmartHexColor: PropertyWrapperable {
35 |
36 | public var wrappedValue: ColorObject?
| `- error: cannot find type 'ColorObject' in scope
37 | public init(wrappedValue: ColorObject?) {
38 | self.wrappedValue = wrappedValue
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:34:15: error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
32 |
33 | @propertyWrapper
34 | public struct SmartHexColor: PropertyWrapperable {
| |- error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
| `- note: add stubs for conformance
35 |
36 | public var wrappedValue: ColorObject?
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:18:20: note: protocol requires nested type 'WrappedValue'
16 | */
17 | public protocol PropertyWrapperable {
18 | associatedtype WrappedValue
| `- note: protocol requires nested type 'WrappedValue'
19 |
20 | var wrappedValue: WrappedValue { get }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:125:86: error: cannot find type 'ColorObject' in scope
123 | extension SmartHexColor {
124 |
125 | public static func toColor(from hex: String, format: SmartHexColor.HexFormat) -> ColorObject? {
| `- error: cannot find type 'ColorObject' in scope
126 | // 1. 移除前缀
127 | let hexString = normalizedHexString(from: hex, prefix: format.prefix)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:184:41: error: cannot find type 'ColorObject' in scope
182 |
183 |
184 | static func toHexString(from color: ColorObject, format: SmartHexColor.HexFormat) -> String? {
| `- error: cannot find type 'ColorObject' in scope
185 | guard let components = color.rgbaComponents else { return nil }
186 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:313:11: error: cannot find type 'ColorObject' in scope
311 |
312 |
313 | extension ColorObject {
| `- error: cannot find type 'ColorObject' in scope
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
315 | #if os(macOS)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:42:34: error: cannot find type 'ColorObject' in scope
40 |
41 | public static func createInstance(with value: Any) -> SmartHexColor? {
42 | if let value = value as? ColorObject {
| `- error: cannot find type 'ColorObject' in scope
43 | return SmartHexColor(wrappedValue: value)
44 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:43:33: error: incorrect argument label in call (have 'wrappedValue:', expected 'from:')
41 | public static func createInstance(with value: Any) -> SmartHexColor? {
42 | if let value = value as? ColorObject {
43 | return SmartHexColor(wrappedValue: value)
| `- error: incorrect argument label in call (have 'wrappedValue:', expected 'from:')
44 | }
45 | return nil
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:133:70: error: cannot find type 'CGFloat' in scope
131 |
132 | // 3. 按格式解析颜色分量
133 | func component(_ value: UInt64, shift: Int, mask: UInt64) -> CGFloat {
| `- error: cannot find type 'CGFloat' in scope
134 | return CGFloat((value >> shift) & mask) / 255
135 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:137:25: error: cannot find type 'CGFloat' in scope
135 | }
136 |
137 | let r, g, b, a: CGFloat
| `- error: cannot find type 'CGFloat' in scope
138 |
139 | switch format {
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:141:17: error: cannot find 'CGFloat' in scope
139 | switch format {
140 | case .rgb:
141 | r = CGFloat((hexValue >> 8) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
142 | g = CGFloat((hexValue >> 4) & 0xF) / 15
143 | b = CGFloat(hexValue & 0xF) / 15
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:142:17: error: cannot find 'CGFloat' in scope
140 | case .rgb:
141 | r = CGFloat((hexValue >> 8) & 0xF) / 15
142 | g = CGFloat((hexValue >> 4) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
143 | b = CGFloat(hexValue & 0xF) / 15
144 | a = 1.0
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:143:17: error: cannot find 'CGFloat' in scope
141 | r = CGFloat((hexValue >> 8) & 0xF) / 15
142 | g = CGFloat((hexValue >> 4) & 0xF) / 15
143 | b = CGFloat(hexValue & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
144 | a = 1.0
145 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:147:17: error: cannot find 'CGFloat' in scope
145 |
146 | case .rgba:
147 | r = CGFloat((hexValue >> 12) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:148:17: error: cannot find 'CGFloat' in scope
146 | case .rgba:
147 | r = CGFloat((hexValue >> 12) & 0xF) / 15
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
150 | a = CGFloat(hexValue & 0xF) / 15
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:149:17: error: cannot find 'CGFloat' in scope
147 | r = CGFloat((hexValue >> 12) & 0xF) / 15
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
150 | a = CGFloat(hexValue & 0xF) / 15
151 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:150:17: error: cannot find 'CGFloat' in scope
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
150 | a = CGFloat(hexValue & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
151 |
152 | case .rrggbb:
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:187:34: error: cannot find type 'CGFloat' in scope
185 | guard let components = color.rgbaComponents else { return nil }
186 |
187 | func clamped255(_ value: CGFloat) -> Int {
| `- error: cannot find type 'CGFloat' in scope
188 | return min(max(Int(value * 255), 0), 255)
189 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:200:72: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
198 | switch format {
199 | case .rgb(let prefix):
200 | return prefix.rawValue + String(format: "%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:200:82: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
198 | switch format {
199 | case .rgb(let prefix):
200 | return prefix.rawValue + String(format: "%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:200:92: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
198 | switch format {
199 | case .rgb(let prefix):
200 | return prefix.rawValue + String(format: "%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:76: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:86: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:96: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:106: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:29: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:41: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:53: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:65: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
[52/55] Compiling SmartCodable SmartCompactDictionary.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartAny/SmartAnyImpl.swift:172:26: error: cannot find 'kCFBooleanTrue' in scope
170 | */
171 |
172 | if value === kCFBooleanTrue as NSNumber || value === kCFBooleanFalse as NSNumber {
| `- error: cannot find 'kCFBooleanTrue' in scope
173 | if let bool = value as? Bool {
174 | try container.encode(bool)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartAny/SmartAnyImpl.swift:172:66: error: cannot find 'kCFBooleanFalse' in scope
170 | */
171 |
172 | if value === kCFBooleanTrue as NSNumber || value === kCFBooleanFalse as NSNumber {
| `- error: cannot find 'kCFBooleanFalse' in scope
173 | if let bool = value as? Bool {
174 | try container.encode(bool)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartAny/SmartAnyImpl.swift:180:43: warning: cast from 'NSNumber' to unrelated type 'CGFloat' always fails
178 | } else if let float = value as? Float {
179 | try container.encode(float)
180 | } else if let cgfloat = value as? CGFloat {
| `- warning: cast from 'NSNumber' to unrelated type 'CGFloat' always fails
181 | try container.encode(cgfloat)
182 | } else if let int = value as? Int {
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:37:31: error: cannot find type 'ColorObject' in scope
35 |
36 | public var wrappedValue: ColorObject?
37 | public init(wrappedValue: ColorObject?) {
| `- error: cannot find type 'ColorObject' in scope
38 | self.wrappedValue = wrappedValue
39 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:55:31: error: cannot find type 'ColorObject' in scope
53 | var encodeHexFormat: HexFormat?
54 |
55 | public init(wrappedValue: ColorObject?, encodeHexFormat: HexFormat? = nil) {
| `- error: cannot find type 'ColorObject' in scope
56 | self.wrappedValue = wrappedValue
57 | self.encodeHexFormat = encodeHexFormat
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:36:30: error: cannot find type 'ColorObject' in scope
34 | public struct SmartHexColor: PropertyWrapperable {
35 |
36 | public var wrappedValue: ColorObject?
| `- error: cannot find type 'ColorObject' in scope
37 | public init(wrappedValue: ColorObject?) {
38 | self.wrappedValue = wrappedValue
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:34:15: error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
32 |
33 | @propertyWrapper
34 | public struct SmartHexColor: PropertyWrapperable {
| |- error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
| `- note: add stubs for conformance
35 |
36 | public var wrappedValue: ColorObject?
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:18:20: note: protocol requires nested type 'WrappedValue'
16 | */
17 | public protocol PropertyWrapperable {
18 | associatedtype WrappedValue
| `- note: protocol requires nested type 'WrappedValue'
19 |
20 | var wrappedValue: WrappedValue { get }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:125:86: error: cannot find type 'ColorObject' in scope
123 | extension SmartHexColor {
124 |
125 | public static func toColor(from hex: String, format: SmartHexColor.HexFormat) -> ColorObject? {
| `- error: cannot find type 'ColorObject' in scope
126 | // 1. 移除前缀
127 | let hexString = normalizedHexString(from: hex, prefix: format.prefix)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:184:41: error: cannot find type 'ColorObject' in scope
182 |
183 |
184 | static func toHexString(from color: ColorObject, format: SmartHexColor.HexFormat) -> String? {
| `- error: cannot find type 'ColorObject' in scope
185 | guard let components = color.rgbaComponents else { return nil }
186 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:313:11: error: cannot find type 'ColorObject' in scope
311 |
312 |
313 | extension ColorObject {
| `- error: cannot find type 'ColorObject' in scope
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
315 | #if os(macOS)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:42:34: error: cannot find type 'ColorObject' in scope
40 |
41 | public static func createInstance(with value: Any) -> SmartHexColor? {
42 | if let value = value as? ColorObject {
| `- error: cannot find type 'ColorObject' in scope
43 | return SmartHexColor(wrappedValue: value)
44 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:43:33: error: incorrect argument label in call (have 'wrappedValue:', expected 'from:')
41 | public static func createInstance(with value: Any) -> SmartHexColor? {
42 | if let value = value as? ColorObject {
43 | return SmartHexColor(wrappedValue: value)
| `- error: incorrect argument label in call (have 'wrappedValue:', expected 'from:')
44 | }
45 | return nil
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:133:70: error: cannot find type 'CGFloat' in scope
131 |
132 | // 3. 按格式解析颜色分量
133 | func component(_ value: UInt64, shift: Int, mask: UInt64) -> CGFloat {
| `- error: cannot find type 'CGFloat' in scope
134 | return CGFloat((value >> shift) & mask) / 255
135 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:137:25: error: cannot find type 'CGFloat' in scope
135 | }
136 |
137 | let r, g, b, a: CGFloat
| `- error: cannot find type 'CGFloat' in scope
138 |
139 | switch format {
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:141:17: error: cannot find 'CGFloat' in scope
139 | switch format {
140 | case .rgb:
141 | r = CGFloat((hexValue >> 8) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
142 | g = CGFloat((hexValue >> 4) & 0xF) / 15
143 | b = CGFloat(hexValue & 0xF) / 15
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:142:17: error: cannot find 'CGFloat' in scope
140 | case .rgb:
141 | r = CGFloat((hexValue >> 8) & 0xF) / 15
142 | g = CGFloat((hexValue >> 4) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
143 | b = CGFloat(hexValue & 0xF) / 15
144 | a = 1.0
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:143:17: error: cannot find 'CGFloat' in scope
141 | r = CGFloat((hexValue >> 8) & 0xF) / 15
142 | g = CGFloat((hexValue >> 4) & 0xF) / 15
143 | b = CGFloat(hexValue & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
144 | a = 1.0
145 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:147:17: error: cannot find 'CGFloat' in scope
145 |
146 | case .rgba:
147 | r = CGFloat((hexValue >> 12) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:148:17: error: cannot find 'CGFloat' in scope
146 | case .rgba:
147 | r = CGFloat((hexValue >> 12) & 0xF) / 15
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
150 | a = CGFloat(hexValue & 0xF) / 15
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:149:17: error: cannot find 'CGFloat' in scope
147 | r = CGFloat((hexValue >> 12) & 0xF) / 15
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
150 | a = CGFloat(hexValue & 0xF) / 15
151 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:150:17: error: cannot find 'CGFloat' in scope
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
150 | a = CGFloat(hexValue & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
151 |
152 | case .rrggbb:
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:187:34: error: cannot find type 'CGFloat' in scope
185 | guard let components = color.rgbaComponents else { return nil }
186 |
187 | func clamped255(_ value: CGFloat) -> Int {
| `- error: cannot find type 'CGFloat' in scope
188 | return min(max(Int(value * 255), 0), 255)
189 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:200:72: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
198 | switch format {
199 | case .rgb(let prefix):
200 | return prefix.rawValue + String(format: "%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:200:82: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
198 | switch format {
199 | case .rgb(let prefix):
200 | return prefix.rawValue + String(format: "%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:200:92: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
198 | switch format {
199 | case .rgb(let prefix):
200 | return prefix.rawValue + String(format: "%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:76: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:86: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:96: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:106: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:29: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:41: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:53: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:65: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
[53/55] Compiling SmartCodable SmartDate.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartAny/SmartAnyImpl.swift:172:26: error: cannot find 'kCFBooleanTrue' in scope
170 | */
171 |
172 | if value === kCFBooleanTrue as NSNumber || value === kCFBooleanFalse as NSNumber {
| `- error: cannot find 'kCFBooleanTrue' in scope
173 | if let bool = value as? Bool {
174 | try container.encode(bool)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartAny/SmartAnyImpl.swift:172:66: error: cannot find 'kCFBooleanFalse' in scope
170 | */
171 |
172 | if value === kCFBooleanTrue as NSNumber || value === kCFBooleanFalse as NSNumber {
| `- error: cannot find 'kCFBooleanFalse' in scope
173 | if let bool = value as? Bool {
174 | try container.encode(bool)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartAny/SmartAnyImpl.swift:180:43: warning: cast from 'NSNumber' to unrelated type 'CGFloat' always fails
178 | } else if let float = value as? Float {
179 | try container.encode(float)
180 | } else if let cgfloat = value as? CGFloat {
| `- warning: cast from 'NSNumber' to unrelated type 'CGFloat' always fails
181 | try container.encode(cgfloat)
182 | } else if let int = value as? Int {
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:37:31: error: cannot find type 'ColorObject' in scope
35 |
36 | public var wrappedValue: ColorObject?
37 | public init(wrappedValue: ColorObject?) {
| `- error: cannot find type 'ColorObject' in scope
38 | self.wrappedValue = wrappedValue
39 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:55:31: error: cannot find type 'ColorObject' in scope
53 | var encodeHexFormat: HexFormat?
54 |
55 | public init(wrappedValue: ColorObject?, encodeHexFormat: HexFormat? = nil) {
| `- error: cannot find type 'ColorObject' in scope
56 | self.wrappedValue = wrappedValue
57 | self.encodeHexFormat = encodeHexFormat
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:36:30: error: cannot find type 'ColorObject' in scope
34 | public struct SmartHexColor: PropertyWrapperable {
35 |
36 | public var wrappedValue: ColorObject?
| `- error: cannot find type 'ColorObject' in scope
37 | public init(wrappedValue: ColorObject?) {
38 | self.wrappedValue = wrappedValue
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:34:15: error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
32 |
33 | @propertyWrapper
34 | public struct SmartHexColor: PropertyWrapperable {
| |- error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
| `- note: add stubs for conformance
35 |
36 | public var wrappedValue: ColorObject?
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:18:20: note: protocol requires nested type 'WrappedValue'
16 | */
17 | public protocol PropertyWrapperable {
18 | associatedtype WrappedValue
| `- note: protocol requires nested type 'WrappedValue'
19 |
20 | var wrappedValue: WrappedValue { get }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:125:86: error: cannot find type 'ColorObject' in scope
123 | extension SmartHexColor {
124 |
125 | public static func toColor(from hex: String, format: SmartHexColor.HexFormat) -> ColorObject? {
| `- error: cannot find type 'ColorObject' in scope
126 | // 1. 移除前缀
127 | let hexString = normalizedHexString(from: hex, prefix: format.prefix)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:184:41: error: cannot find type 'ColorObject' in scope
182 |
183 |
184 | static func toHexString(from color: ColorObject, format: SmartHexColor.HexFormat) -> String? {
| `- error: cannot find type 'ColorObject' in scope
185 | guard let components = color.rgbaComponents else { return nil }
186 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:313:11: error: cannot find type 'ColorObject' in scope
311 |
312 |
313 | extension ColorObject {
| `- error: cannot find type 'ColorObject' in scope
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
315 | #if os(macOS)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:42:34: error: cannot find type 'ColorObject' in scope
40 |
41 | public static func createInstance(with value: Any) -> SmartHexColor? {
42 | if let value = value as? ColorObject {
| `- error: cannot find type 'ColorObject' in scope
43 | return SmartHexColor(wrappedValue: value)
44 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:43:33: error: incorrect argument label in call (have 'wrappedValue:', expected 'from:')
41 | public static func createInstance(with value: Any) -> SmartHexColor? {
42 | if let value = value as? ColorObject {
43 | return SmartHexColor(wrappedValue: value)
| `- error: incorrect argument label in call (have 'wrappedValue:', expected 'from:')
44 | }
45 | return nil
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:133:70: error: cannot find type 'CGFloat' in scope
131 |
132 | // 3. 按格式解析颜色分量
133 | func component(_ value: UInt64, shift: Int, mask: UInt64) -> CGFloat {
| `- error: cannot find type 'CGFloat' in scope
134 | return CGFloat((value >> shift) & mask) / 255
135 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:137:25: error: cannot find type 'CGFloat' in scope
135 | }
136 |
137 | let r, g, b, a: CGFloat
| `- error: cannot find type 'CGFloat' in scope
138 |
139 | switch format {
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:141:17: error: cannot find 'CGFloat' in scope
139 | switch format {
140 | case .rgb:
141 | r = CGFloat((hexValue >> 8) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
142 | g = CGFloat((hexValue >> 4) & 0xF) / 15
143 | b = CGFloat(hexValue & 0xF) / 15
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:142:17: error: cannot find 'CGFloat' in scope
140 | case .rgb:
141 | r = CGFloat((hexValue >> 8) & 0xF) / 15
142 | g = CGFloat((hexValue >> 4) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
143 | b = CGFloat(hexValue & 0xF) / 15
144 | a = 1.0
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:143:17: error: cannot find 'CGFloat' in scope
141 | r = CGFloat((hexValue >> 8) & 0xF) / 15
142 | g = CGFloat((hexValue >> 4) & 0xF) / 15
143 | b = CGFloat(hexValue & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
144 | a = 1.0
145 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:147:17: error: cannot find 'CGFloat' in scope
145 |
146 | case .rgba:
147 | r = CGFloat((hexValue >> 12) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:148:17: error: cannot find 'CGFloat' in scope
146 | case .rgba:
147 | r = CGFloat((hexValue >> 12) & 0xF) / 15
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
150 | a = CGFloat(hexValue & 0xF) / 15
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:149:17: error: cannot find 'CGFloat' in scope
147 | r = CGFloat((hexValue >> 12) & 0xF) / 15
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
150 | a = CGFloat(hexValue & 0xF) / 15
151 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:150:17: error: cannot find 'CGFloat' in scope
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
150 | a = CGFloat(hexValue & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
151 |
152 | case .rrggbb:
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:187:34: error: cannot find type 'CGFloat' in scope
185 | guard let components = color.rgbaComponents else { return nil }
186 |
187 | func clamped255(_ value: CGFloat) -> Int {
| `- error: cannot find type 'CGFloat' in scope
188 | return min(max(Int(value * 255), 0), 255)
189 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:200:72: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
198 | switch format {
199 | case .rgb(let prefix):
200 | return prefix.rawValue + String(format: "%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:200:82: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
198 | switch format {
199 | case .rgb(let prefix):
200 | return prefix.rawValue + String(format: "%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:200:92: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
198 | switch format {
199 | case .rgb(let prefix):
200 | return prefix.rawValue + String(format: "%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:76: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:86: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:96: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:106: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:29: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:41: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:53: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:65: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
[54/55] Compiling SmartCodable SmartFlat.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartAny/SmartAnyImpl.swift:172:26: error: cannot find 'kCFBooleanTrue' in scope
170 | */
171 |
172 | if value === kCFBooleanTrue as NSNumber || value === kCFBooleanFalse as NSNumber {
| `- error: cannot find 'kCFBooleanTrue' in scope
173 | if let bool = value as? Bool {
174 | try container.encode(bool)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartAny/SmartAnyImpl.swift:172:66: error: cannot find 'kCFBooleanFalse' in scope
170 | */
171 |
172 | if value === kCFBooleanTrue as NSNumber || value === kCFBooleanFalse as NSNumber {
| `- error: cannot find 'kCFBooleanFalse' in scope
173 | if let bool = value as? Bool {
174 | try container.encode(bool)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartAny/SmartAnyImpl.swift:180:43: warning: cast from 'NSNumber' to unrelated type 'CGFloat' always fails
178 | } else if let float = value as? Float {
179 | try container.encode(float)
180 | } else if let cgfloat = value as? CGFloat {
| `- warning: cast from 'NSNumber' to unrelated type 'CGFloat' always fails
181 | try container.encode(cgfloat)
182 | } else if let int = value as? Int {
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:37:31: error: cannot find type 'ColorObject' in scope
35 |
36 | public var wrappedValue: ColorObject?
37 | public init(wrappedValue: ColorObject?) {
| `- error: cannot find type 'ColorObject' in scope
38 | self.wrappedValue = wrappedValue
39 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:55:31: error: cannot find type 'ColorObject' in scope
53 | var encodeHexFormat: HexFormat?
54 |
55 | public init(wrappedValue: ColorObject?, encodeHexFormat: HexFormat? = nil) {
| `- error: cannot find type 'ColorObject' in scope
56 | self.wrappedValue = wrappedValue
57 | self.encodeHexFormat = encodeHexFormat
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:36:30: error: cannot find type 'ColorObject' in scope
34 | public struct SmartHexColor: PropertyWrapperable {
35 |
36 | public var wrappedValue: ColorObject?
| `- error: cannot find type 'ColorObject' in scope
37 | public init(wrappedValue: ColorObject?) {
38 | self.wrappedValue = wrappedValue
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:34:15: error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
32 |
33 | @propertyWrapper
34 | public struct SmartHexColor: PropertyWrapperable {
| |- error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
| `- note: add stubs for conformance
35 |
36 | public var wrappedValue: ColorObject?
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:18:20: note: protocol requires nested type 'WrappedValue'
16 | */
17 | public protocol PropertyWrapperable {
18 | associatedtype WrappedValue
| `- note: protocol requires nested type 'WrappedValue'
19 |
20 | var wrappedValue: WrappedValue { get }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:125:86: error: cannot find type 'ColorObject' in scope
123 | extension SmartHexColor {
124 |
125 | public static func toColor(from hex: String, format: SmartHexColor.HexFormat) -> ColorObject? {
| `- error: cannot find type 'ColorObject' in scope
126 | // 1. 移除前缀
127 | let hexString = normalizedHexString(from: hex, prefix: format.prefix)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:184:41: error: cannot find type 'ColorObject' in scope
182 |
183 |
184 | static func toHexString(from color: ColorObject, format: SmartHexColor.HexFormat) -> String? {
| `- error: cannot find type 'ColorObject' in scope
185 | guard let components = color.rgbaComponents else { return nil }
186 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:313:11: error: cannot find type 'ColorObject' in scope
311 |
312 |
313 | extension ColorObject {
| `- error: cannot find type 'ColorObject' in scope
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
315 | #if os(macOS)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:42:34: error: cannot find type 'ColorObject' in scope
40 |
41 | public static func createInstance(with value: Any) -> SmartHexColor? {
42 | if let value = value as? ColorObject {
| `- error: cannot find type 'ColorObject' in scope
43 | return SmartHexColor(wrappedValue: value)
44 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:43:33: error: incorrect argument label in call (have 'wrappedValue:', expected 'from:')
41 | public static func createInstance(with value: Any) -> SmartHexColor? {
42 | if let value = value as? ColorObject {
43 | return SmartHexColor(wrappedValue: value)
| `- error: incorrect argument label in call (have 'wrappedValue:', expected 'from:')
44 | }
45 | return nil
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:133:70: error: cannot find type 'CGFloat' in scope
131 |
132 | // 3. 按格式解析颜色分量
133 | func component(_ value: UInt64, shift: Int, mask: UInt64) -> CGFloat {
| `- error: cannot find type 'CGFloat' in scope
134 | return CGFloat((value >> shift) & mask) / 255
135 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:137:25: error: cannot find type 'CGFloat' in scope
135 | }
136 |
137 | let r, g, b, a: CGFloat
| `- error: cannot find type 'CGFloat' in scope
138 |
139 | switch format {
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:141:17: error: cannot find 'CGFloat' in scope
139 | switch format {
140 | case .rgb:
141 | r = CGFloat((hexValue >> 8) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
142 | g = CGFloat((hexValue >> 4) & 0xF) / 15
143 | b = CGFloat(hexValue & 0xF) / 15
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:142:17: error: cannot find 'CGFloat' in scope
140 | case .rgb:
141 | r = CGFloat((hexValue >> 8) & 0xF) / 15
142 | g = CGFloat((hexValue >> 4) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
143 | b = CGFloat(hexValue & 0xF) / 15
144 | a = 1.0
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:143:17: error: cannot find 'CGFloat' in scope
141 | r = CGFloat((hexValue >> 8) & 0xF) / 15
142 | g = CGFloat((hexValue >> 4) & 0xF) / 15
143 | b = CGFloat(hexValue & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
144 | a = 1.0
145 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:147:17: error: cannot find 'CGFloat' in scope
145 |
146 | case .rgba:
147 | r = CGFloat((hexValue >> 12) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:148:17: error: cannot find 'CGFloat' in scope
146 | case .rgba:
147 | r = CGFloat((hexValue >> 12) & 0xF) / 15
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
150 | a = CGFloat(hexValue & 0xF) / 15
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:149:17: error: cannot find 'CGFloat' in scope
147 | r = CGFloat((hexValue >> 12) & 0xF) / 15
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
150 | a = CGFloat(hexValue & 0xF) / 15
151 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:150:17: error: cannot find 'CGFloat' in scope
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
150 | a = CGFloat(hexValue & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
151 |
152 | case .rrggbb:
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:187:34: error: cannot find type 'CGFloat' in scope
185 | guard let components = color.rgbaComponents else { return nil }
186 |
187 | func clamped255(_ value: CGFloat) -> Int {
| `- error: cannot find type 'CGFloat' in scope
188 | return min(max(Int(value * 255), 0), 255)
189 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:200:72: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
198 | switch format {
199 | case .rgb(let prefix):
200 | return prefix.rawValue + String(format: "%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:200:82: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
198 | switch format {
199 | case .rgb(let prefix):
200 | return prefix.rawValue + String(format: "%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:200:92: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
198 | switch format {
199 | case .rgb(let prefix):
200 | return prefix.rawValue + String(format: "%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:76: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:86: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:96: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:106: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:29: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:41: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:53: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:65: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
[55/55] Compiling SmartCodable SmartHexColor.swift
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartAny/SmartAnyImpl.swift:172:26: error: cannot find 'kCFBooleanTrue' in scope
170 | */
171 |
172 | if value === kCFBooleanTrue as NSNumber || value === kCFBooleanFalse as NSNumber {
| `- error: cannot find 'kCFBooleanTrue' in scope
173 | if let bool = value as? Bool {
174 | try container.encode(bool)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartAny/SmartAnyImpl.swift:172:66: error: cannot find 'kCFBooleanFalse' in scope
170 | */
171 |
172 | if value === kCFBooleanTrue as NSNumber || value === kCFBooleanFalse as NSNumber {
| `- error: cannot find 'kCFBooleanFalse' in scope
173 | if let bool = value as? Bool {
174 | try container.encode(bool)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartAny/SmartAnyImpl.swift:180:43: warning: cast from 'NSNumber' to unrelated type 'CGFloat' always fails
178 | } else if let float = value as? Float {
179 | try container.encode(float)
180 | } else if let cgfloat = value as? CGFloat {
| `- warning: cast from 'NSNumber' to unrelated type 'CGFloat' always fails
181 | try container.encode(cgfloat)
182 | } else if let int = value as? Int {
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:37:31: error: cannot find type 'ColorObject' in scope
35 |
36 | public var wrappedValue: ColorObject?
37 | public init(wrappedValue: ColorObject?) {
| `- error: cannot find type 'ColorObject' in scope
38 | self.wrappedValue = wrappedValue
39 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:55:31: error: cannot find type 'ColorObject' in scope
53 | var encodeHexFormat: HexFormat?
54 |
55 | public init(wrappedValue: ColorObject?, encodeHexFormat: HexFormat? = nil) {
| `- error: cannot find type 'ColorObject' in scope
56 | self.wrappedValue = wrappedValue
57 | self.encodeHexFormat = encodeHexFormat
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:36:30: error: cannot find type 'ColorObject' in scope
34 | public struct SmartHexColor: PropertyWrapperable {
35 |
36 | public var wrappedValue: ColorObject?
| `- error: cannot find type 'ColorObject' in scope
37 | public init(wrappedValue: ColorObject?) {
38 | self.wrappedValue = wrappedValue
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:34:15: error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
32 |
33 | @propertyWrapper
34 | public struct SmartHexColor: PropertyWrapperable {
| |- error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
| `- note: add stubs for conformance
35 |
36 | public var wrappedValue: ColorObject?
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:18:20: note: protocol requires nested type 'WrappedValue'
16 | */
17 | public protocol PropertyWrapperable {
18 | associatedtype WrappedValue
| `- note: protocol requires nested type 'WrappedValue'
19 |
20 | var wrappedValue: WrappedValue { get }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:125:86: error: cannot find type 'ColorObject' in scope
123 | extension SmartHexColor {
124 |
125 | public static func toColor(from hex: String, format: SmartHexColor.HexFormat) -> ColorObject? {
| `- error: cannot find type 'ColorObject' in scope
126 | // 1. 移除前缀
127 | let hexString = normalizedHexString(from: hex, prefix: format.prefix)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:184:41: error: cannot find type 'ColorObject' in scope
182 |
183 |
184 | static func toHexString(from color: ColorObject, format: SmartHexColor.HexFormat) -> String? {
| `- error: cannot find type 'ColorObject' in scope
185 | guard let components = color.rgbaComponents else { return nil }
186 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:313:11: error: cannot find type 'ColorObject' in scope
311 |
312 |
313 | extension ColorObject {
| `- error: cannot find type 'ColorObject' in scope
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
315 | #if os(macOS)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:42:34: error: cannot find type 'ColorObject' in scope
40 |
41 | public static func createInstance(with value: Any) -> SmartHexColor? {
42 | if let value = value as? ColorObject {
| `- error: cannot find type 'ColorObject' in scope
43 | return SmartHexColor(wrappedValue: value)
44 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:43:33: error: incorrect argument label in call (have 'wrappedValue:', expected 'from:')
41 | public static func createInstance(with value: Any) -> SmartHexColor? {
42 | if let value = value as? ColorObject {
43 | return SmartHexColor(wrappedValue: value)
| `- error: incorrect argument label in call (have 'wrappedValue:', expected 'from:')
44 | }
45 | return nil
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:133:70: error: cannot find type 'CGFloat' in scope
131 |
132 | // 3. 按格式解析颜色分量
133 | func component(_ value: UInt64, shift: Int, mask: UInt64) -> CGFloat {
| `- error: cannot find type 'CGFloat' in scope
134 | return CGFloat((value >> shift) & mask) / 255
135 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:137:25: error: cannot find type 'CGFloat' in scope
135 | }
136 |
137 | let r, g, b, a: CGFloat
| `- error: cannot find type 'CGFloat' in scope
138 |
139 | switch format {
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:141:17: error: cannot find 'CGFloat' in scope
139 | switch format {
140 | case .rgb:
141 | r = CGFloat((hexValue >> 8) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
142 | g = CGFloat((hexValue >> 4) & 0xF) / 15
143 | b = CGFloat(hexValue & 0xF) / 15
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:142:17: error: cannot find 'CGFloat' in scope
140 | case .rgb:
141 | r = CGFloat((hexValue >> 8) & 0xF) / 15
142 | g = CGFloat((hexValue >> 4) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
143 | b = CGFloat(hexValue & 0xF) / 15
144 | a = 1.0
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:143:17: error: cannot find 'CGFloat' in scope
141 | r = CGFloat((hexValue >> 8) & 0xF) / 15
142 | g = CGFloat((hexValue >> 4) & 0xF) / 15
143 | b = CGFloat(hexValue & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
144 | a = 1.0
145 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:147:17: error: cannot find 'CGFloat' in scope
145 |
146 | case .rgba:
147 | r = CGFloat((hexValue >> 12) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:148:17: error: cannot find 'CGFloat' in scope
146 | case .rgba:
147 | r = CGFloat((hexValue >> 12) & 0xF) / 15
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
150 | a = CGFloat(hexValue & 0xF) / 15
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:149:17: error: cannot find 'CGFloat' in scope
147 | r = CGFloat((hexValue >> 12) & 0xF) / 15
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
150 | a = CGFloat(hexValue & 0xF) / 15
151 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:150:17: error: cannot find 'CGFloat' in scope
148 | g = CGFloat((hexValue >> 8) & 0xF) / 15
149 | b = CGFloat((hexValue >> 4) & 0xF) / 15
150 | a = CGFloat(hexValue & 0xF) / 15
| `- error: cannot find 'CGFloat' in scope
151 |
152 | case .rrggbb:
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:187:34: error: cannot find type 'CGFloat' in scope
185 | guard let components = color.rgbaComponents else { return nil }
186 |
187 | func clamped255(_ value: CGFloat) -> Int {
| `- error: cannot find type 'CGFloat' in scope
188 | return min(max(Int(value * 255), 0), 255)
189 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:200:72: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
198 | switch format {
199 | case .rgb(let prefix):
200 | return prefix.rawValue + String(format: "%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:200:82: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
198 | switch format {
199 | case .rgb(let prefix):
200 | return prefix.rawValue + String(format: "%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:200:92: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
198 | switch format {
199 | case .rgb(let prefix):
200 | return prefix.rawValue + String(format: "%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:76: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:86: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:96: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:203:106: error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
201 |
202 | case .rgba(let prefix):
203 | return prefix.rawValue + String(format: "%01X%01X%01X%01X", (r >> 4), (g >> 4), (b >> 4), (a >> 4))
| `- error: binary operator '>>' cannot be applied to operands of type 'any CVarArg' and 'Int'
204 |
205 | case .rrggbb(let prefix):
Swift.BinaryInteger:1:17: note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
| `- note: candidate requires that 'any CVarArg' conform to 'BinaryInteger' (requirement specified as 'Self' : 'BinaryInteger')
2 | static var isSigned: Bool { get }
3 | init?<T>(exactly source: T) where T : BinaryFloatingPoint
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:29: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:41: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:53: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:314:65: error: cannot find type 'CGFloat' in scope
312 |
313 | extension ColorObject {
314 | var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
| `- error: cannot find type 'CGFloat' in scope
315 | #if os(macOS)
316 | guard let converted = usingColorSpace(.deviceRGB) else { return nil }
BUILD FAILURE 6.1 wasm