Build Information
Failed to build SmartCodable, reference 7.0.1 (bc1522), with Swift 6.2 for Android on 29 Sep 2026 11:17:48 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-1":/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:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/iAmMccc/SmartCodable.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-1":/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:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:f47b2a33897778fb58ca39c1139e193fa7f391fa362fe0d23c00db9747030994
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--11D90AFD9DD3AB2.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/50] 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/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 |
[4/56] Compiling SmartCodable SmartIgnored.swift
[5/56] Compiling SmartCodable SmartPublished.swift
[6/56] Compiling SmartCodable LogCache.swift
[7/56] Compiling SmartCodable LogContainer.swift
[8/56] Compiling SmartCodable LogItem.swift
[9/56] Compiling SmartCodable SafeDictionary.swift
[10/56] 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 |
[11/56] 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 |
[12/56] 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 |
[13/56] 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 |
[14/56] 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 |
[15/56] 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 |
[16/56] 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 {
[17/56] 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 {
[18/56] 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 {
[19/56] 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 {
[20/56] 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 {
[21/56] 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 {
[22/56] 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 {
[23/56] 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 |
[24/56] 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 |
[25/56] 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 |
[26/56] 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 |
[27/56] 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 |
[28/56] 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 |
[29/56] 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 |
[30/56] Compiling SmartCodable JSONDecoderImpl.swift
[31/56] Compiling SmartCodable KeysMapper.swift
[32/56] Compiling SmartCodable SmartJSONDecoder.swift
[33/56] Compiling SmartCodable SmartKeyDecodingStrategy.swift
[34/56] Compiling SmartCodable Patcher+Provider.swift
[35/56] Compiling SmartCodable Patcher+Transformer.swift
[36/56] Compiling SmartCodable Patcher.swift
[37/56] Compiling SmartCodable SmartSentinel.swift
[38/56] Compiling SmartCodable SmartCodable.swift
[39/56] Compiling SmartCodable SmartCodableOptions.swift
[40/56] Compiling SmartCodable SmartDecodable.swift
[41/56] Compiling SmartCodable SmartEncodable.swift
[42/56] Compiling SmartCodable SmartUpdater.swift
[43/56] 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 }
[44/56] 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 }
[45/56] 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 }
[46/56] 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 }
[47/56] 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 }
[48/56] 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 }
[49/56] 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 }
[50/56] 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
[51/56] 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
[52/56] 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
[53/56] 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
[54/56] 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
[55/56] 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
[56/56] 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
BUILD FAILURE 6.2 android