Build Information
Failed to build ValueTransformerKit, reference master (8f40b1
), with Swift 6.0 for Linux on 29 Nov 2024 07:08:21 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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
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 |
[20/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 |
[21/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 |
[22/30] Compiling ValueTransformerKit StringToDataTransformer.swift
/host/spi-builder-workspace/Sources/StringToDataTransformer.swift:12:20: error: cannot find type 'NSValueTransformerName' in scope
10 | let encoding: String.Encoding
11 |
12 | open var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "StringToData\(encoding.descriptionForTransformer.capitalized)") }
| `- error: cannot find type 'NSValueTransformerName' in scope
13 |
14 | public init(encoding: String.Encoding = .utf8) {
/host/spi-builder-workspace/Sources/StringToDataTransformer.swift:18:30: error: method does not override any method from its superclass
16 | }
17 |
18 | open override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
19 | return true
20 | }
/host/spi-builder-workspace/Sources/StringToDataTransformer.swift:22:30: error: method does not override any method from its superclass
20 | }
21 |
22 | open override class func transformedValueClass() -> AnyClass {
| `- error: method does not override any method from its superclass
23 | return NSString.self
24 | }
/host/spi-builder-workspace/Sources/StringToDataTransformer.swift:26:24: error: method does not override any method from its superclass
24 | }
25 |
26 | open override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
27 | if let string = value as? String {
28 | return string.data(using: encoding)
/host/spi-builder-workspace/Sources/StringToDataTransformer.swift:34:24: error: method does not override any method from its superclass
32 | }
33 |
34 | open override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
35 | if let data = value as? Data {
36 | return String(data: data, encoding: encoding)
/host/spi-builder-workspace/Sources/StringToDataTransformer.swift:8:37: error: cannot find type 'ValueTransformer' in scope
6 | import Foundation
7 |
8 | open class StringToDataTransformer: ValueTransformer, ValueTransformerRegisterable {
| `- error: cannot find type 'ValueTransformer' in scope
9 |
10 | let encoding: String.Encoding
/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/StringToDataTransformer.swift:46:29: error: cannot find type 'NSValueTransformerName' in scope
44 | open class DataToStringTransformer: StringToDataTransformer {
45 |
46 | open override var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "DataToString\(encoding.descriptionForTransformer.capitalized)") }
| `- error: cannot find type 'NSValueTransformerName' in scope
47 |
48 | open override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/StringToDataTransformer.swift:46:23: error: property does not override any property from its superclass
44 | open class DataToStringTransformer: StringToDataTransformer {
45 |
46 | open override var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "DataToString\(encoding.descriptionForTransformer.capitalized)") }
| `- error: property does not override any property from its superclass
47 |
48 | open override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/StringTransformers.swift:20:23: warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[StringTransformers]' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public enum StringTransformers: ValueTransformers, ValueTransformerType {
| `- note: consider making enum 'StringTransformers' conform to the 'Sendable' protocol
9 |
10 | case capitalized
:
18 | }
19 |
20 | public static let transformers: [StringTransformers] = [.capitalized, .lowercased, .uppercased, .localized(.main)]
| |- warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[StringTransformers]' 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
21 |
22 | public static var namePrefix = "String"
/host/spi-builder-workspace/Sources/StringTransformers.swift:22: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
20 | public static let transformers: [StringTransformers] = [.capitalized, .lowercased, .uppercased, .localized(.main)]
21 |
22 | public static var namePrefix = "String"
| |- 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
23 |
24 | var description: String {
/host/spi-builder-workspace/Sources/StringTransformers.swift:42:22: error: cannot find type 'NSValueTransformerName' in scope
40 | }
41 |
42 | public var name: NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
43 | return NSValueTransformerName(StringTransformers.namePrefix + self.description.capitalized)
44 | }
/host/spi-builder-workspace/Sources/StringTransformers.swift:71: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
69 | .utf32, .utf32BigEndian, .utf32LittleEndian]
70 |
71 | public static var namePrefix = "StringData"
| |- 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
72 |
73 | public var name: NSValueTransformerName {
/host/spi-builder-workspace/Sources/StringTransformers.swift:73:22: error: cannot find type 'NSValueTransformerName' in scope
71 | public static var namePrefix = "StringData"
72 |
73 | public var name: NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
74 | return NSValueTransformerName(StringTransformers.namePrefix + self.descriptionForTransformer.capitalized)
75 | }
/host/spi-builder-workspace/Sources/StringTransformers.swift:91:77: error: cannot find type 'NSValueTransformerName' in scope
89 | }
90 |
91 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
92 | return name
93 | }
/host/spi-builder-workspace/Sources/StringTransformers.swift:91:50: error: cannot find type 'NSValueTransformerName' in scope
89 | }
90 |
91 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
92 | return name
93 | }
/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/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/TimeTransformers.swift:18:23: warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[TimeTransformers]' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public enum TimeTransformers: String, ReversableValueTransformers, ResersableValueTransformerType {
| `- note: consider making enum 'TimeTransformers' conform to the 'Sendable' protocol
12 |
13 | case short
:
16 | case full
17 |
18 | public static let transformers: [TimeTransformers] = [.short, .medium, .long, .full]
| |- warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[TimeTransformers]' 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 = "Time"
/host/spi-builder-workspace/Sources/TimeTransformers.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: [TimeTransformers] = [.short, .medium, .long, .full]
19 |
20 | public static var namePrefix = "Time"
| |- 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 = "StringToTime"
22 |
/host/spi-builder-workspace/Sources/TimeTransformers.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 = "Time"
21 | public static var reversableNamePrefix = "StringToTime"
| |- 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/TimeTransformers.swift:32:22: error: cannot find type 'NSValueTransformerName' in scope
30 | }
31 |
32 | public var name: NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
33 | return NSValueTransformerName(TimeTransformers.namePrefix + self.rawValue.capitalized)
34 | }
/host/spi-builder-workspace/Sources/TimeTransformers.swift:55:77: error: cannot find type 'NSValueTransformerName' in scope
53 | }
54 |
55 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
56 | let newName = name.rawValue.replacingOccurrences(of: TimeTransformers.namePrefix, with: TimeTransformers.reversableNamePrefix)
57 | return NSValueTransformerName(newName)
/host/spi-builder-workspace/Sources/TimeTransformers.swift:55:50: error: cannot find type 'NSValueTransformerName' in scope
53 | }
54 |
55 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
56 | let newName = name.rawValue.replacingOccurrences(of: TimeTransformers.namePrefix, with: TimeTransformers.reversableNamePrefix)
57 | return NSValueTransformerName(newName)
[23/30] Compiling ValueTransformerKit StringTransformers.swift
/host/spi-builder-workspace/Sources/StringToDataTransformer.swift:12:20: error: cannot find type 'NSValueTransformerName' in scope
10 | let encoding: String.Encoding
11 |
12 | open var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "StringToData\(encoding.descriptionForTransformer.capitalized)") }
| `- error: cannot find type 'NSValueTransformerName' in scope
13 |
14 | public init(encoding: String.Encoding = .utf8) {
/host/spi-builder-workspace/Sources/StringToDataTransformer.swift:18:30: error: method does not override any method from its superclass
16 | }
17 |
18 | open override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
19 | return true
20 | }
/host/spi-builder-workspace/Sources/StringToDataTransformer.swift:22:30: error: method does not override any method from its superclass
20 | }
21 |
22 | open override class func transformedValueClass() -> AnyClass {
| `- error: method does not override any method from its superclass
23 | return NSString.self
24 | }
/host/spi-builder-workspace/Sources/StringToDataTransformer.swift:26:24: error: method does not override any method from its superclass
24 | }
25 |
26 | open override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
27 | if let string = value as? String {
28 | return string.data(using: encoding)
/host/spi-builder-workspace/Sources/StringToDataTransformer.swift:34:24: error: method does not override any method from its superclass
32 | }
33 |
34 | open override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
35 | if let data = value as? Data {
36 | return String(data: data, encoding: encoding)
/host/spi-builder-workspace/Sources/StringToDataTransformer.swift:8:37: error: cannot find type 'ValueTransformer' in scope
6 | import Foundation
7 |
8 | open class StringToDataTransformer: ValueTransformer, ValueTransformerRegisterable {
| `- error: cannot find type 'ValueTransformer' in scope
9 |
10 | let encoding: String.Encoding
/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/StringToDataTransformer.swift:46:29: error: cannot find type 'NSValueTransformerName' in scope
44 | open class DataToStringTransformer: StringToDataTransformer {
45 |
46 | open override var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "DataToString\(encoding.descriptionForTransformer.capitalized)") }
| `- error: cannot find type 'NSValueTransformerName' in scope
47 |
48 | open override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/StringToDataTransformer.swift:46:23: error: property does not override any property from its superclass
44 | open class DataToStringTransformer: StringToDataTransformer {
45 |
46 | open override var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "DataToString\(encoding.descriptionForTransformer.capitalized)") }
| `- error: property does not override any property from its superclass
47 |
48 | open override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/StringTransformers.swift:20:23: warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[StringTransformers]' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public enum StringTransformers: ValueTransformers, ValueTransformerType {
| `- note: consider making enum 'StringTransformers' conform to the 'Sendable' protocol
9 |
10 | case capitalized
:
18 | }
19 |
20 | public static let transformers: [StringTransformers] = [.capitalized, .lowercased, .uppercased, .localized(.main)]
| |- warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[StringTransformers]' 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
21 |
22 | public static var namePrefix = "String"
/host/spi-builder-workspace/Sources/StringTransformers.swift:22: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
20 | public static let transformers: [StringTransformers] = [.capitalized, .lowercased, .uppercased, .localized(.main)]
21 |
22 | public static var namePrefix = "String"
| |- 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
23 |
24 | var description: String {
/host/spi-builder-workspace/Sources/StringTransformers.swift:42:22: error: cannot find type 'NSValueTransformerName' in scope
40 | }
41 |
42 | public var name: NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
43 | return NSValueTransformerName(StringTransformers.namePrefix + self.description.capitalized)
44 | }
/host/spi-builder-workspace/Sources/StringTransformers.swift:71: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
69 | .utf32, .utf32BigEndian, .utf32LittleEndian]
70 |
71 | public static var namePrefix = "StringData"
| |- 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
72 |
73 | public var name: NSValueTransformerName {
/host/spi-builder-workspace/Sources/StringTransformers.swift:73:22: error: cannot find type 'NSValueTransformerName' in scope
71 | public static var namePrefix = "StringData"
72 |
73 | public var name: NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
74 | return NSValueTransformerName(StringTransformers.namePrefix + self.descriptionForTransformer.capitalized)
75 | }
/host/spi-builder-workspace/Sources/StringTransformers.swift:91:77: error: cannot find type 'NSValueTransformerName' in scope
89 | }
90 |
91 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
92 | return name
93 | }
/host/spi-builder-workspace/Sources/StringTransformers.swift:91:50: error: cannot find type 'NSValueTransformerName' in scope
89 | }
90 |
91 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
92 | return name
93 | }
/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/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/TimeTransformers.swift:18:23: warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[TimeTransformers]' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public enum TimeTransformers: String, ReversableValueTransformers, ResersableValueTransformerType {
| `- note: consider making enum 'TimeTransformers' conform to the 'Sendable' protocol
12 |
13 | case short
:
16 | case full
17 |
18 | public static let transformers: [TimeTransformers] = [.short, .medium, .long, .full]
| |- warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[TimeTransformers]' 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 = "Time"
/host/spi-builder-workspace/Sources/TimeTransformers.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: [TimeTransformers] = [.short, .medium, .long, .full]
19 |
20 | public static var namePrefix = "Time"
| |- 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 = "StringToTime"
22 |
/host/spi-builder-workspace/Sources/TimeTransformers.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 = "Time"
21 | public static var reversableNamePrefix = "StringToTime"
| |- 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/TimeTransformers.swift:32:22: error: cannot find type 'NSValueTransformerName' in scope
30 | }
31 |
32 | public var name: NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
33 | return NSValueTransformerName(TimeTransformers.namePrefix + self.rawValue.capitalized)
34 | }
/host/spi-builder-workspace/Sources/TimeTransformers.swift:55:77: error: cannot find type 'NSValueTransformerName' in scope
53 | }
54 |
55 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
56 | let newName = name.rawValue.replacingOccurrences(of: TimeTransformers.namePrefix, with: TimeTransformers.reversableNamePrefix)
57 | return NSValueTransformerName(newName)
/host/spi-builder-workspace/Sources/TimeTransformers.swift:55:50: error: cannot find type 'NSValueTransformerName' in scope
53 | }
54 |
55 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
56 | let newName = name.rawValue.replacingOccurrences(of: TimeTransformers.namePrefix, with: TimeTransformers.reversableNamePrefix)
57 | return NSValueTransformerName(newName)
[24/30] Compiling ValueTransformerKit TimeTransformers.swift
/host/spi-builder-workspace/Sources/StringToDataTransformer.swift:12:20: error: cannot find type 'NSValueTransformerName' in scope
10 | let encoding: String.Encoding
11 |
12 | open var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "StringToData\(encoding.descriptionForTransformer.capitalized)") }
| `- error: cannot find type 'NSValueTransformerName' in scope
13 |
14 | public init(encoding: String.Encoding = .utf8) {
/host/spi-builder-workspace/Sources/StringToDataTransformer.swift:18:30: error: method does not override any method from its superclass
16 | }
17 |
18 | open override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
19 | return true
20 | }
/host/spi-builder-workspace/Sources/StringToDataTransformer.swift:22:30: error: method does not override any method from its superclass
20 | }
21 |
22 | open override class func transformedValueClass() -> AnyClass {
| `- error: method does not override any method from its superclass
23 | return NSString.self
24 | }
/host/spi-builder-workspace/Sources/StringToDataTransformer.swift:26:24: error: method does not override any method from its superclass
24 | }
25 |
26 | open override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
27 | if let string = value as? String {
28 | return string.data(using: encoding)
/host/spi-builder-workspace/Sources/StringToDataTransformer.swift:34:24: error: method does not override any method from its superclass
32 | }
33 |
34 | open override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
35 | if let data = value as? Data {
36 | return String(data: data, encoding: encoding)
/host/spi-builder-workspace/Sources/StringToDataTransformer.swift:8:37: error: cannot find type 'ValueTransformer' in scope
6 | import Foundation
7 |
8 | open class StringToDataTransformer: ValueTransformer, ValueTransformerRegisterable {
| `- error: cannot find type 'ValueTransformer' in scope
9 |
10 | let encoding: String.Encoding
/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/StringToDataTransformer.swift:46:29: error: cannot find type 'NSValueTransformerName' in scope
44 | open class DataToStringTransformer: StringToDataTransformer {
45 |
46 | open override var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "DataToString\(encoding.descriptionForTransformer.capitalized)") }
| `- error: cannot find type 'NSValueTransformerName' in scope
47 |
48 | open override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/StringToDataTransformer.swift:46:23: error: property does not override any property from its superclass
44 | open class DataToStringTransformer: StringToDataTransformer {
45 |
46 | open override var name: NSValueTransformerName { return NSValueTransformerName(rawValue: "DataToString\(encoding.descriptionForTransformer.capitalized)") }
| `- error: property does not override any property from its superclass
47 |
48 | open override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/StringTransformers.swift:20:23: warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[StringTransformers]' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public enum StringTransformers: ValueTransformers, ValueTransformerType {
| `- note: consider making enum 'StringTransformers' conform to the 'Sendable' protocol
9 |
10 | case capitalized
:
18 | }
19 |
20 | public static let transformers: [StringTransformers] = [.capitalized, .lowercased, .uppercased, .localized(.main)]
| |- warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[StringTransformers]' 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
21 |
22 | public static var namePrefix = "String"
/host/spi-builder-workspace/Sources/StringTransformers.swift:22: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
20 | public static let transformers: [StringTransformers] = [.capitalized, .lowercased, .uppercased, .localized(.main)]
21 |
22 | public static var namePrefix = "String"
| |- 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
23 |
24 | var description: String {
/host/spi-builder-workspace/Sources/StringTransformers.swift:42:22: error: cannot find type 'NSValueTransformerName' in scope
40 | }
41 |
42 | public var name: NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
43 | return NSValueTransformerName(StringTransformers.namePrefix + self.description.capitalized)
44 | }
/host/spi-builder-workspace/Sources/StringTransformers.swift:71: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
69 | .utf32, .utf32BigEndian, .utf32LittleEndian]
70 |
71 | public static var namePrefix = "StringData"
| |- 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
72 |
73 | public var name: NSValueTransformerName {
/host/spi-builder-workspace/Sources/StringTransformers.swift:73:22: error: cannot find type 'NSValueTransformerName' in scope
71 | public static var namePrefix = "StringData"
72 |
73 | public var name: NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
74 | return NSValueTransformerName(StringTransformers.namePrefix + self.descriptionForTransformer.capitalized)
75 | }
/host/spi-builder-workspace/Sources/StringTransformers.swift:91:77: error: cannot find type 'NSValueTransformerName' in scope
89 | }
90 |
91 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
92 | return name
93 | }
/host/spi-builder-workspace/Sources/StringTransformers.swift:91:50: error: cannot find type 'NSValueTransformerName' in scope
89 | }
90 |
91 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
92 | return name
93 | }
/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/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/TimeTransformers.swift:18:23: warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[TimeTransformers]' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public enum TimeTransformers: String, ReversableValueTransformers, ResersableValueTransformerType {
| `- note: consider making enum 'TimeTransformers' conform to the 'Sendable' protocol
12 |
13 | case short
:
16 | case full
17 |
18 | public static let transformers: [TimeTransformers] = [.short, .medium, .long, .full]
| |- warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[TimeTransformers]' 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 = "Time"
/host/spi-builder-workspace/Sources/TimeTransformers.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: [TimeTransformers] = [.short, .medium, .long, .full]
19 |
20 | public static var namePrefix = "Time"
| |- 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 = "StringToTime"
22 |
/host/spi-builder-workspace/Sources/TimeTransformers.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 = "Time"
21 | public static var reversableNamePrefix = "StringToTime"
| |- 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/TimeTransformers.swift:32:22: error: cannot find type 'NSValueTransformerName' in scope
30 | }
31 |
32 | public var name: NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
33 | return NSValueTransformerName(TimeTransformers.namePrefix + self.rawValue.capitalized)
34 | }
/host/spi-builder-workspace/Sources/TimeTransformers.swift:55:77: error: cannot find type 'NSValueTransformerName' in scope
53 | }
54 |
55 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
56 | let newName = name.rawValue.replacingOccurrences(of: TimeTransformers.namePrefix, with: TimeTransformers.reversableNamePrefix)
57 | return NSValueTransformerName(newName)
/host/spi-builder-workspace/Sources/TimeTransformers.swift:55:50: error: cannot find type 'NSValueTransformerName' in scope
53 | }
54 |
55 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
56 | let newName = name.rawValue.replacingOccurrences(of: TimeTransformers.namePrefix, with: TimeTransformers.reversableNamePrefix)
57 | return NSValueTransformerName(newName)
[25/30] Compiling ValueTransformerKit NumberTransformers.swift
/host/spi-builder-workspace/Sources/NumberTransformers.swift:17:23: warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[NumberTransformers]' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public enum NumberTransformers: ReversableValueTransformers, ResersableValueTransformerType {
| `- note: consider making enum 'NumberTransformers' conform to the 'Sendable' protocol
12 |
13 | case numberStyle(NumberFormatter.Style)
:
15 | case numberFormat(String)
16 |
17 | public static let transformers: [NumberTransformers] = {
| |- warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[NumberTransformers]' 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
18 | let styles: [NumberFormatter.Style] = [.none, .decimal, .percent, .scientific, .spellOut, .ordinal,
19 | .currency, .currencyISOCode, .currencyPlural, .currencyAccounting]
/host/spi-builder-workspace/Sources/NumberTransformers.swift:23: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
21 | }()
22 |
23 | public static var namePrefix = "Number"
| |- 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
24 | public static var reversableNamePrefix = "StringToNumber"
25 |
/host/spi-builder-workspace/Sources/NumberTransformers.swift:24: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
22 |
23 | public static var namePrefix = "Number"
24 | public static var reversableNamePrefix = "StringToNumber"
| |- 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
25 |
26 | public var formatter: NumberFormatter {
/host/spi-builder-workspace/Sources/NumberTransformers.swift:53:22: error: cannot find type 'NSValueTransformerName' in scope
51 | }
52 |
53 | public var name: NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
54 | if case .numberStyle(.none) = self {
55 | return NSValueTransformerName(NumberTransformers.namePrefix)
/host/spi-builder-workspace/Sources/NumberTransformers.swift:74:77: error: cannot find type 'NSValueTransformerName' in scope
72 | }
73 |
74 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
75 | let newName = name.rawValue.replacingOccurrences(of: NumberTransformers.namePrefix, with: NumberTransformers.reversableNamePrefix)
76 | return NSValueTransformerName(newName)
/host/spi-builder-workspace/Sources/NumberTransformers.swift:74:50: error: cannot find type 'NSValueTransformerName' in scope
72 | }
73 |
74 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
75 | let newName = name.rawValue.replacingOccurrences(of: NumberTransformers.namePrefix, with: NumberTransformers.reversableNamePrefix)
76 | 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/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/Operators.swift:13:31: error: cannot find type 'ValueTransformer' in scope
11 | open class CompoundValueTransformer: ValueTransformer, ExpressibleByArrayLiteral {
12 |
13 | public let transformers: [ValueTransformer]
| `- error: cannot find type 'ValueTransformer' in scope
14 |
15 | public init(transformers: [ValueTransformer]) {
/host/spi-builder-workspace/Sources/Operators.swift:15:32: error: cannot find type 'ValueTransformer' in scope
13 | public let transformers: [ValueTransformer]
14 |
15 | public init(transformers: [ValueTransformer]) {
| `- error: cannot find type 'ValueTransformer' in scope
16 | self.transformers = transformers.isEmpty ? [.identity] : transformers
17 | }
/host/spi-builder-workspace/Sources/Operators.swift:19:44: error: cannot find type 'ValueTransformer' in scope
17 | }
18 |
19 | public typealias ArrayLiteralElement = ValueTransformer
| `- error: cannot find type 'ValueTransformer' in scope
20 |
21 | public required init(arrayLiteral elements: ValueTransformer...) {
/host/spi-builder-workspace/Sources/Operators.swift:21:49: error: cannot find type 'ValueTransformer' in scope
19 | public typealias ArrayLiteralElement = ValueTransformer
20 |
21 | public required init(arrayLiteral elements: ValueTransformer...) {
| `- error: cannot find type 'ValueTransformer' in scope
22 | self.transformers = elements
23 | }
/host/spi-builder-workspace/Sources/Operators.swift:25:30: error: method does not override any method from its superclass
23 | }
24 |
25 | open override class func transformedValueClass() -> Swift.AnyClass {
| `- error: method does not override any method from its superclass
26 | return NSObject.self
27 | }
/host/spi-builder-workspace/Sources/Operators.swift:29:30: error: method does not override any method from its superclass
27 | }
28 |
29 | open override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
30 | return true
31 | }
/host/spi-builder-workspace/Sources/Operators.swift:33:24: error: method does not override any method from its superclass
31 | }
32 |
33 | open override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
34 | var current = value
35 | for transformer in transformers {
/host/spi-builder-workspace/Sources/Operators.swift:41:24: error: method does not override any method from its superclass
39 | }
40 |
41 | open override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
42 | var current = value
43 | for transformer in transformers.reversed() {
/host/spi-builder-workspace/Sources/Operators.swift:11:38: error: cannot find type 'ValueTransformer' in scope
9 | import Foundation
10 |
11 | open class CompoundValueTransformer: ValueTransformer, ExpressibleByArrayLiteral {
| `- error: cannot find type 'ValueTransformer' in scope
12 |
13 | public let transformers: [ValueTransformer]
/host/spi-builder-workspace/Sources/Operators.swift:11:12: error: type 'CompoundValueTransformer' does not conform to protocol 'ExpressibleByArrayLiteral'
9 | import Foundation
10 |
11 | open class CompoundValueTransformer: ValueTransformer, ExpressibleByArrayLiteral {
| `- error: type 'CompoundValueTransformer' does not conform to protocol 'ExpressibleByArrayLiteral'
12 |
13 | public let transformers: [ValueTransformer]
Swift.ExpressibleByArrayLiteral:2:20: note: protocol requires nested type 'ArrayLiteralElement'; add nested type 'ArrayLiteralElement' for conformance
1 | public protocol ExpressibleByArrayLiteral {
2 | associatedtype ArrayLiteralElement
| `- note: protocol requires nested type 'ArrayLiteralElement'; add nested type 'ArrayLiteralElement' for conformance
3 | init(arrayLiteral elements: Self.ArrayLiteralElement...)
4 | }
/host/spi-builder-workspace/Sources/Operators.swift:58:11: error: cannot find type 'ValueTransformer' in scope
56 | infix operator *> : ApplicativeSequencePrecedence
57 |
58 | extension ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
59 |
60 | /// Add two value transformers
/host/spi-builder-workspace/Sources/Operators.swift:16:54: error: reference to member 'identity' cannot be resolved without a contextual type
14 |
15 | public init(transformers: [ValueTransformer]) {
16 | self.transformers = transformers.isEmpty ? [.identity] : transformers
| `- error: reference to member 'identity' cannot be resolved without a contextual type
17 | }
18 |
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:9:2: error: Objective-C interoperability is disabled
7 |
8 | // allow to bind with nsarraycontroller
9 | @objc(OrderedSetToArrayValueTransformer)
| `- error: Objective-C interoperability is disabled
10 | final public class OrderedSetToArrayValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton, ReversableValueTransformers {
11 |
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:15:23: error: cannot find 'NSValueTransformerName' in scope
13 | public static var reversableNamePrefix = "ArrayToOrderedSet"
14 |
15 | public var name = NSValueTransformerName(rawValue: OrderedSetToArrayValueTransformer.namePrefix)
| `- error: cannot find 'NSValueTransformerName' in scope
16 | public static let instance = OrderedSetToArrayValueTransformer()
17 |
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:12: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
10 | final public class OrderedSetToArrayValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton, ReversableValueTransformers {
11 |
12 | public static var namePrefix = "OrderedSetToArray"
| |- 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
13 | public static var reversableNamePrefix = "ArrayToOrderedSet"
14 |
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:13: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
11 |
12 | public static var namePrefix = "OrderedSetToArray"
13 | public static var reversableNamePrefix = "ArrayToOrderedSet"
| |- 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
14 |
15 | public var name = NSValueTransformerName(rawValue: OrderedSetToArrayValueTransformer.namePrefix)
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:16:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'OrderedSetToArrayValueTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
8 | // allow to bind with nsarraycontroller
9 | @objc(OrderedSetToArrayValueTransformer)
10 | final public class OrderedSetToArrayValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton, ReversableValueTransformers {
| `- note: class 'OrderedSetToArrayValueTransformer' does not conform to the 'Sendable' protocol
11 |
12 | public static var namePrefix = "OrderedSetToArray"
:
14 |
15 | public var name = NSValueTransformerName(rawValue: OrderedSetToArrayValueTransformer.namePrefix)
16 | public static let instance = OrderedSetToArrayValueTransformer()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'OrderedSetToArrayValueTransformer' 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
17 |
18 | public override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:18:32: error: method does not override any method from its superclass
16 | public static let instance = OrderedSetToArrayValueTransformer()
17 |
18 | public override class func transformedValueClass() -> AnyClass {
| `- error: method does not override any method from its superclass
19 | return NSArray.self
20 | }
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:22:32: error: method does not override any method from its superclass
20 | }
21 |
22 | public override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
23 | return true
24 | }
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:26:26: error: method does not override any method from its superclass
24 | }
25 |
26 | public override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
27 | guard let set = value as? NSOrderedSet else {
28 | return nil
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:33:26: error: method does not override any method from its superclass
31 | }
32 |
33 | public override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
34 | guard let array = value as? [AnyObject] else {
35 | return nil
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:40:77: error: cannot find type 'NSValueTransformerName' in scope
38 | }
39 |
40 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
41 | return NSValueTransformerName(OrderedSetToArrayValueTransformer.reversableNamePrefix)
42 | }
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:40:50: error: cannot find type 'NSValueTransformerName' in scope
38 | }
39 |
40 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
41 | return NSValueTransformerName(OrderedSetToArrayValueTransformer.reversableNamePrefix)
42 | }
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:10:55: error: cannot find type 'ValueTransformer' in scope
8 | // allow to bind with nsarraycontroller
9 | @objc(OrderedSetToArrayValueTransformer)
10 | final public class OrderedSetToArrayValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton, ReversableValueTransformers {
| `- error: cannot find type 'ValueTransformer' in scope
11 |
12 | public static var namePrefix = "OrderedSetToArray"
/host/spi-builder-workspace/Sources/Operators.swift:69:48: error: cannot find type 'ValueTransformer' in scope
67 |
68 | /// Transform `value` using reverse of `transformer`
69 | public static func <* <T, U> (transformer: ValueTransformer, value: T) -> U? {
| `- error: cannot find type 'ValueTransformer' in scope
70 | return transformer.reverseTransformedValue(value) as? U
71 | }
/host/spi-builder-workspace/Sources/Operators.swift:74:58: error: cannot find type 'ValueTransformer' in scope
72 |
73 | /// Transform `value` using `transformer`
74 | public static func *> <T, U> (value: T, transformer: ValueTransformer) -> U? {
| `- error: cannot find type 'ValueTransformer' in scope
75 | return transformer.transformedValue(value) as? U
76 | }
/host/spi-builder-workspace/Sources/Operators.swift:79:47: error: cannot find type 'ValueTransformer' in scope
77 |
78 | /// Return the reverse transformer
79 | public static prefix func ! (transformer: ValueTransformer) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
80 | return transformer.reverse
81 | }
/host/spi-builder-workspace/Sources/Operators.swift:79:68: error: cannot find type 'ValueTransformer' in scope
77 |
78 | /// Return the reverse transformer
79 | public static prefix func ! (transformer: ValueTransformer) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
80 | return transformer.reverse
81 | }
[26/30] Compiling ValueTransformerKit Operators.swift
/host/spi-builder-workspace/Sources/NumberTransformers.swift:17:23: warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[NumberTransformers]' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public enum NumberTransformers: ReversableValueTransformers, ResersableValueTransformerType {
| `- note: consider making enum 'NumberTransformers' conform to the 'Sendable' protocol
12 |
13 | case numberStyle(NumberFormatter.Style)
:
15 | case numberFormat(String)
16 |
17 | public static let transformers: [NumberTransformers] = {
| |- warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[NumberTransformers]' 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
18 | let styles: [NumberFormatter.Style] = [.none, .decimal, .percent, .scientific, .spellOut, .ordinal,
19 | .currency, .currencyISOCode, .currencyPlural, .currencyAccounting]
/host/spi-builder-workspace/Sources/NumberTransformers.swift:23: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
21 | }()
22 |
23 | public static var namePrefix = "Number"
| |- 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
24 | public static var reversableNamePrefix = "StringToNumber"
25 |
/host/spi-builder-workspace/Sources/NumberTransformers.swift:24: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
22 |
23 | public static var namePrefix = "Number"
24 | public static var reversableNamePrefix = "StringToNumber"
| |- 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
25 |
26 | public var formatter: NumberFormatter {
/host/spi-builder-workspace/Sources/NumberTransformers.swift:53:22: error: cannot find type 'NSValueTransformerName' in scope
51 | }
52 |
53 | public var name: NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
54 | if case .numberStyle(.none) = self {
55 | return NSValueTransformerName(NumberTransformers.namePrefix)
/host/spi-builder-workspace/Sources/NumberTransformers.swift:74:77: error: cannot find type 'NSValueTransformerName' in scope
72 | }
73 |
74 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
75 | let newName = name.rawValue.replacingOccurrences(of: NumberTransformers.namePrefix, with: NumberTransformers.reversableNamePrefix)
76 | return NSValueTransformerName(newName)
/host/spi-builder-workspace/Sources/NumberTransformers.swift:74:50: error: cannot find type 'NSValueTransformerName' in scope
72 | }
73 |
74 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
75 | let newName = name.rawValue.replacingOccurrences(of: NumberTransformers.namePrefix, with: NumberTransformers.reversableNamePrefix)
76 | 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/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/Operators.swift:13:31: error: cannot find type 'ValueTransformer' in scope
11 | open class CompoundValueTransformer: ValueTransformer, ExpressibleByArrayLiteral {
12 |
13 | public let transformers: [ValueTransformer]
| `- error: cannot find type 'ValueTransformer' in scope
14 |
15 | public init(transformers: [ValueTransformer]) {
/host/spi-builder-workspace/Sources/Operators.swift:15:32: error: cannot find type 'ValueTransformer' in scope
13 | public let transformers: [ValueTransformer]
14 |
15 | public init(transformers: [ValueTransformer]) {
| `- error: cannot find type 'ValueTransformer' in scope
16 | self.transformers = transformers.isEmpty ? [.identity] : transformers
17 | }
/host/spi-builder-workspace/Sources/Operators.swift:19:44: error: cannot find type 'ValueTransformer' in scope
17 | }
18 |
19 | public typealias ArrayLiteralElement = ValueTransformer
| `- error: cannot find type 'ValueTransformer' in scope
20 |
21 | public required init(arrayLiteral elements: ValueTransformer...) {
/host/spi-builder-workspace/Sources/Operators.swift:21:49: error: cannot find type 'ValueTransformer' in scope
19 | public typealias ArrayLiteralElement = ValueTransformer
20 |
21 | public required init(arrayLiteral elements: ValueTransformer...) {
| `- error: cannot find type 'ValueTransformer' in scope
22 | self.transformers = elements
23 | }
/host/spi-builder-workspace/Sources/Operators.swift:25:30: error: method does not override any method from its superclass
23 | }
24 |
25 | open override class func transformedValueClass() -> Swift.AnyClass {
| `- error: method does not override any method from its superclass
26 | return NSObject.self
27 | }
/host/spi-builder-workspace/Sources/Operators.swift:29:30: error: method does not override any method from its superclass
27 | }
28 |
29 | open override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
30 | return true
31 | }
/host/spi-builder-workspace/Sources/Operators.swift:33:24: error: method does not override any method from its superclass
31 | }
32 |
33 | open override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
34 | var current = value
35 | for transformer in transformers {
/host/spi-builder-workspace/Sources/Operators.swift:41:24: error: method does not override any method from its superclass
39 | }
40 |
41 | open override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
42 | var current = value
43 | for transformer in transformers.reversed() {
/host/spi-builder-workspace/Sources/Operators.swift:11:38: error: cannot find type 'ValueTransformer' in scope
9 | import Foundation
10 |
11 | open class CompoundValueTransformer: ValueTransformer, ExpressibleByArrayLiteral {
| `- error: cannot find type 'ValueTransformer' in scope
12 |
13 | public let transformers: [ValueTransformer]
/host/spi-builder-workspace/Sources/Operators.swift:11:12: error: type 'CompoundValueTransformer' does not conform to protocol 'ExpressibleByArrayLiteral'
9 | import Foundation
10 |
11 | open class CompoundValueTransformer: ValueTransformer, ExpressibleByArrayLiteral {
| `- error: type 'CompoundValueTransformer' does not conform to protocol 'ExpressibleByArrayLiteral'
12 |
13 | public let transformers: [ValueTransformer]
Swift.ExpressibleByArrayLiteral:2:20: note: protocol requires nested type 'ArrayLiteralElement'; add nested type 'ArrayLiteralElement' for conformance
1 | public protocol ExpressibleByArrayLiteral {
2 | associatedtype ArrayLiteralElement
| `- note: protocol requires nested type 'ArrayLiteralElement'; add nested type 'ArrayLiteralElement' for conformance
3 | init(arrayLiteral elements: Self.ArrayLiteralElement...)
4 | }
/host/spi-builder-workspace/Sources/Operators.swift:58:11: error: cannot find type 'ValueTransformer' in scope
56 | infix operator *> : ApplicativeSequencePrecedence
57 |
58 | extension ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
59 |
60 | /// Add two value transformers
/host/spi-builder-workspace/Sources/Operators.swift:16:54: error: reference to member 'identity' cannot be resolved without a contextual type
14 |
15 | public init(transformers: [ValueTransformer]) {
16 | self.transformers = transformers.isEmpty ? [.identity] : transformers
| `- error: reference to member 'identity' cannot be resolved without a contextual type
17 | }
18 |
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:9:2: error: Objective-C interoperability is disabled
7 |
8 | // allow to bind with nsarraycontroller
9 | @objc(OrderedSetToArrayValueTransformer)
| `- error: Objective-C interoperability is disabled
10 | final public class OrderedSetToArrayValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton, ReversableValueTransformers {
11 |
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:15:23: error: cannot find 'NSValueTransformerName' in scope
13 | public static var reversableNamePrefix = "ArrayToOrderedSet"
14 |
15 | public var name = NSValueTransformerName(rawValue: OrderedSetToArrayValueTransformer.namePrefix)
| `- error: cannot find 'NSValueTransformerName' in scope
16 | public static let instance = OrderedSetToArrayValueTransformer()
17 |
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:12: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
10 | final public class OrderedSetToArrayValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton, ReversableValueTransformers {
11 |
12 | public static var namePrefix = "OrderedSetToArray"
| |- 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
13 | public static var reversableNamePrefix = "ArrayToOrderedSet"
14 |
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:13: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
11 |
12 | public static var namePrefix = "OrderedSetToArray"
13 | public static var reversableNamePrefix = "ArrayToOrderedSet"
| |- 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
14 |
15 | public var name = NSValueTransformerName(rawValue: OrderedSetToArrayValueTransformer.namePrefix)
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:16:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'OrderedSetToArrayValueTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
8 | // allow to bind with nsarraycontroller
9 | @objc(OrderedSetToArrayValueTransformer)
10 | final public class OrderedSetToArrayValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton, ReversableValueTransformers {
| `- note: class 'OrderedSetToArrayValueTransformer' does not conform to the 'Sendable' protocol
11 |
12 | public static var namePrefix = "OrderedSetToArray"
:
14 |
15 | public var name = NSValueTransformerName(rawValue: OrderedSetToArrayValueTransformer.namePrefix)
16 | public static let instance = OrderedSetToArrayValueTransformer()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'OrderedSetToArrayValueTransformer' 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
17 |
18 | public override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:18:32: error: method does not override any method from its superclass
16 | public static let instance = OrderedSetToArrayValueTransformer()
17 |
18 | public override class func transformedValueClass() -> AnyClass {
| `- error: method does not override any method from its superclass
19 | return NSArray.self
20 | }
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:22:32: error: method does not override any method from its superclass
20 | }
21 |
22 | public override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
23 | return true
24 | }
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:26:26: error: method does not override any method from its superclass
24 | }
25 |
26 | public override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
27 | guard let set = value as? NSOrderedSet else {
28 | return nil
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:33:26: error: method does not override any method from its superclass
31 | }
32 |
33 | public override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
34 | guard let array = value as? [AnyObject] else {
35 | return nil
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:40:77: error: cannot find type 'NSValueTransformerName' in scope
38 | }
39 |
40 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
41 | return NSValueTransformerName(OrderedSetToArrayValueTransformer.reversableNamePrefix)
42 | }
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:40:50: error: cannot find type 'NSValueTransformerName' in scope
38 | }
39 |
40 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
41 | return NSValueTransformerName(OrderedSetToArrayValueTransformer.reversableNamePrefix)
42 | }
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:10:55: error: cannot find type 'ValueTransformer' in scope
8 | // allow to bind with nsarraycontroller
9 | @objc(OrderedSetToArrayValueTransformer)
10 | final public class OrderedSetToArrayValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton, ReversableValueTransformers {
| `- error: cannot find type 'ValueTransformer' in scope
11 |
12 | public static var namePrefix = "OrderedSetToArray"
/host/spi-builder-workspace/Sources/Operators.swift:69:48: error: cannot find type 'ValueTransformer' in scope
67 |
68 | /// Transform `value` using reverse of `transformer`
69 | public static func <* <T, U> (transformer: ValueTransformer, value: T) -> U? {
| `- error: cannot find type 'ValueTransformer' in scope
70 | return transformer.reverseTransformedValue(value) as? U
71 | }
/host/spi-builder-workspace/Sources/Operators.swift:74:58: error: cannot find type 'ValueTransformer' in scope
72 |
73 | /// Transform `value` using `transformer`
74 | public static func *> <T, U> (value: T, transformer: ValueTransformer) -> U? {
| `- error: cannot find type 'ValueTransformer' in scope
75 | return transformer.transformedValue(value) as? U
76 | }
/host/spi-builder-workspace/Sources/Operators.swift:79:47: error: cannot find type 'ValueTransformer' in scope
77 |
78 | /// Return the reverse transformer
79 | public static prefix func ! (transformer: ValueTransformer) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
80 | return transformer.reverse
81 | }
/host/spi-builder-workspace/Sources/Operators.swift:79:68: error: cannot find type 'ValueTransformer' in scope
77 |
78 | /// Return the reverse transformer
79 | public static prefix func ! (transformer: ValueTransformer) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
80 | return transformer.reverse
81 | }
[27/30] Compiling ValueTransformerKit OrderedSetToArrayValueTransformer.swift
/host/spi-builder-workspace/Sources/NumberTransformers.swift:17:23: warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[NumberTransformers]' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public enum NumberTransformers: ReversableValueTransformers, ResersableValueTransformerType {
| `- note: consider making enum 'NumberTransformers' conform to the 'Sendable' protocol
12 |
13 | case numberStyle(NumberFormatter.Style)
:
15 | case numberFormat(String)
16 |
17 | public static let transformers: [NumberTransformers] = {
| |- warning: static property 'transformers' is not concurrency-safe because non-'Sendable' type '[NumberTransformers]' 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
18 | let styles: [NumberFormatter.Style] = [.none, .decimal, .percent, .scientific, .spellOut, .ordinal,
19 | .currency, .currencyISOCode, .currencyPlural, .currencyAccounting]
/host/spi-builder-workspace/Sources/NumberTransformers.swift:23: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
21 | }()
22 |
23 | public static var namePrefix = "Number"
| |- 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
24 | public static var reversableNamePrefix = "StringToNumber"
25 |
/host/spi-builder-workspace/Sources/NumberTransformers.swift:24: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
22 |
23 | public static var namePrefix = "Number"
24 | public static var reversableNamePrefix = "StringToNumber"
| |- 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
25 |
26 | public var formatter: NumberFormatter {
/host/spi-builder-workspace/Sources/NumberTransformers.swift:53:22: error: cannot find type 'NSValueTransformerName' in scope
51 | }
52 |
53 | public var name: NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
54 | if case .numberStyle(.none) = self {
55 | return NSValueTransformerName(NumberTransformers.namePrefix)
/host/spi-builder-workspace/Sources/NumberTransformers.swift:74:77: error: cannot find type 'NSValueTransformerName' in scope
72 | }
73 |
74 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
75 | let newName = name.rawValue.replacingOccurrences(of: NumberTransformers.namePrefix, with: NumberTransformers.reversableNamePrefix)
76 | return NSValueTransformerName(newName)
/host/spi-builder-workspace/Sources/NumberTransformers.swift:74:50: error: cannot find type 'NSValueTransformerName' in scope
72 | }
73 |
74 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
75 | let newName = name.rawValue.replacingOccurrences(of: NumberTransformers.namePrefix, with: NumberTransformers.reversableNamePrefix)
76 | 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/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/Operators.swift:13:31: error: cannot find type 'ValueTransformer' in scope
11 | open class CompoundValueTransformer: ValueTransformer, ExpressibleByArrayLiteral {
12 |
13 | public let transformers: [ValueTransformer]
| `- error: cannot find type 'ValueTransformer' in scope
14 |
15 | public init(transformers: [ValueTransformer]) {
/host/spi-builder-workspace/Sources/Operators.swift:15:32: error: cannot find type 'ValueTransformer' in scope
13 | public let transformers: [ValueTransformer]
14 |
15 | public init(transformers: [ValueTransformer]) {
| `- error: cannot find type 'ValueTransformer' in scope
16 | self.transformers = transformers.isEmpty ? [.identity] : transformers
17 | }
/host/spi-builder-workspace/Sources/Operators.swift:19:44: error: cannot find type 'ValueTransformer' in scope
17 | }
18 |
19 | public typealias ArrayLiteralElement = ValueTransformer
| `- error: cannot find type 'ValueTransformer' in scope
20 |
21 | public required init(arrayLiteral elements: ValueTransformer...) {
/host/spi-builder-workspace/Sources/Operators.swift:21:49: error: cannot find type 'ValueTransformer' in scope
19 | public typealias ArrayLiteralElement = ValueTransformer
20 |
21 | public required init(arrayLiteral elements: ValueTransformer...) {
| `- error: cannot find type 'ValueTransformer' in scope
22 | self.transformers = elements
23 | }
/host/spi-builder-workspace/Sources/Operators.swift:25:30: error: method does not override any method from its superclass
23 | }
24 |
25 | open override class func transformedValueClass() -> Swift.AnyClass {
| `- error: method does not override any method from its superclass
26 | return NSObject.self
27 | }
/host/spi-builder-workspace/Sources/Operators.swift:29:30: error: method does not override any method from its superclass
27 | }
28 |
29 | open override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
30 | return true
31 | }
/host/spi-builder-workspace/Sources/Operators.swift:33:24: error: method does not override any method from its superclass
31 | }
32 |
33 | open override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
34 | var current = value
35 | for transformer in transformers {
/host/spi-builder-workspace/Sources/Operators.swift:41:24: error: method does not override any method from its superclass
39 | }
40 |
41 | open override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
42 | var current = value
43 | for transformer in transformers.reversed() {
/host/spi-builder-workspace/Sources/Operators.swift:11:38: error: cannot find type 'ValueTransformer' in scope
9 | import Foundation
10 |
11 | open class CompoundValueTransformer: ValueTransformer, ExpressibleByArrayLiteral {
| `- error: cannot find type 'ValueTransformer' in scope
12 |
13 | public let transformers: [ValueTransformer]
/host/spi-builder-workspace/Sources/Operators.swift:11:12: error: type 'CompoundValueTransformer' does not conform to protocol 'ExpressibleByArrayLiteral'
9 | import Foundation
10 |
11 | open class CompoundValueTransformer: ValueTransformer, ExpressibleByArrayLiteral {
| `- error: type 'CompoundValueTransformer' does not conform to protocol 'ExpressibleByArrayLiteral'
12 |
13 | public let transformers: [ValueTransformer]
Swift.ExpressibleByArrayLiteral:2:20: note: protocol requires nested type 'ArrayLiteralElement'; add nested type 'ArrayLiteralElement' for conformance
1 | public protocol ExpressibleByArrayLiteral {
2 | associatedtype ArrayLiteralElement
| `- note: protocol requires nested type 'ArrayLiteralElement'; add nested type 'ArrayLiteralElement' for conformance
3 | init(arrayLiteral elements: Self.ArrayLiteralElement...)
4 | }
/host/spi-builder-workspace/Sources/Operators.swift:58:11: error: cannot find type 'ValueTransformer' in scope
56 | infix operator *> : ApplicativeSequencePrecedence
57 |
58 | extension ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
59 |
60 | /// Add two value transformers
/host/spi-builder-workspace/Sources/Operators.swift:16:54: error: reference to member 'identity' cannot be resolved without a contextual type
14 |
15 | public init(transformers: [ValueTransformer]) {
16 | self.transformers = transformers.isEmpty ? [.identity] : transformers
| `- error: reference to member 'identity' cannot be resolved without a contextual type
17 | }
18 |
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:9:2: error: Objective-C interoperability is disabled
7 |
8 | // allow to bind with nsarraycontroller
9 | @objc(OrderedSetToArrayValueTransformer)
| `- error: Objective-C interoperability is disabled
10 | final public class OrderedSetToArrayValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton, ReversableValueTransformers {
11 |
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:15:23: error: cannot find 'NSValueTransformerName' in scope
13 | public static var reversableNamePrefix = "ArrayToOrderedSet"
14 |
15 | public var name = NSValueTransformerName(rawValue: OrderedSetToArrayValueTransformer.namePrefix)
| `- error: cannot find 'NSValueTransformerName' in scope
16 | public static let instance = OrderedSetToArrayValueTransformer()
17 |
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:12: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
10 | final public class OrderedSetToArrayValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton, ReversableValueTransformers {
11 |
12 | public static var namePrefix = "OrderedSetToArray"
| |- 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
13 | public static var reversableNamePrefix = "ArrayToOrderedSet"
14 |
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:13: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
11 |
12 | public static var namePrefix = "OrderedSetToArray"
13 | public static var reversableNamePrefix = "ArrayToOrderedSet"
| |- 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
14 |
15 | public var name = NSValueTransformerName(rawValue: OrderedSetToArrayValueTransformer.namePrefix)
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:16:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'OrderedSetToArrayValueTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
8 | // allow to bind with nsarraycontroller
9 | @objc(OrderedSetToArrayValueTransformer)
10 | final public class OrderedSetToArrayValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton, ReversableValueTransformers {
| `- note: class 'OrderedSetToArrayValueTransformer' does not conform to the 'Sendable' protocol
11 |
12 | public static var namePrefix = "OrderedSetToArray"
:
14 |
15 | public var name = NSValueTransformerName(rawValue: OrderedSetToArrayValueTransformer.namePrefix)
16 | public static let instance = OrderedSetToArrayValueTransformer()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'OrderedSetToArrayValueTransformer' 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
17 |
18 | public override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:18:32: error: method does not override any method from its superclass
16 | public static let instance = OrderedSetToArrayValueTransformer()
17 |
18 | public override class func transformedValueClass() -> AnyClass {
| `- error: method does not override any method from its superclass
19 | return NSArray.self
20 | }
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:22:32: error: method does not override any method from its superclass
20 | }
21 |
22 | public override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
23 | return true
24 | }
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:26:26: error: method does not override any method from its superclass
24 | }
25 |
26 | public override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
27 | guard let set = value as? NSOrderedSet else {
28 | return nil
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:33:26: error: method does not override any method from its superclass
31 | }
32 |
33 | public override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
34 | guard let array = value as? [AnyObject] else {
35 | return nil
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:40:77: error: cannot find type 'NSValueTransformerName' in scope
38 | }
39 |
40 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
41 | return NSValueTransformerName(OrderedSetToArrayValueTransformer.reversableNamePrefix)
42 | }
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:40:50: error: cannot find type 'NSValueTransformerName' in scope
38 | }
39 |
40 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
41 | return NSValueTransformerName(OrderedSetToArrayValueTransformer.reversableNamePrefix)
42 | }
/host/spi-builder-workspace/Sources/OrderedSetToArrayValueTransformer.swift:10:55: error: cannot find type 'ValueTransformer' in scope
8 | // allow to bind with nsarraycontroller
9 | @objc(OrderedSetToArrayValueTransformer)
10 | final public class OrderedSetToArrayValueTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton, ReversableValueTransformers {
| `- error: cannot find type 'ValueTransformer' in scope
11 |
12 | public static var namePrefix = "OrderedSetToArray"
/host/spi-builder-workspace/Sources/Operators.swift:69:48: error: cannot find type 'ValueTransformer' in scope
67 |
68 | /// Transform `value` using reverse of `transformer`
69 | public static func <* <T, U> (transformer: ValueTransformer, value: T) -> U? {
| `- error: cannot find type 'ValueTransformer' in scope
70 | return transformer.reverseTransformedValue(value) as? U
71 | }
/host/spi-builder-workspace/Sources/Operators.swift:74:58: error: cannot find type 'ValueTransformer' in scope
72 |
73 | /// Transform `value` using `transformer`
74 | public static func *> <T, U> (value: T, transformer: ValueTransformer) -> U? {
| `- error: cannot find type 'ValueTransformer' in scope
75 | return transformer.transformedValue(value) as? U
76 | }
/host/spi-builder-workspace/Sources/Operators.swift:79:47: error: cannot find type 'ValueTransformer' in scope
77 |
78 | /// Return the reverse transformer
79 | public static prefix func ! (transformer: ValueTransformer) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
80 | return transformer.reverse
81 | }
/host/spi-builder-workspace/Sources/Operators.swift:79:68: error: cannot find type 'ValueTransformer' in scope
77 |
78 | /// Return the reverse transformer
79 | public static prefix func ! (transformer: ValueTransformer) -> ValueTransformer {
| `- error: cannot find type 'ValueTransformer' in scope
80 | return transformer.reverse
81 | }
[28/30] Compiling ValueTransformerKit UIColorToString.swift
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:10:23: error: cannot find 'NSValueTransformerName' in scope
8 | final class URLToStringTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
9 |
10 | public var name = NSValueTransformerName(rawValue: "URLToString")
| `- error: cannot find 'NSValueTransformerName' in scope
11 | public static let instance = URLToStringTransformer()
12 |
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:8:37: error: cannot find type 'ValueTransformer' in scope
6 | import Foundation
7 |
8 | final class URLToStringTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
| `- error: cannot find type 'ValueTransformer' in scope
9 |
10 | public var name = NSValueTransformerName(rawValue: "URLToString")
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:11:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'URLToStringTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | final class URLToStringTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
| `- note: class 'URLToStringTransformer' does not conform to the 'Sendable' protocol
9 |
10 | public var name = NSValueTransformerName(rawValue: "URLToString")
11 | public static let instance = URLToStringTransformer()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'URLToStringTransformer' 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
12 |
13 | public override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:13:32: error: method does not override any method from its superclass
11 | public static let instance = URLToStringTransformer()
12 |
13 | public override class func transformedValueClass() -> AnyClass {
| `- error: method does not override any method from its superclass
14 | return NSString.self
15 | }
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:17:32: error: method does not override any method from its superclass
15 | }
16 |
17 | public override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
18 | return true
19 | }
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:21:26: error: method does not override any method from its superclass
19 | }
20 |
21 | public override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
22 | guard let url = value as? URL else {
23 | return nil
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:28:26: error: method does not override any method from its superclass
26 | }
27 |
28 | public override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
29 | guard let string = value as? String else {
30 | return nil
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:35:77: error: cannot find type 'NSValueTransformerName' in scope
33 | }
34 |
35 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
36 | return NSValueTransformerName("StringToURL")
37 | }
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:35:50: error: cannot find type 'NSValueTransformerName' in scope
33 | }
34 |
35 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
36 | return NSValueTransformerName("StringToURL")
37 | }
/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 |
[29/30] Compiling ValueTransformerKit URLStringToImageTransformer.swift
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:10:23: error: cannot find 'NSValueTransformerName' in scope
8 | final class URLToStringTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
9 |
10 | public var name = NSValueTransformerName(rawValue: "URLToString")
| `- error: cannot find 'NSValueTransformerName' in scope
11 | public static let instance = URLToStringTransformer()
12 |
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:8:37: error: cannot find type 'ValueTransformer' in scope
6 | import Foundation
7 |
8 | final class URLToStringTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
| `- error: cannot find type 'ValueTransformer' in scope
9 |
10 | public var name = NSValueTransformerName(rawValue: "URLToString")
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:11:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'URLToStringTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | final class URLToStringTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
| `- note: class 'URLToStringTransformer' does not conform to the 'Sendable' protocol
9 |
10 | public var name = NSValueTransformerName(rawValue: "URLToString")
11 | public static let instance = URLToStringTransformer()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'URLToStringTransformer' 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
12 |
13 | public override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:13:32: error: method does not override any method from its superclass
11 | public static let instance = URLToStringTransformer()
12 |
13 | public override class func transformedValueClass() -> AnyClass {
| `- error: method does not override any method from its superclass
14 | return NSString.self
15 | }
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:17:32: error: method does not override any method from its superclass
15 | }
16 |
17 | public override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
18 | return true
19 | }
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:21:26: error: method does not override any method from its superclass
19 | }
20 |
21 | public override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
22 | guard let url = value as? URL else {
23 | return nil
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:28:26: error: method does not override any method from its superclass
26 | }
27 |
28 | public override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
29 | guard let string = value as? String else {
30 | return nil
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:35:77: error: cannot find type 'NSValueTransformerName' in scope
33 | }
34 |
35 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
36 | return NSValueTransformerName("StringToURL")
37 | }
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:35:50: error: cannot find type 'NSValueTransformerName' in scope
33 | }
34 |
35 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
36 | return NSValueTransformerName("StringToURL")
37 | }
/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 |
[30/30] Compiling ValueTransformerKit URLToStringTransformer.swift
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:10:23: error: cannot find 'NSValueTransformerName' in scope
8 | final class URLToStringTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
9 |
10 | public var name = NSValueTransformerName(rawValue: "URLToString")
| `- error: cannot find 'NSValueTransformerName' in scope
11 | public static let instance = URLToStringTransformer()
12 |
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:8:37: error: cannot find type 'ValueTransformer' in scope
6 | import Foundation
7 |
8 | final class URLToStringTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
| `- error: cannot find type 'ValueTransformer' in scope
9 |
10 | public var name = NSValueTransformerName(rawValue: "URLToString")
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:11:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'URLToStringTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | final class URLToStringTransformer: ValueTransformer, ValueTransformerRegisterable, ValueTransformerSingleton {
| `- note: class 'URLToStringTransformer' does not conform to the 'Sendable' protocol
9 |
10 | public var name = NSValueTransformerName(rawValue: "URLToString")
11 | public static let instance = URLToStringTransformer()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'URLToStringTransformer' 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
12 |
13 | public override class func transformedValueClass() -> AnyClass {
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:13:32: error: method does not override any method from its superclass
11 | public static let instance = URLToStringTransformer()
12 |
13 | public override class func transformedValueClass() -> AnyClass {
| `- error: method does not override any method from its superclass
14 | return NSString.self
15 | }
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:17:32: error: method does not override any method from its superclass
15 | }
16 |
17 | public override class func allowsReverseTransformation() -> Bool {
| `- error: method does not override any method from its superclass
18 | return true
19 | }
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:21:26: error: method does not override any method from its superclass
19 | }
20 |
21 | public override func transformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
22 | guard let url = value as? URL else {
23 | return nil
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:28:26: error: method does not override any method from its superclass
26 | }
27 |
28 | public override func reverseTransformedValue(_ value: Any?) -> Any? {
| `- error: method does not override any method from its superclass
29 | guard let string = value as? String else {
30 | return nil
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:35:77: error: cannot find type 'NSValueTransformerName' in scope
33 | }
34 |
35 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
36 | return NSValueTransformerName("StringToURL")
37 | }
/host/spi-builder-workspace/Sources/URLToStringTransformer.swift:35:50: error: cannot find type 'NSValueTransformerName' in scope
33 | }
34 |
35 | public static func reversableName(from name: NSValueTransformerName) -> NSValueTransformerName {
| `- error: cannot find type 'NSValueTransformerName' in scope
36 | return NSValueTransformerName("StringToURL")
37 | }
/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 |
BUILD FAILURE 6.0 linux