Build Information
Failed to build ValueTransformerKit, reference 1.2.4 (8f40b1
), with Swift 6.0 for Linux on 29 Nov 2024 07:08:03 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
Build Log
47 | static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName
| `- error: cannot find type 'NSValueTransformerName' in scope
48 |
49 | }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:10:20: error: cannot find type 'NSValueTransformerName' in scope
8 | open class Base64EncodeDataToStringTransformer: ValueTransformer, ValueTransformerRegisterable {
9 |
10 | open var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64EncodeDataToString") }
| `- error: cannot find type 'NSValueTransformerName' in scope
11 |
12 | let encodingOptions: Data.Base64EncodingOptions
/host/spi-builder-workspace/Sources/Base64Transformer.swift:20:30: error: method does not override any method from its superclass
18 | }
19 |
20 | open override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
21 | return true
22 | }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:24:30: error: method does not override any method from its superclass
22 | }
23 |
24 | open override class func transformedValueClass() -> AnyClass {
| `- error: method does not override any method from its superclass
25 | return NSData.self
26 | }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:28:24: error: method does not override any method from its superclass
26 | }
27 |
28 | open override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
29 | if let data = value as? Data {
30 | return data.base64EncodedString(options: encodingOptions)
/host/spi-builder-workspace/Sources/Base64Transformer.swift:36:24: error: method does not override any method from its superclass
34 | }
35 |
36 | open override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
37 | if let string = value as? String {
38 | return Data(base64Encoded: string, options: decodingOptions)
/host/spi-builder-workspace/Sources/Base64Transformer.swift:8:49: error: cannot find type 'ValueTransformer' in scope
6 | import Foundation
7 |
8 | open class Base64EncodeDataToStringTransformer: ValueTransformer, ValueTransformerRegisterable {
| `- error: cannot find type 'ValueTransformer' in scope
9 |
10 | open var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64EncodeDataToString") }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:48:29: error: cannot find type 'NSValueTransformerName' in scope
46 | open class Base64DecodeDataFromStringTransformer: Base64EncodeDataToStringTransformer {
47 |
48 | open override var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64DecodeDataFromString") }
| `- error: cannot find type 'NSValueTransformerName' in scope
49 |
50 | open override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/Base64Transformer.swift:48:23: error: property does not override any property from its superclass
46 | open class Base64DecodeDataFromStringTransformer: Base64EncodeDataToStringTransformer {
47 |
48 | open override var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64DecodeDataFromString") }
| `- error: property does not override any property from its superclass
49 |
50 | open override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/Base64Transformer.swift:66:20: error: cannot find type 'NSValueTransformerName' in scope
64 | open class Base64EncodeTransformer: ValueTransformer, ValueTransformerRegisterable {
65 |
66 | open var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64Encode") }
| `- error: cannot find type 'NSValueTransformerName' in scope
67 |
68 | let encodingOptions: Data.Base64EncodingOptions
/host/spi-builder-workspace/Sources/Base64Transformer.swift:76:30: error: method does not override any method from its superclass
74 | }
75 |
76 | open override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
77 | return true
78 | }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:80:30: error: method does not override any method from its superclass
78 | }
79 |
80 | open override class func transformedValueClass() -> AnyClass {
| `- error: method does not override any method from its superclass
81 | return NSData.self
82 | }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:84:24: error: method does not override any method from its superclass
82 | }
83 |
84 | open override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
85 | if let data = value as? Data {
86 | return data.base64EncodedData(options: encodingOptions)
/host/spi-builder-workspace/Sources/Base64Transformer.swift:92:24: error: method does not override any method from its superclass
90 | }
91 |
92 | open override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
93 | if let data = value as? Data {
94 | return Data(base64Encoded: data, options: decodingOptions)
/host/spi-builder-workspace/Sources/Base64Transformer.swift:64:37: error: cannot find type 'ValueTransformer' in scope
62 | }
63 |
64 | open class Base64EncodeTransformer: ValueTransformer, ValueTransformerRegisterable {
| `- error: cannot find type 'ValueTransformer' in scope
65 |
66 | open var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64Encode") }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:104:29: error: cannot find type 'NSValueTransformerName' in scope
102 | open class Base64DecodeTransformer: Base64EncodeTransformer {
103 |
104 | open override var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64Decode") }
| `- error: cannot find type 'NSValueTransformerName' in scope
105 |
106 | open override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/Base64Transformer.swift:104:23: error: property does not override any property from its superclass
102 | open class Base64DecodeTransformer: Base64EncodeTransformer {
103 |
104 | open override var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64Decode") }
| `- error: property does not override any property from its superclass
105 |
106 | open override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/Base64Transformer.swift:122:20: error: cannot find type 'NSValueTransformerName' in scope
120 | open class Base64EncodeStringTransformer: ValueTransformer, ValueTransformerRegisterable {
121 |
122 | open var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64EncodeString") }
| `- error: cannot find type 'NSValueTransformerName' in scope
123 |
124 | let encodingOptions: Data.Base64EncodingOptions
/host/spi-builder-workspace/Sources/Base64Transformer.swift:134:30: error: method does not override any method from its superclass
132 | }
133 |
134 | open override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
135 | return true
136 | }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:138:30: error: method does not override any method from its superclass
136 | }
137 |
138 | open override class func transformedValueClass() -> AnyClass {
| `- error: method does not override any method from its superclass
139 | return NSString.self
140 | }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:142:24: error: method does not override any method from its superclass
140 | }
141 |
142 | open override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
143 | if let string = value as? String {
144 | return string.data(using: encoding)?.base64EncodedData(options: encodingOptions)
/host/spi-builder-workspace/Sources/Base64Transformer.swift:150:24: error: method does not override any method from its superclass
148 | }
149 |
150 | open override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
151 | if let string = value as? String {
152 | guard let data = Data(base64Encoded: string, options: decodingOptions) else {
/host/spi-builder-workspace/Sources/Base64Transformer.swift:120:43: error: cannot find type 'ValueTransformer' in scope
118 | }
119 |
120 | open class Base64EncodeStringTransformer: ValueTransformer, ValueTransformerRegisterable {
| `- error: cannot find type 'ValueTransformer' in scope
121 |
122 | open var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64EncodeString") }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:165:29: error: cannot find type 'NSValueTransformerName' in scope
163 | open class Base64DecodeStringTransformer: Base64EncodeStringTransformer {
164 |
165 | open override var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64DecodeString") }
| `- error: cannot find type 'NSValueTransformerName' in scope
166 |
167 | open override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/Base64Transformer.swift:165:23: error: property does not override any property from its superclass
163 | open class Base64DecodeStringTransformer: Base64EncodeStringTransformer {
164 |
165 | open override var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64DecodeString") }
| `- error: property does not override any property from its superclass
166 |
167 | open override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/ClosureValueTransformer.swift:8:11: error: cannot find type 'ValueTransformer' in scope
6 | import Foundation
7 |
8 | extension ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
9 |
10 | public class func closure(forwardTransformer: @escaping ClosureValueTransformer.ForwardTransformer) -> ClosureValueTransformer {
/host/spi-builder-workspace/Sources/ClosureValueTransformer.swift:40:32: error: method does not override any method from its superclass
38 | // MARK: - ValueTransformer
39 |
40 | public override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
41 | return false
42 | }
/host/spi-builder-workspace/Sources/ClosureValueTransformer.swift:44:26: error: method does not override any method from its superclass
42 | }
43 |
44 | public override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
45 | return self.forwardTransformer(value)
46 | }
/host/spi-builder-workspace/Sources/ClosureValueTransformer.swift:21:39: error: cannot find type 'ValueTransformer' in scope
19 |
20 | // MARK: - ClosureValueTransformer Class
21 | public class ClosureValueTransformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
22 |
23 | // MARK: - Closure alias
/host/spi-builder-workspace/Sources/ClosureValueTransformer.swift:63:26: error: method does not override any method from its superclass
61 | }
62 |
63 | public override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
64 | return self.reverseTransformer!(value)
65 | }
/host/spi-builder-workspace/Sources/ClosureValueTransformer.swift:35:9: error: 'super' members cannot be referenced in a root class
33 | self.forwardTransformer = forwardTransformer
34 | self.reverseTransformer = reverseTransformer
35 | super.init()
| `- error: 'super' members cannot be referenced in a root class
36 | }
37 |
[22/30] Compiling ValueTransformerKit Base64Transformer.swift
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:10:2: error: Objective-C interoperability is disabled
8 |
9 | import Foundation
10 | @objc(ArchiveValueTransformer)
| `- error: Objective-C interoperability is disabled
11 | public final class ArchiveValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
12 |
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:13:23: error: cannot find 'NSValueTransformerName' in scope
11 | public final class ArchiveValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
12 |
13 | public var name = NSValueTransformerName(rawValue: "Archive")
| `- error: cannot find 'NSValueTransformerName' in scope
14 | public static let instance = ArchiveValueTransformer()
15 |
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:14:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'ArchiveValueTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 | @objc(ArchiveValueTransformer)
11 | public final class ArchiveValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
| `- note: class 'ArchiveValueTransformer' does not conform to the 'Sendable' protocol
12 |
13 | public var name = NSValueTransformerName(rawValue: "Archive")
14 | public static let instance = ArchiveValueTransformer()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'ArchiveValueTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | public override class func allowsReverseTransformation() -> Bool {
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:16:32: error: method does not override any method from its superclass
14 | public static let instance = ArchiveValueTransformer()
15 |
16 | public override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
17 | return true
18 | }
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:20:26: error: method does not override any method from its superclass
18 | }
19 |
20 | public override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
21 | guard let value = value else {
22 | return nil
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:32:26: error: method does not override any method from its superclass
30 | }
31 |
32 | public override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
33 | guard let data = value as? Data else {
34 | return nil
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:11:45: error: cannot find type 'ValueTransformer' in scope
9 | import Foundation
10 | @objc(ArchiveValueTransformer)
11 | public final class ArchiveValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
| `- error: cannot find type 'ValueTransformer' in scope
12 |
13 | public var name = NSValueTransformerName(rawValue: "Archive")
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:15:22: error: cannot find type 'ValueTransformer' in scope
13 |
14 | /// The value transformer to register.
15 | var transformer: ValueTransformer {get}
| `- error: cannot find type 'ValueTransformer' in scope
16 | /// The identifier to register the value transformer.
17 | var name: NSValueTransformerName {get}
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:17:15: error: cannot find type 'NSValueTransformerName' in scope
15 | var transformer: ValueTransformer {get}
16 | /// The identifier to register the value transformer.
17 | var name: NSValueTransformerName {get}
| `- error: cannot find type 'NSValueTransformerName' in scope
18 | }
19 |
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:43:33: error: cannot find type 'ValueTransformer' in scope
41 | extension ArchiveValueTransformer: ValueTransformerReversable {
42 |
43 | public var reverseInstance: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
44 | return UnarchiveValueTransformer.instance
45 | }
/host/spi-builder-workspace/Sources/ReverseValueTransformer.swift:34:26: error: cannot find type 'ValueTransformer' in scope
32 |
33 | public protocol ValueTransformerReversable {
34 | var reverseInstance: ValueTransformer {get}
| `- error: cannot find type 'ValueTransformer' in scope
35 | }
36 |
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:49:2: error: Objective-C interoperability is disabled
47 | }
48 |
49 | @objc(UnarchiveValueTransformer)
| `- error: Objective-C interoperability is disabled
50 | public final class UnarchiveValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
51 |
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:52:23: error: cannot find 'NSValueTransformerName' in scope
50 | public final class UnarchiveValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
51 |
52 | public var name = NSValueTransformerName(rawValue: "Unarchive")
| `- error: cannot find 'NSValueTransformerName' in scope
53 | public static let instance = UnarchiveValueTransformer()
54 |
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:53:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'UnarchiveValueTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | @objc(UnarchiveValueTransformer)
50 | public final class UnarchiveValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
| `- note: class 'UnarchiveValueTransformer' does not conform to the 'Sendable' protocol
51 |
52 | public var name = NSValueTransformerName(rawValue: "Unarchive")
53 | public static let instance = UnarchiveValueTransformer()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'UnarchiveValueTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | public override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:55:32: error: method does not override any method from its superclass
53 | public static let instance = UnarchiveValueTransformer()
54 |
55 | public override class func transformedValueClass() -> AnyClass {
| `- error: method does not override any method from its superclass
56 | return NSData.self
57 | }
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:59:26: error: method does not override any method from its superclass
57 | }
58 |
59 | public override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
60 | guard let data = value as? Data else {
61 | return nil
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:66:26: error: method does not override any method from its superclass
64 | }
65 |
66 | public override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
67 | guard let value = value else {
68 | return nil
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:50:47: error: cannot find type 'ValueTransformer' in scope
48 |
49 | @objc(UnarchiveValueTransformer)
50 | public final class UnarchiveValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
| `- error: cannot find type 'ValueTransformer' in scope
51 |
52 | public var name = NSValueTransformerName(rawValue: "Unarchive")
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:81:33: error: cannot find type 'ValueTransformer' in scope
79 | extension UnarchiveValueTransformer: ValueTransformerReversable {
80 |
81 | public var reverseInstance: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
82 | return ArchiveValueTransformer.instance
83 | }
/host/spi-builder-workspace/Sources/ArrayToStringTransformer.swift:10:23: warning: static property 'namePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | final public class ArrayToStringTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton, ReversableValueTransformers {
9 |
10 | public static var namePrefix = "ArrayToString"
| |- warning: static property 'namePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'namePrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'namePrefix' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | public static var reversableNamePrefix = "StringToArray"
12 |
/host/spi-builder-workspace/Sources/ArrayToStringTransformer.swift:11:23: warning: static property 'reversableNamePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public static var namePrefix = "ArrayToString"
11 | public static var reversableNamePrefix = "StringToArray"
| |- warning: static property 'reversableNamePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'reversableNamePrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'reversableNamePrefix' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public var name = NSValueTransformerName(rawValue: ArrayToStringTransformer.namePrefix)
/host/spi-builder-workspace/Sources/ArrayToStringTransformer.swift:13:23: error: cannot find 'NSValueTransformerName' in scope
11 | public static var reversableNamePrefix = "StringToArray"
12 |
13 | public var name = NSValueTransformerName(rawValue: ArrayToStringTransformer.namePrefix)
| `- error: cannot find 'NSValueTransformerName' in scope
14 | public static let instance = ArrayToStringTransformer()
15 |
/host/spi-builder-workspace/Sources/ArrayToStringTransformer.swift:14:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'ArrayToStringTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | final public class ArrayToStringTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton, ReversableValueTransformers {
| `- note: class 'ArrayToStringTransformer' does not conform to the 'Sendable' protocol
9 |
10 | public static var namePrefix = "ArrayToString"
:
12 |
13 | public var name = NSValueTransformerName(rawValue: ArrayToStringTransformer.namePrefix)
14 | public static let instance = ArrayToStringTransformer()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'ArrayToStringTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | let separator: String
/host/spi-builder-workspace/Sources/ArrayToStringTransformer.swift:22:32: error: method does not override any method from its superclass
20 | }
21 |
22 | public override class func transformedValueClass() -> AnyClass {
| `- error: method does not override any method from its superclass
23 | return NSArray.self
24 | }
/host/spi-builder-workspace/Sources/ArrayToStringTransformer.swift:26:32: error: method does not override any method from its superclass
24 | }
25 |
26 | public override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
27 | return true
28 | }
/host/spi-builder-workspace/Sources/ArrayToStringTransformer.swift:30:26: error: method does not override any method from its superclass
28 | }
29 |
30 | public override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
31 | guard let randomArray = value as? [String] else {
32 | return nil
/host/spi-builder-workspace/Sources/ArrayToStringTransformer.swift:37:26: error: method does not override any method from its superclass
35 | }
36 |
37 | public override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
38 | guard let randomString = value as? String else {
39 | return nil
/host/spi-builder-workspace/Sources/ArrayToStringTransformer.swift:44:77: error: cannot find type 'NSValueTransformerName' in scope
42 | }
43 |
44 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
45 | return NSValueTransformerName(ArrayToStringTransformer.reversableNamePrefix)
46 | }
/host/spi-builder-workspace/Sources/ArrayToStringTransformer.swift:44:50: error: cannot find type 'NSValueTransformerName' in scope
42 | }
43 |
44 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
45 | return NSValueTransformerName(ArrayToStringTransformer.reversableNamePrefix)
46 | }
/host/spi-builder-workspace/Sources/ArrayToStringTransformer.swift:8:46: error: cannot find type 'ValueTransformer' in scope
6 | import Foundation
7 |
8 | final public class ArrayToStringTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton, ReversableValueTransformers {
| `- error: cannot find type 'ValueTransformer' in scope
9 |
10 | public static var namePrefix = "ArrayToString"
/host/spi-builder-workspace/Sources/ValueTransformers.swift:47:70: error: cannot find type 'NSValueTransformerName' in scope
45 |
46 | /// Return a name for reverse value transformer to register it.
47 | static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName
| `- error: cannot find type 'NSValueTransformerName' in scope
48 |
49 | }
/host/spi-builder-workspace/Sources/ValueTransformers.swift:47:43: error: cannot find type 'NSValueTransformerName' in scope
45 |
46 | /// Return a name for reverse value transformer to register it.
47 | static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName
| `- error: cannot find type 'NSValueTransformerName' in scope
48 |
49 | }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:10:20: error: cannot find type 'NSValueTransformerName' in scope
8 | open class Base64EncodeDataToStringTransformer: ValueTransformer, ValueTransformerRegisterable {
9 |
10 | open var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64EncodeDataToString") }
| `- error: cannot find type 'NSValueTransformerName' in scope
11 |
12 | let encodingOptions: Data.Base64EncodingOptions
/host/spi-builder-workspace/Sources/Base64Transformer.swift:20:30: error: method does not override any method from its superclass
18 | }
19 |
20 | open override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
21 | return true
22 | }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:24:30: error: method does not override any method from its superclass
22 | }
23 |
24 | open override class func transformedValueClass() -> AnyClass {
| `- error: method does not override any method from its superclass
25 | return NSData.self
26 | }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:28:24: error: method does not override any method from its superclass
26 | }
27 |
28 | open override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
29 | if let data = value as? Data {
30 | return data.base64EncodedString(options: encodingOptions)
/host/spi-builder-workspace/Sources/Base64Transformer.swift:36:24: error: method does not override any method from its superclass
34 | }
35 |
36 | open override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
37 | if let string = value as? String {
38 | return Data(base64Encoded: string, options: decodingOptions)
/host/spi-builder-workspace/Sources/Base64Transformer.swift:8:49: error: cannot find type 'ValueTransformer' in scope
6 | import Foundation
7 |
8 | open class Base64EncodeDataToStringTransformer: ValueTransformer, ValueTransformerRegisterable {
| `- error: cannot find type 'ValueTransformer' in scope
9 |
10 | open var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64EncodeDataToString") }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:48:29: error: cannot find type 'NSValueTransformerName' in scope
46 | open class Base64DecodeDataFromStringTransformer: Base64EncodeDataToStringTransformer {
47 |
48 | open override var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64DecodeDataFromString") }
| `- error: cannot find type 'NSValueTransformerName' in scope
49 |
50 | open override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/Base64Transformer.swift:48:23: error: property does not override any property from its superclass
46 | open class Base64DecodeDataFromStringTransformer: Base64EncodeDataToStringTransformer {
47 |
48 | open override var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64DecodeDataFromString") }
| `- error: property does not override any property from its superclass
49 |
50 | open override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/Base64Transformer.swift:66:20: error: cannot find type 'NSValueTransformerName' in scope
64 | open class Base64EncodeTransformer: ValueTransformer, ValueTransformerRegisterable {
65 |
66 | open var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64Encode") }
| `- error: cannot find type 'NSValueTransformerName' in scope
67 |
68 | let encodingOptions: Data.Base64EncodingOptions
/host/spi-builder-workspace/Sources/Base64Transformer.swift:76:30: error: method does not override any method from its superclass
74 | }
75 |
76 | open override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
77 | return true
78 | }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:80:30: error: method does not override any method from its superclass
78 | }
79 |
80 | open override class func transformedValueClass() -> AnyClass {
| `- error: method does not override any method from its superclass
81 | return NSData.self
82 | }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:84:24: error: method does not override any method from its superclass
82 | }
83 |
84 | open override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
85 | if let data = value as? Data {
86 | return data.base64EncodedData(options: encodingOptions)
/host/spi-builder-workspace/Sources/Base64Transformer.swift:92:24: error: method does not override any method from its superclass
90 | }
91 |
92 | open override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
93 | if let data = value as? Data {
94 | return Data(base64Encoded: data, options: decodingOptions)
/host/spi-builder-workspace/Sources/Base64Transformer.swift:64:37: error: cannot find type 'ValueTransformer' in scope
62 | }
63 |
64 | open class Base64EncodeTransformer: ValueTransformer, ValueTransformerRegisterable {
| `- error: cannot find type 'ValueTransformer' in scope
65 |
66 | open var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64Encode") }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:104:29: error: cannot find type 'NSValueTransformerName' in scope
102 | open class Base64DecodeTransformer: Base64EncodeTransformer {
103 |
104 | open override var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64Decode") }
| `- error: cannot find type 'NSValueTransformerName' in scope
105 |
106 | open override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/Base64Transformer.swift:104:23: error: property does not override any property from its superclass
102 | open class Base64DecodeTransformer: Base64EncodeTransformer {
103 |
104 | open override var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64Decode") }
| `- error: property does not override any property from its superclass
105 |
106 | open override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/Base64Transformer.swift:122:20: error: cannot find type 'NSValueTransformerName' in scope
120 | open class Base64EncodeStringTransformer: ValueTransformer, ValueTransformerRegisterable {
121 |
122 | open var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64EncodeString") }
| `- error: cannot find type 'NSValueTransformerName' in scope
123 |
124 | let encodingOptions: Data.Base64EncodingOptions
/host/spi-builder-workspace/Sources/Base64Transformer.swift:134:30: error: method does not override any method from its superclass
132 | }
133 |
134 | open override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
135 | return true
136 | }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:138:30: error: method does not override any method from its superclass
136 | }
137 |
138 | open override class func transformedValueClass() -> AnyClass {
| `- error: method does not override any method from its superclass
139 | return NSString.self
140 | }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:142:24: error: method does not override any method from its superclass
140 | }
141 |
142 | open override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
143 | if let string = value as? String {
144 | return string.data(using: encoding)?.base64EncodedData(options: encodingOptions)
/host/spi-builder-workspace/Sources/Base64Transformer.swift:150:24: error: method does not override any method from its superclass
148 | }
149 |
150 | open override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
151 | if let string = value as? String {
152 | guard let data = Data(base64Encoded: string, options: decodingOptions) else {
/host/spi-builder-workspace/Sources/Base64Transformer.swift:120:43: error: cannot find type 'ValueTransformer' in scope
118 | }
119 |
120 | open class Base64EncodeStringTransformer: ValueTransformer, ValueTransformerRegisterable {
| `- error: cannot find type 'ValueTransformer' in scope
121 |
122 | open var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64EncodeString") }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:165:29: error: cannot find type 'NSValueTransformerName' in scope
163 | open class Base64DecodeStringTransformer: Base64EncodeStringTransformer {
164 |
165 | open override var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64DecodeString") }
| `- error: cannot find type 'NSValueTransformerName' in scope
166 |
167 | open override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/Base64Transformer.swift:165:23: error: property does not override any property from its superclass
163 | open class Base64DecodeStringTransformer: Base64EncodeStringTransformer {
164 |
165 | open override var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64DecodeString") }
| `- error: property does not override any property from its superclass
166 |
167 | open override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/ClosureValueTransformer.swift:8:11: error: cannot find type 'ValueTransformer' in scope
6 | import Foundation
7 |
8 | extension ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
9 |
10 | public class func closure(forwardTransformer: @escaping ClosureValueTransformer.ForwardTransformer) -> ClosureValueTransformer {
/host/spi-builder-workspace/Sources/ClosureValueTransformer.swift:40:32: error: method does not override any method from its superclass
38 | // MARK: - ValueTransformer
39 |
40 | public override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
41 | return false
42 | }
/host/spi-builder-workspace/Sources/ClosureValueTransformer.swift:44:26: error: method does not override any method from its superclass
42 | }
43 |
44 | public override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
45 | return self.forwardTransformer(value)
46 | }
/host/spi-builder-workspace/Sources/ClosureValueTransformer.swift:21:39: error: cannot find type 'ValueTransformer' in scope
19 |
20 | // MARK: - ClosureValueTransformer Class
21 | public class ClosureValueTransformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
22 |
23 | // MARK: - Closure alias
/host/spi-builder-workspace/Sources/ClosureValueTransformer.swift:63:26: error: method does not override any method from its superclass
61 | }
62 |
63 | public override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
64 | return self.reverseTransformer!(value)
65 | }
/host/spi-builder-workspace/Sources/ClosureValueTransformer.swift:35:9: error: 'super' members cannot be referenced in a root class
33 | self.forwardTransformer = forwardTransformer
34 | self.reverseTransformer = reverseTransformer
35 | super.init()
| `- error: 'super' members cannot be referenced in a root class
36 | }
37 |
[23/30] Compiling ValueTransformerKit ClosureValueTransformer.swift
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:10:2: error: Objective-C interoperability is disabled
8 |
9 | import Foundation
10 | @objc(ArchiveValueTransformer)
| `- error: Objective-C interoperability is disabled
11 | public final class ArchiveValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
12 |
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:13:23: error: cannot find 'NSValueTransformerName' in scope
11 | public final class ArchiveValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
12 |
13 | public var name = NSValueTransformerName(rawValue: "Archive")
| `- error: cannot find 'NSValueTransformerName' in scope
14 | public static let instance = ArchiveValueTransformer()
15 |
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:14:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'ArchiveValueTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 | @objc(ArchiveValueTransformer)
11 | public final class ArchiveValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
| `- note: class 'ArchiveValueTransformer' does not conform to the 'Sendable' protocol
12 |
13 | public var name = NSValueTransformerName(rawValue: "Archive")
14 | public static let instance = ArchiveValueTransformer()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'ArchiveValueTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | public override class func allowsReverseTransformation() -> Bool {
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:16:32: error: method does not override any method from its superclass
14 | public static let instance = ArchiveValueTransformer()
15 |
16 | public override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
17 | return true
18 | }
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:20:26: error: method does not override any method from its superclass
18 | }
19 |
20 | public override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
21 | guard let value = value else {
22 | return nil
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:32:26: error: method does not override any method from its superclass
30 | }
31 |
32 | public override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
33 | guard let data = value as? Data else {
34 | return nil
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:11:45: error: cannot find type 'ValueTransformer' in scope
9 | import Foundation
10 | @objc(ArchiveValueTransformer)
11 | public final class ArchiveValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
| `- error: cannot find type 'ValueTransformer' in scope
12 |
13 | public var name = NSValueTransformerName(rawValue: "Archive")
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:15:22: error: cannot find type 'ValueTransformer' in scope
13 |
14 | /// The value transformer to register.
15 | var transformer: ValueTransformer {get}
| `- error: cannot find type 'ValueTransformer' in scope
16 | /// The identifier to register the value transformer.
17 | var name: NSValueTransformerName {get}
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:17:15: error: cannot find type 'NSValueTransformerName' in scope
15 | var transformer: ValueTransformer {get}
16 | /// The identifier to register the value transformer.
17 | var name: NSValueTransformerName {get}
| `- error: cannot find type 'NSValueTransformerName' in scope
18 | }
19 |
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:43:33: error: cannot find type 'ValueTransformer' in scope
41 | extension ArchiveValueTransformer: ValueTransformerReversable {
42 |
43 | public var reverseInstance: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
44 | return UnarchiveValueTransformer.instance
45 | }
/host/spi-builder-workspace/Sources/ReverseValueTransformer.swift:34:26: error: cannot find type 'ValueTransformer' in scope
32 |
33 | public protocol ValueTransformerReversable {
34 | var reverseInstance: ValueTransformer {get}
| `- error: cannot find type 'ValueTransformer' in scope
35 | }
36 |
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:49:2: error: Objective-C interoperability is disabled
47 | }
48 |
49 | @objc(UnarchiveValueTransformer)
| `- error: Objective-C interoperability is disabled
50 | public final class UnarchiveValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
51 |
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:52:23: error: cannot find 'NSValueTransformerName' in scope
50 | public final class UnarchiveValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
51 |
52 | public var name = NSValueTransformerName(rawValue: "Unarchive")
| `- error: cannot find 'NSValueTransformerName' in scope
53 | public static let instance = UnarchiveValueTransformer()
54 |
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:53:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'UnarchiveValueTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | @objc(UnarchiveValueTransformer)
50 | public final class UnarchiveValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
| `- note: class 'UnarchiveValueTransformer' does not conform to the 'Sendable' protocol
51 |
52 | public var name = NSValueTransformerName(rawValue: "Unarchive")
53 | public static let instance = UnarchiveValueTransformer()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'UnarchiveValueTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | public override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:55:32: error: method does not override any method from its superclass
53 | public static let instance = UnarchiveValueTransformer()
54 |
55 | public override class func transformedValueClass() -> AnyClass {
| `- error: method does not override any method from its superclass
56 | return NSData.self
57 | }
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:59:26: error: method does not override any method from its superclass
57 | }
58 |
59 | public override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
60 | guard let data = value as? Data else {
61 | return nil
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:66:26: error: method does not override any method from its superclass
64 | }
65 |
66 | public override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
67 | guard let value = value else {
68 | return nil
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:50:47: error: cannot find type 'ValueTransformer' in scope
48 |
49 | @objc(UnarchiveValueTransformer)
50 | public final class UnarchiveValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
| `- error: cannot find type 'ValueTransformer' in scope
51 |
52 | public var name = NSValueTransformerName(rawValue: "Unarchive")
/host/spi-builder-workspace/Sources/ArchiveValueTransformer.swift:81:33: error: cannot find type 'ValueTransformer' in scope
79 | extension UnarchiveValueTransformer: ValueTransformerReversable {
80 |
81 | public var reverseInstance: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
82 | return ArchiveValueTransformer.instance
83 | }
/host/spi-builder-workspace/Sources/ArrayToStringTransformer.swift:10:23: warning: static property 'namePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | final public class ArrayToStringTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton, ReversableValueTransformers {
9 |
10 | public static var namePrefix = "ArrayToString"
| |- warning: static property 'namePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'namePrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'namePrefix' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | public static var reversableNamePrefix = "StringToArray"
12 |
/host/spi-builder-workspace/Sources/ArrayToStringTransformer.swift:11:23: warning: static property 'reversableNamePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public static var namePrefix = "ArrayToString"
11 | public static var reversableNamePrefix = "StringToArray"
| |- warning: static property 'reversableNamePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'reversableNamePrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'reversableNamePrefix' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public var name = NSValueTransformerName(rawValue: ArrayToStringTransformer.namePrefix)
/host/spi-builder-workspace/Sources/ArrayToStringTransformer.swift:13:23: error: cannot find 'NSValueTransformerName' in scope
11 | public static var reversableNamePrefix = "StringToArray"
12 |
13 | public var name = NSValueTransformerName(rawValue: ArrayToStringTransformer.namePrefix)
| `- error: cannot find 'NSValueTransformerName' in scope
14 | public static let instance = ArrayToStringTransformer()
15 |
/host/spi-builder-workspace/Sources/ArrayToStringTransformer.swift:14:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'ArrayToStringTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | final public class ArrayToStringTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton, ReversableValueTransformers {
| `- note: class 'ArrayToStringTransformer' does not conform to the 'Sendable' protocol
9 |
10 | public static var namePrefix = "ArrayToString"
:
12 |
13 | public var name = NSValueTransformerName(rawValue: ArrayToStringTransformer.namePrefix)
14 | public static let instance = ArrayToStringTransformer()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'ArrayToStringTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | let separator: String
/host/spi-builder-workspace/Sources/ArrayToStringTransformer.swift:22:32: error: method does not override any method from its superclass
20 | }
21 |
22 | public override class func transformedValueClass() -> AnyClass {
| `- error: method does not override any method from its superclass
23 | return NSArray.self
24 | }
/host/spi-builder-workspace/Sources/ArrayToStringTransformer.swift:26:32: error: method does not override any method from its superclass
24 | }
25 |
26 | public override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
27 | return true
28 | }
/host/spi-builder-workspace/Sources/ArrayToStringTransformer.swift:30:26: error: method does not override any method from its superclass
28 | }
29 |
30 | public override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
31 | guard let randomArray = value as? [String] else {
32 | return nil
/host/spi-builder-workspace/Sources/ArrayToStringTransformer.swift:37:26: error: method does not override any method from its superclass
35 | }
36 |
37 | public override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
38 | guard let randomString = value as? String else {
39 | return nil
/host/spi-builder-workspace/Sources/ArrayToStringTransformer.swift:44:77: error: cannot find type 'NSValueTransformerName' in scope
42 | }
43 |
44 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
45 | return NSValueTransformerName(ArrayToStringTransformer.reversableNamePrefix)
46 | }
/host/spi-builder-workspace/Sources/ArrayToStringTransformer.swift:44:50: error: cannot find type 'NSValueTransformerName' in scope
42 | }
43 |
44 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
45 | return NSValueTransformerName(ArrayToStringTransformer.reversableNamePrefix)
46 | }
/host/spi-builder-workspace/Sources/ArrayToStringTransformer.swift:8:46: error: cannot find type 'ValueTransformer' in scope
6 | import Foundation
7 |
8 | final public class ArrayToStringTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton, ReversableValueTransformers {
| `- error: cannot find type 'ValueTransformer' in scope
9 |
10 | public static var namePrefix = "ArrayToString"
/host/spi-builder-workspace/Sources/ValueTransformers.swift:47:70: error: cannot find type 'NSValueTransformerName' in scope
45 |
46 | /// Return a name for reverse value transformer to register it.
47 | static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName
| `- error: cannot find type 'NSValueTransformerName' in scope
48 |
49 | }
/host/spi-builder-workspace/Sources/ValueTransformers.swift:47:43: error: cannot find type 'NSValueTransformerName' in scope
45 |
46 | /// Return a name for reverse value transformer to register it.
47 | static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName
| `- error: cannot find type 'NSValueTransformerName' in scope
48 |
49 | }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:10:20: error: cannot find type 'NSValueTransformerName' in scope
8 | open class Base64EncodeDataToStringTransformer: ValueTransformer, ValueTransformerRegisterable {
9 |
10 | open var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64EncodeDataToString") }
| `- error: cannot find type 'NSValueTransformerName' in scope
11 |
12 | let encodingOptions: Data.Base64EncodingOptions
/host/spi-builder-workspace/Sources/Base64Transformer.swift:20:30: error: method does not override any method from its superclass
18 | }
19 |
20 | open override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
21 | return true
22 | }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:24:30: error: method does not override any method from its superclass
22 | }
23 |
24 | open override class func transformedValueClass() -> AnyClass {
| `- error: method does not override any method from its superclass
25 | return NSData.self
26 | }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:28:24: error: method does not override any method from its superclass
26 | }
27 |
28 | open override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
29 | if let data = value as? Data {
30 | return data.base64EncodedString(options: encodingOptions)
/host/spi-builder-workspace/Sources/Base64Transformer.swift:36:24: error: method does not override any method from its superclass
34 | }
35 |
36 | open override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
37 | if let string = value as? String {
38 | return Data(base64Encoded: string, options: decodingOptions)
/host/spi-builder-workspace/Sources/Base64Transformer.swift:8:49: error: cannot find type 'ValueTransformer' in scope
6 | import Foundation
7 |
8 | open class Base64EncodeDataToStringTransformer: ValueTransformer, ValueTransformerRegisterable {
| `- error: cannot find type 'ValueTransformer' in scope
9 |
10 | open var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64EncodeDataToString") }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:48:29: error: cannot find type 'NSValueTransformerName' in scope
46 | open class Base64DecodeDataFromStringTransformer: Base64EncodeDataToStringTransformer {
47 |
48 | open override var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64DecodeDataFromString") }
| `- error: cannot find type 'NSValueTransformerName' in scope
49 |
50 | open override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/Base64Transformer.swift:48:23: error: property does not override any property from its superclass
46 | open class Base64DecodeDataFromStringTransformer: Base64EncodeDataToStringTransformer {
47 |
48 | open override var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64DecodeDataFromString") }
| `- error: property does not override any property from its superclass
49 |
50 | open override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/Base64Transformer.swift:66:20: error: cannot find type 'NSValueTransformerName' in scope
64 | open class Base64EncodeTransformer: ValueTransformer, ValueTransformerRegisterable {
65 |
66 | open var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64Encode") }
| `- error: cannot find type 'NSValueTransformerName' in scope
67 |
68 | let encodingOptions: Data.Base64EncodingOptions
/host/spi-builder-workspace/Sources/Base64Transformer.swift:76:30: error: method does not override any method from its superclass
74 | }
75 |
76 | open override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
77 | return true
78 | }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:80:30: error: method does not override any method from its superclass
78 | }
79 |
80 | open override class func transformedValueClass() -> AnyClass {
| `- error: method does not override any method from its superclass
81 | return NSData.self
82 | }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:84:24: error: method does not override any method from its superclass
82 | }
83 |
84 | open override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
85 | if let data = value as? Data {
86 | return data.base64EncodedData(options: encodingOptions)
/host/spi-builder-workspace/Sources/Base64Transformer.swift:92:24: error: method does not override any method from its superclass
90 | }
91 |
92 | open override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
93 | if let data = value as? Data {
94 | return Data(base64Encoded: data, options: decodingOptions)
/host/spi-builder-workspace/Sources/Base64Transformer.swift:64:37: error: cannot find type 'ValueTransformer' in scope
62 | }
63 |
64 | open class Base64EncodeTransformer: ValueTransformer, ValueTransformerRegisterable {
| `- error: cannot find type 'ValueTransformer' in scope
65 |
66 | open var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64Encode") }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:104:29: error: cannot find type 'NSValueTransformerName' in scope
102 | open class Base64DecodeTransformer: Base64EncodeTransformer {
103 |
104 | open override var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64Decode") }
| `- error: cannot find type 'NSValueTransformerName' in scope
105 |
106 | open override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/Base64Transformer.swift:104:23: error: property does not override any property from its superclass
102 | open class Base64DecodeTransformer: Base64EncodeTransformer {
103 |
104 | open override var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64Decode") }
| `- error: property does not override any property from its superclass
105 |
106 | open override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/Base64Transformer.swift:122:20: error: cannot find type 'NSValueTransformerName' in scope
120 | open class Base64EncodeStringTransformer: ValueTransformer, ValueTransformerRegisterable {
121 |
122 | open var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64EncodeString") }
| `- error: cannot find type 'NSValueTransformerName' in scope
123 |
124 | let encodingOptions: Data.Base64EncodingOptions
/host/spi-builder-workspace/Sources/Base64Transformer.swift:134:30: error: method does not override any method from its superclass
132 | }
133 |
134 | open override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
135 | return true
136 | }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:138:30: error: method does not override any method from its superclass
136 | }
137 |
138 | open override class func transformedValueClass() -> AnyClass {
| `- error: method does not override any method from its superclass
139 | return NSString.self
140 | }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:142:24: error: method does not override any method from its superclass
140 | }
141 |
142 | open override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
143 | if let string = value as? String {
144 | return string.data(using: encoding)?.base64EncodedData(options: encodingOptions)
/host/spi-builder-workspace/Sources/Base64Transformer.swift:150:24: error: method does not override any method from its superclass
148 | }
149 |
150 | open override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
151 | if let string = value as? String {
152 | guard let data = Data(base64Encoded: string, options: decodingOptions) else {
/host/spi-builder-workspace/Sources/Base64Transformer.swift:120:43: error: cannot find type 'ValueTransformer' in scope
118 | }
119 |
120 | open class Base64EncodeStringTransformer: ValueTransformer, ValueTransformerRegisterable {
| `- error: cannot find type 'ValueTransformer' in scope
121 |
122 | open var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64EncodeString") }
/host/spi-builder-workspace/Sources/Base64Transformer.swift:165:29: error: cannot find type 'NSValueTransformerName' in scope
163 | open class Base64DecodeStringTransformer: Base64EncodeStringTransformer {
164 |
165 | open override var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64DecodeString") }
| `- error: cannot find type 'NSValueTransformerName' in scope
166 |
167 | open override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/Base64Transformer.swift:165:23: error: property does not override any property from its superclass
163 | open class Base64DecodeStringTransformer: Base64EncodeStringTransformer {
164 |
165 | open override var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "Base64DecodeString") }
| `- error: property does not override any property from its superclass
166 |
167 | open override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/ClosureValueTransformer.swift:8:11: error: cannot find type 'ValueTransformer' in scope
6 | import Foundation
7 |
8 | extension ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
9 |
10 | public class func closure(forwardTransformer: @escaping ClosureValueTransformer.ForwardTransformer) -> ClosureValueTransformer {
/host/spi-builder-workspace/Sources/ClosureValueTransformer.swift:40:32: error: method does not override any method from its superclass
38 | // MARK: - ValueTransformer
39 |
40 | public override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
41 | return false
42 | }
/host/spi-builder-workspace/Sources/ClosureValueTransformer.swift:44:26: error: method does not override any method from its superclass
42 | }
43 |
44 | public override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
45 | return self.forwardTransformer(value)
46 | }
/host/spi-builder-workspace/Sources/ClosureValueTransformer.swift:21:39: error: cannot find type 'ValueTransformer' in scope
19 |
20 | // MARK: - ClosureValueTransformer Class
21 | public class ClosureValueTransformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
22 |
23 | // MARK: - Closure alias
/host/spi-builder-workspace/Sources/ClosureValueTransformer.swift:63:26: error: method does not override any method from its superclass
61 | }
62 |
63 | public override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
64 | return self.reverseTransformer!(value)
65 | }
/host/spi-builder-workspace/Sources/ClosureValueTransformer.swift:35:9: error: 'super' members cannot be referenced in a root class
33 | self.forwardTransformer = forwardTransformer
34 | self.reverseTransformer = reverseTransformer
35 | super.init()
| `- error: 'super' members cannot be referenced in a root class
36 | }
37 |
[24/30] Compiling ValueTransformerKit DateTransformers.swift
/host/spi-builder-workspace/Sources/DateTransformers.swift:18:23: warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[DateTransformers]' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public enum DateTransformers: ReversableValueTransformers, ResersableValueTransformerType {
| `- note: consider making enum 'DateTransformers' conform to the 'Sendable' protocol
9 |
10 | case rfc822
:
16 | case dateFormat(String)
17 |
18 | public static let transformers: [DateTransformers] = [.rfc822, .short, .medium, .long, .full]
| |- warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[DateTransformers]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'transformers' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | public static var namePrefix = "Date"
/host/spi-builder-workspace/Sources/DateTransformers.swift:20:23: warning: static property 'namePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | public static let transformers: [DateTransformers] = [.rfc822, .short, .medium, .long, .full]
19 |
20 | public static var namePrefix = "Date"
| |- warning: static property 'namePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'namePrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'namePrefix' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public static var reversableNamePrefix = "StringToDate"
22 |
/host/spi-builder-workspace/Sources/DateTransformers.swift:21:23: warning: static property 'reversableNamePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | public static var namePrefix = "Date"
21 | public static var reversableNamePrefix = "StringToDate"
| |- warning: static property 'reversableNamePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'reversableNamePrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'reversableNamePrefix' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | public var formatter: DateFormatter {
/host/spi-builder-workspace/Sources/DateTransformers.swift:50:22: error: cannot find type 'NSValueTransformerName' in scope
48 | }
49 |
50 | public var name: NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
51 | return NSValueTransformerName(DateTransformers.namePrefix + self.description.capitalized)
52 | }
/host/spi-builder-workspace/Sources/DateTransformers.swift:68:77: error: cannot find type 'NSValueTransformerName' in scope
66 | }
67 |
68 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
69 | let newName = name.rawValue.replacingOccurrences(of: DateTransformers.namePrefix, with: DateTransformers.reversableNamePrefix)
70 | return NSValueTransformerName(newName)
/host/spi-builder-workspace/Sources/DateTransformers.swift:68:50: error: cannot find type 'NSValueTransformerName' in scope
66 | }
67 |
68 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
69 | let newName = name.rawValue.replacingOccurrences(of: DateTransformers.namePrefix, with: DateTransformers.reversableNamePrefix)
70 | return NSValueTransformerName(newName)
/host/spi-builder-workspace/Sources/ValueTransformers.swift:47:70: error: cannot find type 'NSValueTransformerName' in scope
45 |
46 | /// Return a name for reverse value transformer to register it.
47 | static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName
| `- error: cannot find type 'NSValueTransformerName' in scope
48 |
49 | }
/host/spi-builder-workspace/Sources/ValueTransformers.swift:47:43: error: cannot find type 'NSValueTransformerName' in scope
45 |
46 | /// Return a name for reverse value transformer to register it.
47 | static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName
| `- error: cannot find type 'NSValueTransformerName' in scope
48 |
49 | }
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:15:22: error: cannot find type 'ValueTransformer' in scope
13 |
14 | /// The value transformer to register.
15 | var transformer: ValueTransformer {get}
| `- error: cannot find type 'ValueTransformer' in scope
16 | /// The identifier to register the value transformer.
17 | var name: NSValueTransformerName {get}
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:17:15: error: cannot find type 'NSValueTransformerName' in scope
15 | var transformer: ValueTransformer {get}
16 | /// The identifier to register the value transformer.
17 | var name: NSValueTransformerName {get}
| `- error: cannot find type 'NSValueTransformerName' in scope
18 | }
19 |
/host/spi-builder-workspace/Sources/DateTransformers.swift:130:32: error: method does not override any method from its superclass
128 |
129 | // MARK: - ValueTransformer
130 | public override class func transformedValueClass() -> Swift.AnyClass {
| `- error: method does not override any method from its superclass
131 | return NSDate.self
132 | }
/host/spi-builder-workspace/Sources/DateTransformers.swift:134:32: error: method does not override any method from its superclass
132 | }
133 |
134 | public override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
135 | return true
136 | }
/host/spi-builder-workspace/Sources/DateTransformers.swift:138:26: error: method does not override any method from its superclass
136 | }
137 |
138 | public override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
139 | guard let date = value as? Date else {
140 | return nil
/host/spi-builder-workspace/Sources/DateTransformers.swift:145:26: error: method does not override any method from its superclass
143 | }
144 |
145 | public override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
146 | guard let string = value as? String else {
147 | return nil
/host/spi-builder-workspace/Sources/DateTransformers.swift:118:39: error: cannot find type 'ValueTransformer' in scope
116 |
117 | // MARK: - DateToStringTransformer Class
118 | public class DateToStringTransformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
119 |
120 | // MARK: - formatter
/host/spi-builder-workspace/Sources/Operators.swift:61:79: error: cannot find type 'ValueTransformer' in scope
59 |
60 | /// Add two value transformers
61 | public static func + (left: ValueTransformer, right: ValueTransformer) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
62 | return CompoundValueTransformer(transformers: [left, right])
63 | }
/host/spi-builder-workspace/Sources/Operators.swift:61:33: error: cannot find type 'ValueTransformer' in scope
59 |
60 | /// Add two value transformers
61 | public static func + (left: ValueTransformer, right: ValueTransformer) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
62 | return CompoundValueTransformer(transformers: [left, right])
63 | }
/host/spi-builder-workspace/Sources/Operators.swift:61:58: error: cannot find type 'ValueTransformer' in scope
59 |
60 | /// Add two value transformers
61 | public static func + (left: ValueTransformer, right: ValueTransformer) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
62 | return CompoundValueTransformer(transformers: [left, right])
63 | }
/host/spi-builder-workspace/Sources/Operators.swift:64:83: error: cannot find type 'ValueTransformer' in scope
62 | return CompoundValueTransformer(transformers: [left, right])
63 | }
64 | public static func + (left: ValueTransformer, right: ValueTransformerType) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
65 | return CompoundValueTransformer(transformers: [left, right.transformer])
66 | }
/host/spi-builder-workspace/Sources/Operators.swift:64:33: error: cannot find type 'ValueTransformer' in scope
62 | return CompoundValueTransformer(transformers: [left, right])
63 | }
64 | public static func + (left: ValueTransformer, right: ValueTransformerType) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
65 | return CompoundValueTransformer(transformers: [left, right.transformer])
66 | }
/host/spi-builder-workspace/Sources/Operators.swift:85:87: error: cannot find type 'ValueTransformer' in scope
83 | }
84 | extension ValueTransformerType {
85 | public static func + (left: ValueTransformerType, right: ValueTransformerType) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
86 | return CompoundValueTransformer(transformers: [left.transformer, right.transformer])
87 | }
/host/spi-builder-workspace/Sources/DateTransformers.swift:126:9: error: 'super' members cannot be referenced in a root class
124 | public init(formatter: DateFormatter) {
125 | self.formatter = formatter
126 | super.init()
| `- error: 'super' members cannot be referenced in a root class
127 | }
128 |
/host/spi-builder-workspace/Sources/EmptyTransformer.swift:22:24: error: method does not override any method from its superclass
20 | }
21 |
22 | open override func transformedValue(_ object: Any?) -> Any? {
| `- error: method does not override any method from its superclass
23 | guard let obj = object else {
24 | return ""
/host/spi-builder-workspace/Sources/EmptyTransformer.swift:12:36: error: cannot find type 'ValueTransformer' in scope
10 |
11 | /// Replace all nil object to ""
12 | open class EmptyStringTransformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
13 |
14 | open func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/EmptyTransformer.swift:44:24: error: method does not override any method from its superclass
42 | }
43 |
44 | open override func transformedValue(_ object: Any?) -> Any? {
| `- error: method does not override any method from its superclass
45 | guard let object = object else {
46 | return initClosure()
/host/spi-builder-workspace/Sources/EmptyTransformer.swift:32:30: error: cannot find type 'ValueTransformer' in scope
30 |
31 | /// Replace all nil object to a new object created using `initClosure`
32 | open class EmptyTransformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
33 |
34 | var initClosure: () -> Any
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:9:2: error: Objective-C interoperability is disabled
7 |
8 | /// Identity transformer do return the value without applying any transformation
9 | @objc(IdentityTransformer)
| `- error: Objective-C interoperability is disabled
10 | final public class IdentityTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
11 |
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:12:23: error: cannot find 'NSValueTransformerName' in scope
10 | final public class IdentityTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
11 |
12 | public var name = NSValueTransformerName(rawValue: "Identity")
| `- error: cannot find 'NSValueTransformerName' in scope
13 | public static let instance = IdentityTransformer()
14 |
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:13:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'IdentityTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// Identity transformer do return the value without applying any transformation
9 | @objc(IdentityTransformer)
10 | final public class IdentityTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
| `- note: class 'IdentityTransformer' does not conform to the 'Sendable' protocol
11 |
12 | public var name = NSValueTransformerName(rawValue: "Identity")
13 | public static let instance = IdentityTransformer()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'IdentityTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | public override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:15:32: error: method does not override any method from its superclass
13 | public static let instance = IdentityTransformer()
14 |
15 | public override class func transformedValueClass() -> AnyClass {
| `- error: method does not override any method from its superclass
16 | return NSObject.self
17 | }
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:19:32: error: method does not override any method from its superclass
17 | }
18 |
19 | public override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
20 | return true
21 | }
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:23:26: error: method does not override any method from its superclass
21 | }
22 |
23 | public override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
24 | return value
25 | }
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:27:26: error: method does not override any method from its superclass
25 | }
26 |
27 | public override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
28 | return value
29 | }
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:10:41: error: cannot find type 'ValueTransformer' in scope
8 | /// Identity transformer do return the value without applying any transformation
9 | @objc(IdentityTransformer)
10 | final public class IdentityTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
| `- error: cannot find type 'ValueTransformer' in scope
11 |
12 | public var name = NSValueTransformerName(rawValue: "Identity")
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:33:11: error: cannot find type 'ValueTransformer' in scope
31 | }
32 |
33 | extension ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
34 | /// Identity transformer do return the value without applying any transformation
35 | public static var identity: IdentityTransformer {
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:42:33: error: cannot find type 'ValueTransformer' in scope
40 | extension IdentityTransformer: ValueTransformerReversable {
41 |
42 | public var reverseInstance: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
43 | return self
44 | }
/host/spi-builder-workspace/Sources/ReverseValueTransformer.swift:34:26: error: cannot find type 'ValueTransformer' in scope
32 |
33 | public protocol ValueTransformerReversable {
34 | var reverseInstance: ValueTransformer {get}
| `- error: cannot find type 'ValueTransformer' in scope
35 | }
36 |
/host/spi-builder-workspace/Sources/ImageTransformers.swift:56:23: warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[ImageRepresentationTransformers]' may have shared mutable state; this is an error in the Swift 6 language mode
49 | #endif
50 |
51 | public enum ImageRepresentationTransformers: String, ReversableValueTransformers, ResersableValueTransformerType {
| `- note: consider making enum 'ImageRepresentationTransformers' conform to the 'Sendable' protocol
52 |
53 | case png
54 | case jpeg
55 |
56 | public static let transformers: [ImageRepresentationTransformers] = [.png, .jpeg]
| |- warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[ImageRepresentationTransformers]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'transformers' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 | public static var kJPEGRepresentationCompressionQuality: CGFloat = 0.85
/host/spi-builder-workspace/Sources/ImageTransformers.swift:58:62: error: cannot find type 'CGFloat' in scope
56 | public static let transformers: [ImageRepresentationTransformers] = [.png, .jpeg]
57 |
58 | public static var kJPEGRepresentationCompressionQuality: CGFloat = 0.85
| `- error: cannot find type 'CGFloat' in scope
59 |
60 | public static var namePrefix = "ImageRepresentation"
/host/spi-builder-workspace/Sources/ImageTransformers.swift:58:23: warning: static property 'kJPEGRepresentationCompressionQuality' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
56 | public static let transformers: [ImageRepresentationTransformers] = [.png, .jpeg]
57 |
58 | public static var kJPEGRepresentationCompressionQuality: CGFloat = 0.85
| |- warning: static property 'kJPEGRepresentationCompressionQuality' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'kJPEGRepresentationCompressionQuality' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'kJPEGRepresentationCompressionQuality' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | public static var namePrefix = "ImageRepresentation"
/host/spi-builder-workspace/Sources/ImageTransformers.swift:60:23: warning: static property 'namePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 | public static var kJPEGRepresentationCompressionQuality: CGFloat = 0.85
59 |
60 | public static var namePrefix = "ImageRepresentation"
| |- warning: static property 'namePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'namePrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'namePrefix' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | public static var reversableNamePrefix = "RepresentationToImage"
62 |
/host/spi-builder-workspace/Sources/ImageTransformers.swift:61:23: warning: static property 'reversableNamePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | public static var namePrefix = "ImageRepresentation"
61 | public static var reversableNamePrefix = "RepresentationToImage"
| |- warning: static property 'reversableNamePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'reversableNamePrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'reversableNamePrefix' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | public var name: NSValueTransformerName {
/host/spi-builder-workspace/Sources/ImageTransformers.swift:63:22: error: cannot find type 'NSValueTransformerName' in scope
61 | public static var reversableNamePrefix = "RepresentationToImage"
62 |
63 | public var name: NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
64 | return NSValueTransformerName(ImageRepresentationTransformers.namePrefix + self.rawValue.capitalized)
65 | }
/host/spi-builder-workspace/Sources/ImageTransformers.swift:84:77: error: cannot find type 'NSValueTransformerName' in scope
82 | }
83 |
84 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
85 | let newName = name.rawValue.replacingOccurrences(of: ImageRepresentationTransformers.namePrefix, with: ImageRepresentationTransformers.reversableNamePrefix)
86 | return NSValueTransformerName(newName)
/host/spi-builder-workspace/Sources/ImageTransformers.swift:84:50: error: cannot find type 'NSValueTransformerName' in scope
82 | }
83 |
84 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
85 | let newName = name.rawValue.replacingOccurrences(of: ImageRepresentationTransformers.namePrefix, with: ImageRepresentationTransformers.reversableNamePrefix)
86 | return NSValueTransformerName(newName)
/host/spi-builder-workspace/Sources/ImageTransformers.swift:68:37: error: cannot find type 'ValueImage' in scope
66 |
67 | public func transformedValue(_ value: Any?) -> Any? {
68 | guard let image = value as? ValueImage else {
| `- error: cannot find type 'ValueImage' in scope
69 | return nil
70 | }
/host/spi-builder-workspace/Sources/ImageTransformers.swift:72:27: error: cannot find 'ImagePNGRepresentation' in scope
70 | }
71 | switch self {
72 | case .png: return ImagePNGRepresentation(image)
| `- error: cannot find 'ImagePNGRepresentation' in scope
73 | case .jpeg: return ImageJPEGRepresentation(image, ImageRepresentationTransformers.kJPEGRepresentationCompressionQuality)
74 | }
/host/spi-builder-workspace/Sources/ImageTransformers.swift:73:28: error: cannot find 'ImageJPEGRepresentation' in scope
71 | switch self {
72 | case .png: return ImagePNGRepresentation(image)
73 | case .jpeg: return ImageJPEGRepresentation(image, ImageRepresentationTransformers.kJPEGRepresentationCompressionQuality)
| `- error: cannot find 'ImageJPEGRepresentation' in scope
74 | }
75 | }
/host/spi-builder-workspace/Sources/ImageTransformers.swift:78:36: error: cannot find type 'Data' in scope
76 |
77 | public func reverseTransformedValue(_ value: Any?) -> Any? {
78 | guard let data = value as? Data else {
| `- error: cannot find type 'Data' in scope
79 | return nil
80 | }
/host/spi-builder-workspace/Sources/ImageTransformers.swift:81:16: error: cannot find 'ValueImage' in scope
79 | return nil
80 | }
81 | return ValueImage.init(data: data)
| `- error: cannot find 'ValueImage' in scope
82 | }
83 |
[25/30] Compiling ValueTransformerKit EmptyTransformer.swift
/host/spi-builder-workspace/Sources/DateTransformers.swift:18:23: warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[DateTransformers]' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public enum DateTransformers: ReversableValueTransformers, ResersableValueTransformerType {
| `- note: consider making enum 'DateTransformers' conform to the 'Sendable' protocol
9 |
10 | case rfc822
:
16 | case dateFormat(String)
17 |
18 | public static let transformers: [DateTransformers] = [.rfc822, .short, .medium, .long, .full]
| |- warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[DateTransformers]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'transformers' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | public static var namePrefix = "Date"
/host/spi-builder-workspace/Sources/DateTransformers.swift:20:23: warning: static property 'namePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | public static let transformers: [DateTransformers] = [.rfc822, .short, .medium, .long, .full]
19 |
20 | public static var namePrefix = "Date"
| |- warning: static property 'namePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'namePrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'namePrefix' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public static var reversableNamePrefix = "StringToDate"
22 |
/host/spi-builder-workspace/Sources/DateTransformers.swift:21:23: warning: static property 'reversableNamePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | public static var namePrefix = "Date"
21 | public static var reversableNamePrefix = "StringToDate"
| |- warning: static property 'reversableNamePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'reversableNamePrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'reversableNamePrefix' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | public var formatter: DateFormatter {
/host/spi-builder-workspace/Sources/DateTransformers.swift:50:22: error: cannot find type 'NSValueTransformerName' in scope
48 | }
49 |
50 | public var name: NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
51 | return NSValueTransformerName(DateTransformers.namePrefix + self.description.capitalized)
52 | }
/host/spi-builder-workspace/Sources/DateTransformers.swift:68:77: error: cannot find type 'NSValueTransformerName' in scope
66 | }
67 |
68 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
69 | let newName = name.rawValue.replacingOccurrences(of: DateTransformers.namePrefix, with: DateTransformers.reversableNamePrefix)
70 | return NSValueTransformerName(newName)
/host/spi-builder-workspace/Sources/DateTransformers.swift:68:50: error: cannot find type 'NSValueTransformerName' in scope
66 | }
67 |
68 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
69 | let newName = name.rawValue.replacingOccurrences(of: DateTransformers.namePrefix, with: DateTransformers.reversableNamePrefix)
70 | return NSValueTransformerName(newName)
/host/spi-builder-workspace/Sources/ValueTransformers.swift:47:70: error: cannot find type 'NSValueTransformerName' in scope
45 |
46 | /// Return a name for reverse value transformer to register it.
47 | static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName
| `- error: cannot find type 'NSValueTransformerName' in scope
48 |
49 | }
/host/spi-builder-workspace/Sources/ValueTransformers.swift:47:43: error: cannot find type 'NSValueTransformerName' in scope
45 |
46 | /// Return a name for reverse value transformer to register it.
47 | static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName
| `- error: cannot find type 'NSValueTransformerName' in scope
48 |
49 | }
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:15:22: error: cannot find type 'ValueTransformer' in scope
13 |
14 | /// The value transformer to register.
15 | var transformer: ValueTransformer {get}
| `- error: cannot find type 'ValueTransformer' in scope
16 | /// The identifier to register the value transformer.
17 | var name: NSValueTransformerName {get}
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:17:15: error: cannot find type 'NSValueTransformerName' in scope
15 | var transformer: ValueTransformer {get}
16 | /// The identifier to register the value transformer.
17 | var name: NSValueTransformerName {get}
| `- error: cannot find type 'NSValueTransformerName' in scope
18 | }
19 |
/host/spi-builder-workspace/Sources/DateTransformers.swift:130:32: error: method does not override any method from its superclass
128 |
129 | // MARK: - ValueTransformer
130 | public override class func transformedValueClass() -> Swift.AnyClass {
| `- error: method does not override any method from its superclass
131 | return NSDate.self
132 | }
/host/spi-builder-workspace/Sources/DateTransformers.swift:134:32: error: method does not override any method from its superclass
132 | }
133 |
134 | public override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
135 | return true
136 | }
/host/spi-builder-workspace/Sources/DateTransformers.swift:138:26: error: method does not override any method from its superclass
136 | }
137 |
138 | public override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
139 | guard let date = value as? Date else {
140 | return nil
/host/spi-builder-workspace/Sources/DateTransformers.swift:145:26: error: method does not override any method from its superclass
143 | }
144 |
145 | public override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
146 | guard let string = value as? String else {
147 | return nil
/host/spi-builder-workspace/Sources/DateTransformers.swift:118:39: error: cannot find type 'ValueTransformer' in scope
116 |
117 | // MARK: - DateToStringTransformer Class
118 | public class DateToStringTransformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
119 |
120 | // MARK: - formatter
/host/spi-builder-workspace/Sources/Operators.swift:61:79: error: cannot find type 'ValueTransformer' in scope
59 |
60 | /// Add two value transformers
61 | public static func + (left: ValueTransformer, right: ValueTransformer) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
62 | return CompoundValueTransformer(transformers: [left, right])
63 | }
/host/spi-builder-workspace/Sources/Operators.swift:61:33: error: cannot find type 'ValueTransformer' in scope
59 |
60 | /// Add two value transformers
61 | public static func + (left: ValueTransformer, right: ValueTransformer) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
62 | return CompoundValueTransformer(transformers: [left, right])
63 | }
/host/spi-builder-workspace/Sources/Operators.swift:61:58: error: cannot find type 'ValueTransformer' in scope
59 |
60 | /// Add two value transformers
61 | public static func + (left: ValueTransformer, right: ValueTransformer) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
62 | return CompoundValueTransformer(transformers: [left, right])
63 | }
/host/spi-builder-workspace/Sources/Operators.swift:64:83: error: cannot find type 'ValueTransformer' in scope
62 | return CompoundValueTransformer(transformers: [left, right])
63 | }
64 | public static func + (left: ValueTransformer, right: ValueTransformerType) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
65 | return CompoundValueTransformer(transformers: [left, right.transformer])
66 | }
/host/spi-builder-workspace/Sources/Operators.swift:64:33: error: cannot find type 'ValueTransformer' in scope
62 | return CompoundValueTransformer(transformers: [left, right])
63 | }
64 | public static func + (left: ValueTransformer, right: ValueTransformerType) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
65 | return CompoundValueTransformer(transformers: [left, right.transformer])
66 | }
/host/spi-builder-workspace/Sources/Operators.swift:85:87: error: cannot find type 'ValueTransformer' in scope
83 | }
84 | extension ValueTransformerType {
85 | public static func + (left: ValueTransformerType, right: ValueTransformerType) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
86 | return CompoundValueTransformer(transformers: [left.transformer, right.transformer])
87 | }
/host/spi-builder-workspace/Sources/DateTransformers.swift:126:9: error: 'super' members cannot be referenced in a root class
124 | public init(formatter: DateFormatter) {
125 | self.formatter = formatter
126 | super.init()
| `- error: 'super' members cannot be referenced in a root class
127 | }
128 |
/host/spi-builder-workspace/Sources/EmptyTransformer.swift:22:24: error: method does not override any method from its superclass
20 | }
21 |
22 | open override func transformedValue(_ object: Any?) -> Any? {
| `- error: method does not override any method from its superclass
23 | guard let obj = object else {
24 | return ""
/host/spi-builder-workspace/Sources/EmptyTransformer.swift:12:36: error: cannot find type 'ValueTransformer' in scope
10 |
11 | /// Replace all nil object to ""
12 | open class EmptyStringTransformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
13 |
14 | open func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/EmptyTransformer.swift:44:24: error: method does not override any method from its superclass
42 | }
43 |
44 | open override func transformedValue(_ object: Any?) -> Any? {
| `- error: method does not override any method from its superclass
45 | guard let object = object else {
46 | return initClosure()
/host/spi-builder-workspace/Sources/EmptyTransformer.swift:32:30: error: cannot find type 'ValueTransformer' in scope
30 |
31 | /// Replace all nil object to a new object created using `initClosure`
32 | open class EmptyTransformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
33 |
34 | var initClosure: () -> Any
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:9:2: error: Objective-C interoperability is disabled
7 |
8 | /// Identity transformer do return the value without applying any transformation
9 | @objc(IdentityTransformer)
| `- error: Objective-C interoperability is disabled
10 | final public class IdentityTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
11 |
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:12:23: error: cannot find 'NSValueTransformerName' in scope
10 | final public class IdentityTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
11 |
12 | public var name = NSValueTransformerName(rawValue: "Identity")
| `- error: cannot find 'NSValueTransformerName' in scope
13 | public static let instance = IdentityTransformer()
14 |
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:13:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'IdentityTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// Identity transformer do return the value without applying any transformation
9 | @objc(IdentityTransformer)
10 | final public class IdentityTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
| `- note: class 'IdentityTransformer' does not conform to the 'Sendable' protocol
11 |
12 | public var name = NSValueTransformerName(rawValue: "Identity")
13 | public static let instance = IdentityTransformer()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'IdentityTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | public override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:15:32: error: method does not override any method from its superclass
13 | public static let instance = IdentityTransformer()
14 |
15 | public override class func transformedValueClass() -> AnyClass {
| `- error: method does not override any method from its superclass
16 | return NSObject.self
17 | }
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:19:32: error: method does not override any method from its superclass
17 | }
18 |
19 | public override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
20 | return true
21 | }
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:23:26: error: method does not override any method from its superclass
21 | }
22 |
23 | public override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
24 | return value
25 | }
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:27:26: error: method does not override any method from its superclass
25 | }
26 |
27 | public override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
28 | return value
29 | }
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:10:41: error: cannot find type 'ValueTransformer' in scope
8 | /// Identity transformer do return the value without applying any transformation
9 | @objc(IdentityTransformer)
10 | final public class IdentityTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
| `- error: cannot find type 'ValueTransformer' in scope
11 |
12 | public var name = NSValueTransformerName(rawValue: "Identity")
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:33:11: error: cannot find type 'ValueTransformer' in scope
31 | }
32 |
33 | extension ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
34 | /// Identity transformer do return the value without applying any transformation
35 | public static var identity: IdentityTransformer {
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:42:33: error: cannot find type 'ValueTransformer' in scope
40 | extension IdentityTransformer: ValueTransformerReversable {
41 |
42 | public var reverseInstance: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
43 | return self
44 | }
/host/spi-builder-workspace/Sources/ReverseValueTransformer.swift:34:26: error: cannot find type 'ValueTransformer' in scope
32 |
33 | public protocol ValueTransformerReversable {
34 | var reverseInstance: ValueTransformer {get}
| `- error: cannot find type 'ValueTransformer' in scope
35 | }
36 |
/host/spi-builder-workspace/Sources/ImageTransformers.swift:56:23: warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[ImageRepresentationTransformers]' may have shared mutable state; this is an error in the Swift 6 language mode
49 | #endif
50 |
51 | public enum ImageRepresentationTransformers: String, ReversableValueTransformers, ResersableValueTransformerType {
| `- note: consider making enum 'ImageRepresentationTransformers' conform to the 'Sendable' protocol
52 |
53 | case png
54 | case jpeg
55 |
56 | public static let transformers: [ImageRepresentationTransformers] = [.png, .jpeg]
| |- warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[ImageRepresentationTransformers]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'transformers' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 | public static var kJPEGRepresentationCompressionQuality: CGFloat = 0.85
/host/spi-builder-workspace/Sources/ImageTransformers.swift:58:62: error: cannot find type 'CGFloat' in scope
56 | public static let transformers: [ImageRepresentationTransformers] = [.png, .jpeg]
57 |
58 | public static var kJPEGRepresentationCompressionQuality: CGFloat = 0.85
| `- error: cannot find type 'CGFloat' in scope
59 |
60 | public static var namePrefix = "ImageRepresentation"
/host/spi-builder-workspace/Sources/ImageTransformers.swift:58:23: warning: static property 'kJPEGRepresentationCompressionQuality' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
56 | public static let transformers: [ImageRepresentationTransformers] = [.png, .jpeg]
57 |
58 | public static var kJPEGRepresentationCompressionQuality: CGFloat = 0.85
| |- warning: static property 'kJPEGRepresentationCompressionQuality' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'kJPEGRepresentationCompressionQuality' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'kJPEGRepresentationCompressionQuality' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | public static var namePrefix = "ImageRepresentation"
/host/spi-builder-workspace/Sources/ImageTransformers.swift:60:23: warning: static property 'namePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 | public static var kJPEGRepresentationCompressionQuality: CGFloat = 0.85
59 |
60 | public static var namePrefix = "ImageRepresentation"
| |- warning: static property 'namePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'namePrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'namePrefix' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | public static var reversableNamePrefix = "RepresentationToImage"
62 |
/host/spi-builder-workspace/Sources/ImageTransformers.swift:61:23: warning: static property 'reversableNamePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | public static var namePrefix = "ImageRepresentation"
61 | public static var reversableNamePrefix = "RepresentationToImage"
| |- warning: static property 'reversableNamePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'reversableNamePrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'reversableNamePrefix' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | public var name: NSValueTransformerName {
/host/spi-builder-workspace/Sources/ImageTransformers.swift:63:22: error: cannot find type 'NSValueTransformerName' in scope
61 | public static var reversableNamePrefix = "RepresentationToImage"
62 |
63 | public var name: NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
64 | return NSValueTransformerName(ImageRepresentationTransformers.namePrefix + self.rawValue.capitalized)
65 | }
/host/spi-builder-workspace/Sources/ImageTransformers.swift:84:77: error: cannot find type 'NSValueTransformerName' in scope
82 | }
83 |
84 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
85 | let newName = name.rawValue.replacingOccurrences(of: ImageRepresentationTransformers.namePrefix, with: ImageRepresentationTransformers.reversableNamePrefix)
86 | return NSValueTransformerName(newName)
/host/spi-builder-workspace/Sources/ImageTransformers.swift:84:50: error: cannot find type 'NSValueTransformerName' in scope
82 | }
83 |
84 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
85 | let newName = name.rawValue.replacingOccurrences(of: ImageRepresentationTransformers.namePrefix, with: ImageRepresentationTransformers.reversableNamePrefix)
86 | return NSValueTransformerName(newName)
/host/spi-builder-workspace/Sources/ImageTransformers.swift:68:37: error: cannot find type 'ValueImage' in scope
66 |
67 | public func transformedValue(_ value: Any?) -> Any? {
68 | guard let image = value as? ValueImage else {
| `- error: cannot find type 'ValueImage' in scope
69 | return nil
70 | }
/host/spi-builder-workspace/Sources/ImageTransformers.swift:72:27: error: cannot find 'ImagePNGRepresentation' in scope
70 | }
71 | switch self {
72 | case .png: return ImagePNGRepresentation(image)
| `- error: cannot find 'ImagePNGRepresentation' in scope
73 | case .jpeg: return ImageJPEGRepresentation(image, ImageRepresentationTransformers.kJPEGRepresentationCompressionQuality)
74 | }
/host/spi-builder-workspace/Sources/ImageTransformers.swift:73:28: error: cannot find 'ImageJPEGRepresentation' in scope
71 | switch self {
72 | case .png: return ImagePNGRepresentation(image)
73 | case .jpeg: return ImageJPEGRepresentation(image, ImageRepresentationTransformers.kJPEGRepresentationCompressionQuality)
| `- error: cannot find 'ImageJPEGRepresentation' in scope
74 | }
75 | }
/host/spi-builder-workspace/Sources/ImageTransformers.swift:78:36: error: cannot find type 'Data' in scope
76 |
77 | public func reverseTransformedValue(_ value: Any?) -> Any? {
78 | guard let data = value as? Data else {
| `- error: cannot find type 'Data' in scope
79 | return nil
80 | }
/host/spi-builder-workspace/Sources/ImageTransformers.swift:81:16: error: cannot find 'ValueImage' in scope
79 | return nil
80 | }
81 | return ValueImage.init(data: data)
| `- error: cannot find 'ValueImage' in scope
82 | }
83 |
[26/30] Compiling ValueTransformerKit IdentityTransformer.swift
/host/spi-builder-workspace/Sources/DateTransformers.swift:18:23: warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[DateTransformers]' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public enum DateTransformers: ReversableValueTransformers, ResersableValueTransformerType {
| `- note: consider making enum 'DateTransformers' conform to the 'Sendable' protocol
9 |
10 | case rfc822
:
16 | case dateFormat(String)
17 |
18 | public static let transformers: [DateTransformers] = [.rfc822, .short, .medium, .long, .full]
| |- warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[DateTransformers]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'transformers' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | public static var namePrefix = "Date"
/host/spi-builder-workspace/Sources/DateTransformers.swift:20:23: warning: static property 'namePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | public static let transformers: [DateTransformers] = [.rfc822, .short, .medium, .long, .full]
19 |
20 | public static var namePrefix = "Date"
| |- warning: static property 'namePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'namePrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'namePrefix' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public static var reversableNamePrefix = "StringToDate"
22 |
/host/spi-builder-workspace/Sources/DateTransformers.swift:21:23: warning: static property 'reversableNamePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | public static var namePrefix = "Date"
21 | public static var reversableNamePrefix = "StringToDate"
| |- warning: static property 'reversableNamePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'reversableNamePrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'reversableNamePrefix' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | public var formatter: DateFormatter {
/host/spi-builder-workspace/Sources/DateTransformers.swift:50:22: error: cannot find type 'NSValueTransformerName' in scope
48 | }
49 |
50 | public var name: NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
51 | return NSValueTransformerName(DateTransformers.namePrefix + self.description.capitalized)
52 | }
/host/spi-builder-workspace/Sources/DateTransformers.swift:68:77: error: cannot find type 'NSValueTransformerName' in scope
66 | }
67 |
68 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
69 | let newName = name.rawValue.replacingOccurrences(of: DateTransformers.namePrefix, with: DateTransformers.reversableNamePrefix)
70 | return NSValueTransformerName(newName)
/host/spi-builder-workspace/Sources/DateTransformers.swift:68:50: error: cannot find type 'NSValueTransformerName' in scope
66 | }
67 |
68 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
69 | let newName = name.rawValue.replacingOccurrences(of: DateTransformers.namePrefix, with: DateTransformers.reversableNamePrefix)
70 | return NSValueTransformerName(newName)
/host/spi-builder-workspace/Sources/ValueTransformers.swift:47:70: error: cannot find type 'NSValueTransformerName' in scope
45 |
46 | /// Return a name for reverse value transformer to register it.
47 | static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName
| `- error: cannot find type 'NSValueTransformerName' in scope
48 |
49 | }
/host/spi-builder-workspace/Sources/ValueTransformers.swift:47:43: error: cannot find type 'NSValueTransformerName' in scope
45 |
46 | /// Return a name for reverse value transformer to register it.
47 | static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName
| `- error: cannot find type 'NSValueTransformerName' in scope
48 |
49 | }
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:15:22: error: cannot find type 'ValueTransformer' in scope
13 |
14 | /// The value transformer to register.
15 | var transformer: ValueTransformer {get}
| `- error: cannot find type 'ValueTransformer' in scope
16 | /// The identifier to register the value transformer.
17 | var name: NSValueTransformerName {get}
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:17:15: error: cannot find type 'NSValueTransformerName' in scope
15 | var transformer: ValueTransformer {get}
16 | /// The identifier to register the value transformer.
17 | var name: NSValueTransformerName {get}
| `- error: cannot find type 'NSValueTransformerName' in scope
18 | }
19 |
/host/spi-builder-workspace/Sources/DateTransformers.swift:130:32: error: method does not override any method from its superclass
128 |
129 | // MARK: - ValueTransformer
130 | public override class func transformedValueClass() -> Swift.AnyClass {
| `- error: method does not override any method from its superclass
131 | return NSDate.self
132 | }
/host/spi-builder-workspace/Sources/DateTransformers.swift:134:32: error: method does not override any method from its superclass
132 | }
133 |
134 | public override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
135 | return true
136 | }
/host/spi-builder-workspace/Sources/DateTransformers.swift:138:26: error: method does not override any method from its superclass
136 | }
137 |
138 | public override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
139 | guard let date = value as? Date else {
140 | return nil
/host/spi-builder-workspace/Sources/DateTransformers.swift:145:26: error: method does not override any method from its superclass
143 | }
144 |
145 | public override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
146 | guard let string = value as? String else {
147 | return nil
/host/spi-builder-workspace/Sources/DateTransformers.swift:118:39: error: cannot find type 'ValueTransformer' in scope
116 |
117 | // MARK: - DateToStringTransformer Class
118 | public class DateToStringTransformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
119 |
120 | // MARK: - formatter
/host/spi-builder-workspace/Sources/Operators.swift:61:79: error: cannot find type 'ValueTransformer' in scope
59 |
60 | /// Add two value transformers
61 | public static func + (left: ValueTransformer, right: ValueTransformer) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
62 | return CompoundValueTransformer(transformers: [left, right])
63 | }
/host/spi-builder-workspace/Sources/Operators.swift:61:33: error: cannot find type 'ValueTransformer' in scope
59 |
60 | /// Add two value transformers
61 | public static func + (left: ValueTransformer, right: ValueTransformer) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
62 | return CompoundValueTransformer(transformers: [left, right])
63 | }
/host/spi-builder-workspace/Sources/Operators.swift:61:58: error: cannot find type 'ValueTransformer' in scope
59 |
60 | /// Add two value transformers
61 | public static func + (left: ValueTransformer, right: ValueTransformer) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
62 | return CompoundValueTransformer(transformers: [left, right])
63 | }
/host/spi-builder-workspace/Sources/Operators.swift:64:83: error: cannot find type 'ValueTransformer' in scope
62 | return CompoundValueTransformer(transformers: [left, right])
63 | }
64 | public static func + (left: ValueTransformer, right: ValueTransformerType) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
65 | return CompoundValueTransformer(transformers: [left, right.transformer])
66 | }
/host/spi-builder-workspace/Sources/Operators.swift:64:33: error: cannot find type 'ValueTransformer' in scope
62 | return CompoundValueTransformer(transformers: [left, right])
63 | }
64 | public static func + (left: ValueTransformer, right: ValueTransformerType) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
65 | return CompoundValueTransformer(transformers: [left, right.transformer])
66 | }
/host/spi-builder-workspace/Sources/Operators.swift:85:87: error: cannot find type 'ValueTransformer' in scope
83 | }
84 | extension ValueTransformerType {
85 | public static func + (left: ValueTransformerType, right: ValueTransformerType) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
86 | return CompoundValueTransformer(transformers: [left.transformer, right.transformer])
87 | }
/host/spi-builder-workspace/Sources/DateTransformers.swift:126:9: error: 'super' members cannot be referenced in a root class
124 | public init(formatter: DateFormatter) {
125 | self.formatter = formatter
126 | super.init()
| `- error: 'super' members cannot be referenced in a root class
127 | }
128 |
/host/spi-builder-workspace/Sources/EmptyTransformer.swift:22:24: error: method does not override any method from its superclass
20 | }
21 |
22 | open override func transformedValue(_ object: Any?) -> Any? {
| `- error: method does not override any method from its superclass
23 | guard let obj = object else {
24 | return ""
/host/spi-builder-workspace/Sources/EmptyTransformer.swift:12:36: error: cannot find type 'ValueTransformer' in scope
10 |
11 | /// Replace all nil object to ""
12 | open class EmptyStringTransformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
13 |
14 | open func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/EmptyTransformer.swift:44:24: error: method does not override any method from its superclass
42 | }
43 |
44 | open override func transformedValue(_ object: Any?) -> Any? {
| `- error: method does not override any method from its superclass
45 | guard let object = object else {
46 | return initClosure()
/host/spi-builder-workspace/Sources/EmptyTransformer.swift:32:30: error: cannot find type 'ValueTransformer' in scope
30 |
31 | /// Replace all nil object to a new object created using `initClosure`
32 | open class EmptyTransformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
33 |
34 | var initClosure: () -> Any
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:9:2: error: Objective-C interoperability is disabled
7 |
8 | /// Identity transformer do return the value without applying any transformation
9 | @objc(IdentityTransformer)
| `- error: Objective-C interoperability is disabled
10 | final public class IdentityTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
11 |
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:12:23: error: cannot find 'NSValueTransformerName' in scope
10 | final public class IdentityTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
11 |
12 | public var name = NSValueTransformerName(rawValue: "Identity")
| `- error: cannot find 'NSValueTransformerName' in scope
13 | public static let instance = IdentityTransformer()
14 |
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:13:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'IdentityTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// Identity transformer do return the value without applying any transformation
9 | @objc(IdentityTransformer)
10 | final public class IdentityTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
| `- note: class 'IdentityTransformer' does not conform to the 'Sendable' protocol
11 |
12 | public var name = NSValueTransformerName(rawValue: "Identity")
13 | public static let instance = IdentityTransformer()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'IdentityTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | public override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:15:32: error: method does not override any method from its superclass
13 | public static let instance = IdentityTransformer()
14 |
15 | public override class func transformedValueClass() -> AnyClass {
| `- error: method does not override any method from its superclass
16 | return NSObject.self
17 | }
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:19:32: error: method does not override any method from its superclass
17 | }
18 |
19 | public override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
20 | return true
21 | }
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:23:26: error: method does not override any method from its superclass
21 | }
22 |
23 | public override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
24 | return value
25 | }
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:27:26: error: method does not override any method from its superclass
25 | }
26 |
27 | public override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
28 | return value
29 | }
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:10:41: error: cannot find type 'ValueTransformer' in scope
8 | /// Identity transformer do return the value without applying any transformation
9 | @objc(IdentityTransformer)
10 | final public class IdentityTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
| `- error: cannot find type 'ValueTransformer' in scope
11 |
12 | public var name = NSValueTransformerName(rawValue: "Identity")
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:33:11: error: cannot find type 'ValueTransformer' in scope
31 | }
32 |
33 | extension ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
34 | /// Identity transformer do return the value without applying any transformation
35 | public static var identity: IdentityTransformer {
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:42:33: error: cannot find type 'ValueTransformer' in scope
40 | extension IdentityTransformer: ValueTransformerReversable {
41 |
42 | public var reverseInstance: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
43 | return self
44 | }
/host/spi-builder-workspace/Sources/ReverseValueTransformer.swift:34:26: error: cannot find type 'ValueTransformer' in scope
32 |
33 | public protocol ValueTransformerReversable {
34 | var reverseInstance: ValueTransformer {get}
| `- error: cannot find type 'ValueTransformer' in scope
35 | }
36 |
/host/spi-builder-workspace/Sources/ImageTransformers.swift:56:23: warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[ImageRepresentationTransformers]' may have shared mutable state; this is an error in the Swift 6 language mode
49 | #endif
50 |
51 | public enum ImageRepresentationTransformers: String, ReversableValueTransformers, ResersableValueTransformerType {
| `- note: consider making enum 'ImageRepresentationTransformers' conform to the 'Sendable' protocol
52 |
53 | case png
54 | case jpeg
55 |
56 | public static let transformers: [ImageRepresentationTransformers] = [.png, .jpeg]
| |- warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[ImageRepresentationTransformers]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'transformers' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 | public static var kJPEGRepresentationCompressionQuality: CGFloat = 0.85
/host/spi-builder-workspace/Sources/ImageTransformers.swift:58:62: error: cannot find type 'CGFloat' in scope
56 | public static let transformers: [ImageRepresentationTransformers] = [.png, .jpeg]
57 |
58 | public static var kJPEGRepresentationCompressionQuality: CGFloat = 0.85
| `- error: cannot find type 'CGFloat' in scope
59 |
60 | public static var namePrefix = "ImageRepresentation"
/host/spi-builder-workspace/Sources/ImageTransformers.swift:58:23: warning: static property 'kJPEGRepresentationCompressionQuality' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
56 | public static let transformers: [ImageRepresentationTransformers] = [.png, .jpeg]
57 |
58 | public static var kJPEGRepresentationCompressionQuality: CGFloat = 0.85
| |- warning: static property 'kJPEGRepresentationCompressionQuality' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'kJPEGRepresentationCompressionQuality' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'kJPEGRepresentationCompressionQuality' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | public static var namePrefix = "ImageRepresentation"
/host/spi-builder-workspace/Sources/ImageTransformers.swift:60:23: warning: static property 'namePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 | public static var kJPEGRepresentationCompressionQuality: CGFloat = 0.85
59 |
60 | public static var namePrefix = "ImageRepresentation"
| |- warning: static property 'namePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'namePrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'namePrefix' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | public static var reversableNamePrefix = "RepresentationToImage"
62 |
/host/spi-builder-workspace/Sources/ImageTransformers.swift:61:23: warning: static property 'reversableNamePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | public static var namePrefix = "ImageRepresentation"
61 | public static var reversableNamePrefix = "RepresentationToImage"
| |- warning: static property 'reversableNamePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'reversableNamePrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'reversableNamePrefix' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | public var name: NSValueTransformerName {
/host/spi-builder-workspace/Sources/ImageTransformers.swift:63:22: error: cannot find type 'NSValueTransformerName' in scope
61 | public static var reversableNamePrefix = "RepresentationToImage"
62 |
63 | public var name: NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
64 | return NSValueTransformerName(ImageRepresentationTransformers.namePrefix + self.rawValue.capitalized)
65 | }
/host/spi-builder-workspace/Sources/ImageTransformers.swift:84:77: error: cannot find type 'NSValueTransformerName' in scope
82 | }
83 |
84 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
85 | let newName = name.rawValue.replacingOccurrences(of: ImageRepresentationTransformers.namePrefix, with: ImageRepresentationTransformers.reversableNamePrefix)
86 | return NSValueTransformerName(newName)
/host/spi-builder-workspace/Sources/ImageTransformers.swift:84:50: error: cannot find type 'NSValueTransformerName' in scope
82 | }
83 |
84 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
85 | let newName = name.rawValue.replacingOccurrences(of: ImageRepresentationTransformers.namePrefix, with: ImageRepresentationTransformers.reversableNamePrefix)
86 | return NSValueTransformerName(newName)
/host/spi-builder-workspace/Sources/ImageTransformers.swift:68:37: error: cannot find type 'ValueImage' in scope
66 |
67 | public func transformedValue(_ value: Any?) -> Any? {
68 | guard let image = value as? ValueImage else {
| `- error: cannot find type 'ValueImage' in scope
69 | return nil
70 | }
/host/spi-builder-workspace/Sources/ImageTransformers.swift:72:27: error: cannot find 'ImagePNGRepresentation' in scope
70 | }
71 | switch self {
72 | case .png: return ImagePNGRepresentation(image)
| `- error: cannot find 'ImagePNGRepresentation' in scope
73 | case .jpeg: return ImageJPEGRepresentation(image, ImageRepresentationTransformers.kJPEGRepresentationCompressionQuality)
74 | }
/host/spi-builder-workspace/Sources/ImageTransformers.swift:73:28: error: cannot find 'ImageJPEGRepresentation' in scope
71 | switch self {
72 | case .png: return ImagePNGRepresentation(image)
73 | case .jpeg: return ImageJPEGRepresentation(image, ImageRepresentationTransformers.kJPEGRepresentationCompressionQuality)
| `- error: cannot find 'ImageJPEGRepresentation' in scope
74 | }
75 | }
/host/spi-builder-workspace/Sources/ImageTransformers.swift:78:36: error: cannot find type 'Data' in scope
76 |
77 | public func reverseTransformedValue(_ value: Any?) -> Any? {
78 | guard let data = value as? Data else {
| `- error: cannot find type 'Data' in scope
79 | return nil
80 | }
/host/spi-builder-workspace/Sources/ImageTransformers.swift:81:16: error: cannot find 'ValueImage' in scope
79 | return nil
80 | }
81 | return ValueImage.init(data: data)
| `- error: cannot find 'ValueImage' in scope
82 | }
83 |
[27/30] Compiling ValueTransformerKit ImageTransformers.swift
/host/spi-builder-workspace/Sources/DateTransformers.swift:18:23: warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[DateTransformers]' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public enum DateTransformers: ReversableValueTransformers, ResersableValueTransformerType {
| `- note: consider making enum 'DateTransformers' conform to the 'Sendable' protocol
9 |
10 | case rfc822
:
16 | case dateFormat(String)
17 |
18 | public static let transformers: [DateTransformers] = [.rfc822, .short, .medium, .long, .full]
| |- warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[DateTransformers]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'transformers' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | public static var namePrefix = "Date"
/host/spi-builder-workspace/Sources/DateTransformers.swift:20:23: warning: static property 'namePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | public static let transformers: [DateTransformers] = [.rfc822, .short, .medium, .long, .full]
19 |
20 | public static var namePrefix = "Date"
| |- warning: static property 'namePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'namePrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'namePrefix' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public static var reversableNamePrefix = "StringToDate"
22 |
/host/spi-builder-workspace/Sources/DateTransformers.swift:21:23: warning: static property 'reversableNamePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | public static var namePrefix = "Date"
21 | public static var reversableNamePrefix = "StringToDate"
| |- warning: static property 'reversableNamePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'reversableNamePrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'reversableNamePrefix' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | public var formatter: DateFormatter {
/host/spi-builder-workspace/Sources/DateTransformers.swift:50:22: error: cannot find type 'NSValueTransformerName' in scope
48 | }
49 |
50 | public var name: NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
51 | return NSValueTransformerName(DateTransformers.namePrefix + self.description.capitalized)
52 | }
/host/spi-builder-workspace/Sources/DateTransformers.swift:68:77: error: cannot find type 'NSValueTransformerName' in scope
66 | }
67 |
68 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
69 | let newName = name.rawValue.replacingOccurrences(of: DateTransformers.namePrefix, with: DateTransformers.reversableNamePrefix)
70 | return NSValueTransformerName(newName)
/host/spi-builder-workspace/Sources/DateTransformers.swift:68:50: error: cannot find type 'NSValueTransformerName' in scope
66 | }
67 |
68 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
69 | let newName = name.rawValue.replacingOccurrences(of: DateTransformers.namePrefix, with: DateTransformers.reversableNamePrefix)
70 | return NSValueTransformerName(newName)
/host/spi-builder-workspace/Sources/ValueTransformers.swift:47:70: error: cannot find type 'NSValueTransformerName' in scope
45 |
46 | /// Return a name for reverse value transformer to register it.
47 | static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName
| `- error: cannot find type 'NSValueTransformerName' in scope
48 |
49 | }
/host/spi-builder-workspace/Sources/ValueTransformers.swift:47:43: error: cannot find type 'NSValueTransformerName' in scope
45 |
46 | /// Return a name for reverse value transformer to register it.
47 | static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName
| `- error: cannot find type 'NSValueTransformerName' in scope
48 |
49 | }
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:15:22: error: cannot find type 'ValueTransformer' in scope
13 |
14 | /// The value transformer to register.
15 | var transformer: ValueTransformer {get}
| `- error: cannot find type 'ValueTransformer' in scope
16 | /// The identifier to register the value transformer.
17 | var name: NSValueTransformerName {get}
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:17:15: error: cannot find type 'NSValueTransformerName' in scope
15 | var transformer: ValueTransformer {get}
16 | /// The identifier to register the value transformer.
17 | var name: NSValueTransformerName {get}
| `- error: cannot find type 'NSValueTransformerName' in scope
18 | }
19 |
/host/spi-builder-workspace/Sources/DateTransformers.swift:130:32: error: method does not override any method from its superclass
128 |
129 | // MARK: - ValueTransformer
130 | public override class func transformedValueClass() -> Swift.AnyClass {
| `- error: method does not override any method from its superclass
131 | return NSDate.self
132 | }
/host/spi-builder-workspace/Sources/DateTransformers.swift:134:32: error: method does not override any method from its superclass
132 | }
133 |
134 | public override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
135 | return true
136 | }
/host/spi-builder-workspace/Sources/DateTransformers.swift:138:26: error: method does not override any method from its superclass
136 | }
137 |
138 | public override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
139 | guard let date = value as? Date else {
140 | return nil
/host/spi-builder-workspace/Sources/DateTransformers.swift:145:26: error: method does not override any method from its superclass
143 | }
144 |
145 | public override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
146 | guard let string = value as? String else {
147 | return nil
/host/spi-builder-workspace/Sources/DateTransformers.swift:118:39: error: cannot find type 'ValueTransformer' in scope
116 |
117 | // MARK: - DateToStringTransformer Class
118 | public class DateToStringTransformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
119 |
120 | // MARK: - formatter
/host/spi-builder-workspace/Sources/Operators.swift:61:79: error: cannot find type 'ValueTransformer' in scope
59 |
60 | /// Add two value transformers
61 | public static func + (left: ValueTransformer, right: ValueTransformer) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
62 | return CompoundValueTransformer(transformers: [left, right])
63 | }
/host/spi-builder-workspace/Sources/Operators.swift:61:33: error: cannot find type 'ValueTransformer' in scope
59 |
60 | /// Add two value transformers
61 | public static func + (left: ValueTransformer, right: ValueTransformer) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
62 | return CompoundValueTransformer(transformers: [left, right])
63 | }
/host/spi-builder-workspace/Sources/Operators.swift:61:58: error: cannot find type 'ValueTransformer' in scope
59 |
60 | /// Add two value transformers
61 | public static func + (left: ValueTransformer, right: ValueTransformer) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
62 | return CompoundValueTransformer(transformers: [left, right])
63 | }
/host/spi-builder-workspace/Sources/Operators.swift:64:83: error: cannot find type 'ValueTransformer' in scope
62 | return CompoundValueTransformer(transformers: [left, right])
63 | }
64 | public static func + (left: ValueTransformer, right: ValueTransformerType) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
65 | return CompoundValueTransformer(transformers: [left, right.transformer])
66 | }
/host/spi-builder-workspace/Sources/Operators.swift:64:33: error: cannot find type 'ValueTransformer' in scope
62 | return CompoundValueTransformer(transformers: [left, right])
63 | }
64 | public static func + (left: ValueTransformer, right: ValueTransformerType) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
65 | return CompoundValueTransformer(transformers: [left, right.transformer])
66 | }
/host/spi-builder-workspace/Sources/Operators.swift:85:87: error: cannot find type 'ValueTransformer' in scope
83 | }
84 | extension ValueTransformerType {
85 | public static func + (left: ValueTransformerType, right: ValueTransformerType) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
86 | return CompoundValueTransformer(transformers: [left.transformer, right.transformer])
87 | }
/host/spi-builder-workspace/Sources/DateTransformers.swift:126:9: error: 'super' members cannot be referenced in a root class
124 | public init(formatter: DateFormatter) {
125 | self.formatter = formatter
126 | super.init()
| `- error: 'super' members cannot be referenced in a root class
127 | }
128 |
/host/spi-builder-workspace/Sources/EmptyTransformer.swift:22:24: error: method does not override any method from its superclass
20 | }
21 |
22 | open override func transformedValue(_ object: Any?) -> Any? {
| `- error: method does not override any method from its superclass
23 | guard let obj = object else {
24 | return ""
/host/spi-builder-workspace/Sources/EmptyTransformer.swift:12:36: error: cannot find type 'ValueTransformer' in scope
10 |
11 | /// Replace all nil object to ""
12 | open class EmptyStringTransformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
13 |
14 | open func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/EmptyTransformer.swift:44:24: error: method does not override any method from its superclass
42 | }
43 |
44 | open override func transformedValue(_ object: Any?) -> Any? {
| `- error: method does not override any method from its superclass
45 | guard let object = object else {
46 | return initClosure()
/host/spi-builder-workspace/Sources/EmptyTransformer.swift:32:30: error: cannot find type 'ValueTransformer' in scope
30 |
31 | /// Replace all nil object to a new object created using `initClosure`
32 | open class EmptyTransformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
33 |
34 | var initClosure: () -> Any
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:9:2: error: Objective-C interoperability is disabled
7 |
8 | /// Identity transformer do return the value without applying any transformation
9 | @objc(IdentityTransformer)
| `- error: Objective-C interoperability is disabled
10 | final public class IdentityTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
11 |
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:12:23: error: cannot find 'NSValueTransformerName' in scope
10 | final public class IdentityTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
11 |
12 | public var name = NSValueTransformerName(rawValue: "Identity")
| `- error: cannot find 'NSValueTransformerName' in scope
13 | public static let instance = IdentityTransformer()
14 |
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:13:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'IdentityTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// Identity transformer do return the value without applying any transformation
9 | @objc(IdentityTransformer)
10 | final public class IdentityTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
| `- note: class 'IdentityTransformer' does not conform to the 'Sendable' protocol
11 |
12 | public var name = NSValueTransformerName(rawValue: "Identity")
13 | public static let instance = IdentityTransformer()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'IdentityTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | public override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:15:32: error: method does not override any method from its superclass
13 | public static let instance = IdentityTransformer()
14 |
15 | public override class func transformedValueClass() -> AnyClass {
| `- error: method does not override any method from its superclass
16 | return NSObject.self
17 | }
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:19:32: error: method does not override any method from its superclass
17 | }
18 |
19 | public override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
20 | return true
21 | }
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:23:26: error: method does not override any method from its superclass
21 | }
22 |
23 | public override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
24 | return value
25 | }
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:27:26: error: method does not override any method from its superclass
25 | }
26 |
27 | public override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
28 | return value
29 | }
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:10:41: error: cannot find type 'ValueTransformer' in scope
8 | /// Identity transformer do return the value without applying any transformation
9 | @objc(IdentityTransformer)
10 | final public class IdentityTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
| `- error: cannot find type 'ValueTransformer' in scope
11 |
12 | public var name = NSValueTransformerName(rawValue: "Identity")
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:33:11: error: cannot find type 'ValueTransformer' in scope
31 | }
32 |
33 | extension ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
34 | /// Identity transformer do return the value without applying any transformation
35 | public static var identity: IdentityTransformer {
/host/spi-builder-workspace/Sources/IdentityTransformer.swift:42:33: error: cannot find type 'ValueTransformer' in scope
40 | extension IdentityTransformer: ValueTransformerReversable {
41 |
42 | public var reverseInstance: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
43 | return self
44 | }
/host/spi-builder-workspace/Sources/ReverseValueTransformer.swift:34:26: error: cannot find type 'ValueTransformer' in scope
32 |
33 | public protocol ValueTransformerReversable {
34 | var reverseInstance: ValueTransformer {get}
| `- error: cannot find type 'ValueTransformer' in scope
35 | }
36 |
/host/spi-builder-workspace/Sources/ImageTransformers.swift:56:23: warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[ImageRepresentationTransformers]' may have shared mutable state; this is an error in the Swift 6 language mode
49 | #endif
50 |
51 | public enum ImageRepresentationTransformers: String, ReversableValueTransformers, ResersableValueTransformerType {
| `- note: consider making enum 'ImageRepresentationTransformers' conform to the 'Sendable' protocol
52 |
53 | case png
54 | case jpeg
55 |
56 | public static let transformers: [ImageRepresentationTransformers] = [.png, .jpeg]
| |- warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[ImageRepresentationTransformers]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'transformers' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 | public static var kJPEGRepresentationCompressionQuality: CGFloat = 0.85
/host/spi-builder-workspace/Sources/ImageTransformers.swift:58:62: error: cannot find type 'CGFloat' in scope
56 | public static let transformers: [ImageRepresentationTransformers] = [.png, .jpeg]
57 |
58 | public static var kJPEGRepresentationCompressionQuality: CGFloat = 0.85
| `- error: cannot find type 'CGFloat' in scope
59 |
60 | public static var namePrefix = "ImageRepresentation"
/host/spi-builder-workspace/Sources/ImageTransformers.swift:58:23: warning: static property 'kJPEGRepresentationCompressionQuality' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
56 | public static let transformers: [ImageRepresentationTransformers] = [.png, .jpeg]
57 |
58 | public static var kJPEGRepresentationCompressionQuality: CGFloat = 0.85
| |- warning: static property 'kJPEGRepresentationCompressionQuality' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'kJPEGRepresentationCompressionQuality' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'kJPEGRepresentationCompressionQuality' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | public static var namePrefix = "ImageRepresentation"
/host/spi-builder-workspace/Sources/ImageTransformers.swift:60:23: warning: static property 'namePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 | public static var kJPEGRepresentationCompressionQuality: CGFloat = 0.85
59 |
60 | public static var namePrefix = "ImageRepresentation"
| |- warning: static property 'namePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'namePrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'namePrefix' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | public static var reversableNamePrefix = "RepresentationToImage"
62 |
/host/spi-builder-workspace/Sources/ImageTransformers.swift:61:23: warning: static property 'reversableNamePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | public static var namePrefix = "ImageRepresentation"
61 | public static var reversableNamePrefix = "RepresentationToImage"
| |- warning: static property 'reversableNamePrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'reversableNamePrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'reversableNamePrefix' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | public var name: NSValueTransformerName {
/host/spi-builder-workspace/Sources/ImageTransformers.swift:63:22: error: cannot find type 'NSValueTransformerName' in scope
61 | public static var reversableNamePrefix = "RepresentationToImage"
62 |
63 | public var name: NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
64 | return NSValueTransformerName(ImageRepresentationTransformers.namePrefix + self.rawValue.capitalized)
65 | }
/host/spi-builder-workspace/Sources/ImageTransformers.swift:84:77: error: cannot find type 'NSValueTransformerName' in scope
82 | }
83 |
84 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
85 | let newName = name.rawValue.replacingOccurrences(of: ImageRepresentationTransformers.namePrefix, with: ImageRepresentationTransformers.reversableNamePrefix)
86 | return NSValueTransformerName(newName)
/host/spi-builder-workspace/Sources/ImageTransformers.swift:84:50: error: cannot find type 'NSValueTransformerName' in scope
82 | }
83 |
84 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
85 | let newName = name.rawValue.replacingOccurrences(of: ImageRepresentationTransformers.namePrefix, with: ImageRepresentationTransformers.reversableNamePrefix)
86 | return NSValueTransformerName(newName)
/host/spi-builder-workspace/Sources/ImageTransformers.swift:68:37: error: cannot find type 'ValueImage' in scope
66 |
67 | public func transformedValue(_ value: Any?) -> Any? {
68 | guard let image = value as? ValueImage else {
| `- error: cannot find type 'ValueImage' in scope
69 | return nil
70 | }
/host/spi-builder-workspace/Sources/ImageTransformers.swift:72:27: error: cannot find 'ImagePNGRepresentation' in scope
70 | }
71 | switch self {
72 | case .png: return ImagePNGRepresentation(image)
| `- error: cannot find 'ImagePNGRepresentation' in scope
73 | case .jpeg: return ImageJPEGRepresentation(image, ImageRepresentationTransformers.kJPEGRepresentationCompressionQuality)
74 | }
/host/spi-builder-workspace/Sources/ImageTransformers.swift:73:28: error: cannot find 'ImageJPEGRepresentation' in scope
71 | switch self {
72 | case .png: return ImagePNGRepresentation(image)
73 | case .jpeg: return ImageJPEGRepresentation(image, ImageRepresentationTransformers.kJPEGRepresentationCompressionQuality)
| `- error: cannot find 'ImageJPEGRepresentation' in scope
74 | }
75 | }
/host/spi-builder-workspace/Sources/ImageTransformers.swift:78:36: error: cannot find type 'Data' in scope
76 |
77 | public func reverseTransformedValue(_ value: Any?) -> Any? {
78 | guard let data = value as? Data else {
| `- error: cannot find type 'Data' in scope
79 | return nil
80 | }
/host/spi-builder-workspace/Sources/ImageTransformers.swift:81:16: error: cannot find 'ValueImage' in scope
79 | return nil
80 | }
81 | return ValueImage.init(data: data)
| `- error: cannot find 'ValueImage' in scope
82 | }
83 |
[28/30] Compiling ValueTransformerKit ValueTransformerRegisterable.swift
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:15:22: error: cannot find type 'ValueTransformer' in scope
13 |
14 | /// The value transformer to register.
15 | var transformer: ValueTransformer {get}
| `- error: cannot find type 'ValueTransformer' in scope
16 | /// The identifier to register the value transformer.
17 | var name: NSValueTransformerName {get}
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:17:15: error: cannot find type 'NSValueTransformerName' in scope
15 | var transformer: ValueTransformer {get}
16 | /// The identifier to register the value transformer.
17 | var name: NSValueTransformerName {get}
| `- error: cannot find type 'NSValueTransformerName' in scope
18 | }
19 |
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:29:52: error: cannot find type 'ValueTransformer' in scope
27 | }
28 |
29 | extension ValueTransformerRegisterable where Self: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
30 | public var transformer: ValueTransformer {
31 | return self
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:30:29: error: cannot find type 'ValueTransformer' in scope
28 |
29 | extension ValueTransformerRegisterable where Self: ValueTransformer {
30 | public var transformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
31 | return self
32 | }
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:35:11: error: cannot find type 'ValueTransformer' in scope
33 | }
34 |
35 | extension ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
36 |
37 | /// Registers this value transformer with a given identifier.
/host/spi-builder-workspace/Sources/ValueTransformerType.swift:18:29: error: cannot find type 'ValueTransformer' in scope
16 | extension ValueTransformerType {
17 | /// Return a `ValueTransformer`
18 | public var transformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
19 | return ValueTransformer.closure(forwardTransformer: self.transformedValue)
20 | }
/host/spi-builder-workspace/Sources/ValueTransformerType.swift:30:29: error: cannot find type 'ValueTransformer' in scope
28 | extension ResersableValueTransformerType {
29 | /// Return a `ValueTransformer`
30 | public var transformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
31 | return ValueTransformer.closure(forwardTransformer: self.transformedValue, reverseTransformer: self.reverseTransformedValue)
32 | }
/host/spi-builder-workspace/Sources/ValueTransformerType.swift:35:11: error: cannot find type 'ValueTransformer' in scope
33 | }
34 |
35 | extension ValueTransformer: ResersableValueTransformerType {
| `- error: cannot find type 'ValueTransformer' in scope
36 | /// Return self
37 | public var transformer: ValueTransformer {
/host/spi-builder-workspace/Sources/ValueTransformers.swift:47:70: error: cannot find type 'NSValueTransformerName' in scope
45 |
46 | /// Return a name for reverse value transformer to register it.
47 | static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName
| `- error: cannot find type 'NSValueTransformerName' in scope
48 |
49 | }
/host/spi-builder-workspace/Sources/ValueTransformers.swift:47:43: error: cannot find type 'NSValueTransformerName' in scope
45 |
46 | /// Return a name for reverse value transformer to register it.
47 | static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName
| `- error: cannot find type 'NSValueTransformerName' in scope
48 |
49 | }
/host/spi-builder-workspace/Sources/ReverseValueTransformer.swift:14:30: error: cannot find type 'ValueTransformer' in scope
12 | let toReverse: ValueTransformer
13 |
14 | public init(transformer: ValueTransformer) {
| `- error: cannot find type 'ValueTransformer' in scope
15 | self.toReverse = transformer
16 | assert(transformer.classForCoder.allowsReverseTransformation())
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:38:51: error: cannot find type 'NSValueTransformerName' in scope
36 |
37 | /// Registers this value transformer with a given identifier.
38 | public func setValueTransformer(forName name: NSValueTransformerName) {
| `- error: cannot find type 'NSValueTransformerName' in scope
39 | assert(ValueTransformer(forName: name) == nil)
40 | ValueTransformer.setValueTransformer(self, forName: name)
/host/spi-builder-workspace/Sources/ValueTransformerType.swift:37:29: error: cannot find type 'ValueTransformer' in scope
35 | extension ValueTransformer: ResersableValueTransformerType {
36 | /// Return self
37 | public var transformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
38 | return self
39 | }
[29/30] Compiling ValueTransformerKit ValueTransformerType.swift
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:15:22: error: cannot find type 'ValueTransformer' in scope
13 |
14 | /// The value transformer to register.
15 | var transformer: ValueTransformer {get}
| `- error: cannot find type 'ValueTransformer' in scope
16 | /// The identifier to register the value transformer.
17 | var name: NSValueTransformerName {get}
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:17:15: error: cannot find type 'NSValueTransformerName' in scope
15 | var transformer: ValueTransformer {get}
16 | /// The identifier to register the value transformer.
17 | var name: NSValueTransformerName {get}
| `- error: cannot find type 'NSValueTransformerName' in scope
18 | }
19 |
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:29:52: error: cannot find type 'ValueTransformer' in scope
27 | }
28 |
29 | extension ValueTransformerRegisterable where Self: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
30 | public var transformer: ValueTransformer {
31 | return self
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:30:29: error: cannot find type 'ValueTransformer' in scope
28 |
29 | extension ValueTransformerRegisterable where Self: ValueTransformer {
30 | public var transformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
31 | return self
32 | }
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:35:11: error: cannot find type 'ValueTransformer' in scope
33 | }
34 |
35 | extension ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
36 |
37 | /// Registers this value transformer with a given identifier.
/host/spi-builder-workspace/Sources/ValueTransformerType.swift:18:29: error: cannot find type 'ValueTransformer' in scope
16 | extension ValueTransformerType {
17 | /// Return a `ValueTransformer`
18 | public var transformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
19 | return ValueTransformer.closure(forwardTransformer: self.transformedValue)
20 | }
/host/spi-builder-workspace/Sources/ValueTransformerType.swift:30:29: error: cannot find type 'ValueTransformer' in scope
28 | extension ResersableValueTransformerType {
29 | /// Return a `ValueTransformer`
30 | public var transformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
31 | return ValueTransformer.closure(forwardTransformer: self.transformedValue, reverseTransformer: self.reverseTransformedValue)
32 | }
/host/spi-builder-workspace/Sources/ValueTransformerType.swift:35:11: error: cannot find type 'ValueTransformer' in scope
33 | }
34 |
35 | extension ValueTransformer: ResersableValueTransformerType {
| `- error: cannot find type 'ValueTransformer' in scope
36 | /// Return self
37 | public var transformer: ValueTransformer {
/host/spi-builder-workspace/Sources/ValueTransformers.swift:47:70: error: cannot find type 'NSValueTransformerName' in scope
45 |
46 | /// Return a name for reverse value transformer to register it.
47 | static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName
| `- error: cannot find type 'NSValueTransformerName' in scope
48 |
49 | }
/host/spi-builder-workspace/Sources/ValueTransformers.swift:47:43: error: cannot find type 'NSValueTransformerName' in scope
45 |
46 | /// Return a name for reverse value transformer to register it.
47 | static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName
| `- error: cannot find type 'NSValueTransformerName' in scope
48 |
49 | }
/host/spi-builder-workspace/Sources/ReverseValueTransformer.swift:14:30: error: cannot find type 'ValueTransformer' in scope
12 | let toReverse: ValueTransformer
13 |
14 | public init(transformer: ValueTransformer) {
| `- error: cannot find type 'ValueTransformer' in scope
15 | self.toReverse = transformer
16 | assert(transformer.classForCoder.allowsReverseTransformation())
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:38:51: error: cannot find type 'NSValueTransformerName' in scope
36 |
37 | /// Registers this value transformer with a given identifier.
38 | public func setValueTransformer(forName name: NSValueTransformerName) {
| `- error: cannot find type 'NSValueTransformerName' in scope
39 | assert(ValueTransformer(forName: name) == nil)
40 | ValueTransformer.setValueTransformer(self, forName: name)
/host/spi-builder-workspace/Sources/ValueTransformerType.swift:37:29: error: cannot find type 'ValueTransformer' in scope
35 | extension ValueTransformer: ResersableValueTransformerType {
36 | /// Return self
37 | public var transformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
38 | return self
39 | }
[30/30] Compiling ValueTransformerKit ValueTransformers.swift
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:15:22: error: cannot find type 'ValueTransformer' in scope
13 |
14 | /// The value transformer to register.
15 | var transformer: ValueTransformer {get}
| `- error: cannot find type 'ValueTransformer' in scope
16 | /// The identifier to register the value transformer.
17 | var name: NSValueTransformerName {get}
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:17:15: error: cannot find type 'NSValueTransformerName' in scope
15 | var transformer: ValueTransformer {get}
16 | /// The identifier to register the value transformer.
17 | var name: NSValueTransformerName {get}
| `- error: cannot find type 'NSValueTransformerName' in scope
18 | }
19 |
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:29:52: error: cannot find type 'ValueTransformer' in scope
27 | }
28 |
29 | extension ValueTransformerRegisterable where Self: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
30 | public var transformer: ValueTransformer {
31 | return self
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:30:29: error: cannot find type 'ValueTransformer' in scope
28 |
29 | extension ValueTransformerRegisterable where Self: ValueTransformer {
30 | public var transformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
31 | return self
32 | }
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:35:11: error: cannot find type 'ValueTransformer' in scope
33 | }
34 |
35 | extension ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
36 |
37 | /// Registers this value transformer with a given identifier.
/host/spi-builder-workspace/Sources/ValueTransformerType.swift:18:29: error: cannot find type 'ValueTransformer' in scope
16 | extension ValueTransformerType {
17 | /// Return a `ValueTransformer`
18 | public var transformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
19 | return ValueTransformer.closure(forwardTransformer: self.transformedValue)
20 | }
/host/spi-builder-workspace/Sources/ValueTransformerType.swift:30:29: error: cannot find type 'ValueTransformer' in scope
28 | extension ResersableValueTransformerType {
29 | /// Return a `ValueTransformer`
30 | public var transformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
31 | return ValueTransformer.closure(forwardTransformer: self.transformedValue, reverseTransformer: self.reverseTransformedValue)
32 | }
/host/spi-builder-workspace/Sources/ValueTransformerType.swift:35:11: error: cannot find type 'ValueTransformer' in scope
33 | }
34 |
35 | extension ValueTransformer: ResersableValueTransformerType {
| `- error: cannot find type 'ValueTransformer' in scope
36 | /// Return self
37 | public var transformer: ValueTransformer {
/host/spi-builder-workspace/Sources/ValueTransformers.swift:47:70: error: cannot find type 'NSValueTransformerName' in scope
45 |
46 | /// Return a name for reverse value transformer to register it.
47 | static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName
| `- error: cannot find type 'NSValueTransformerName' in scope
48 |
49 | }
/host/spi-builder-workspace/Sources/ValueTransformers.swift:47:43: error: cannot find type 'NSValueTransformerName' in scope
45 |
46 | /// Return a name for reverse value transformer to register it.
47 | static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName
| `- error: cannot find type 'NSValueTransformerName' in scope
48 |
49 | }
/host/spi-builder-workspace/Sources/ReverseValueTransformer.swift:14:30: error: cannot find type 'ValueTransformer' in scope
12 | let toReverse: ValueTransformer
13 |
14 | public init(transformer: ValueTransformer) {
| `- error: cannot find type 'ValueTransformer' in scope
15 | self.toReverse = transformer
16 | assert(transformer.classForCoder.allowsReverseTransformation())
/host/spi-builder-workspace/Sources/ValueTransformerRegisterable.swift:38:51: error: cannot find type 'NSValueTransformerName' in scope
36 |
37 | /// Registers this value transformer with a given identifier.
38 | public func setValueTransformer(forName name: NSValueTransformerName) {
| `- error: cannot find type 'NSValueTransformerName' in scope
39 | assert(ValueTransformer(forName: name) == nil)
40 | ValueTransformer.setValueTransformer(self, forName: name)
/host/spi-builder-workspace/Sources/ValueTransformerType.swift:37:29: error: cannot find type 'ValueTransformer' in scope
35 | extension ValueTransformer: ResersableValueTransformerType {
36 | /// Return self
37 | public var transformer: ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
38 | return self
39 | }
BUILD FAILURE 6.0 linux