Build Information
Failed to build Helper4Swift, reference master (0b8c30
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 01:51:29 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cs4alhaider/Helper4Swift.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/cs4alhaider/Helper4Swift
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 0b8c305 Update Binding+Extension.swift
Cloned https://github.com/cs4alhaider/Helper4Swift.git
Revision (git rev-parse @):
0b8c305dddbc7486c5e056416008c1aa18e6cf73
SUCCESS checkout https://github.com/cs4alhaider/Helper4Swift.git at master
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "helper4swift",
"name": "Helper4Swift",
"url": "https://github.com/cs4alhaider/Helper4Swift.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Helper4Swift",
"dependencies": [
]
}
]
}
Fetching https://github.com/cs4alhaider/Helper4Swift.git
[1/650] Fetching helper4swift
Fetched https://github.com/cs4alhaider/Helper4Swift.git from cache (0.99s)
Creating working copy for https://github.com/cs4alhaider/Helper4Swift.git
Working copy of https://github.com/cs4alhaider/Helper4Swift.git resolved at master (0b8c305)
warning: '.resolve-product-dependencies': dependency 'helper4swift' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/cs4alhaider/Helper4Swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/39] Emitting module Helper4Swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:18:60: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public extension Binding {
| `- note: add @available attribute to enclosing extension
12 |
13 | /// Get notified when the value changed
:
16 | ///
17 | /// - Returns: same value
18 | func onChange(_ handler: @escaping (Value) -> Void) -> Binding<Value> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
19 | Binding(
20 | get: { self.wrappedValue },
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:11:18: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public extension Binding {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
12 |
13 | /// Get notified when the value changed
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:30:24: error: 'Binding' is only available in macOS 10.15 or newer
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing operator function
31 | Binding(
32 | get: { lhs.wrappedValue ?? rhs },
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:30:57: error: 'Binding' is only available in macOS 10.15 or newer
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing operator function
31 | Binding(
32 | get: { lhs.wrappedValue ?? rhs },
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/CLLocationCoordinate2D+Extension.swift:16:1: warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
14 | }
15 |
16 | extension CLLocationCoordinate2D: Equatable {
| |- warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
17 | public static func == (lhs: CLLocationCoordinate2D, rhs: CLLocationCoordinate2D) -> Bool {
18 | lhs.latitude == rhs.latitude && lhs.longitude == rhs.longitude
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/CheckedContinuation+Extension.swift:10:18: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | public extension CheckedContinuation where T == Void {
| | `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func resume(withErrorIfExist error: E?) {
12 | if let error = error {
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:13:23: error: cannot find type 'UIColor' in scope
11 | public extension Color {
12 |
13 | func uiColor() -> UIColor {
| `- error: cannot find type 'UIColor' in scope
14 |
15 | if #available(iOS 14.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:11:18: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
12 |
13 | func uiColor() -> UIColor {
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:41:18: error: 'Color' is only available in macOS 10.15 or newer
39 |
40 | @available(iOS 14.0, *)
41 | public extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
42 |
43 | /// Converts a SwiftUI Color to a hexadecimal string representation.
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Date+Extension.swift:71:21: error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
27 | }
28 |
29 | public extension Date {
| `- note: add @available attribute to enclosing extension
30 |
31 | /// Getting the current date in selected format
:
67 |
68 | /// https://developer.apple.com/documentation/foundation/relativedatetimeformatter
69 | func relativeTime(
| `- note: add @available attribute to enclosing instance method
70 | in locale: Locale = .current,
71 | unitsStyle: RelativeDateTimeFormatter.UnitsStyle = .short,
| `- error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
72 | relativeTo otherDate: Date = Date()
73 | ) -> String {
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Dispatch+Extension.swift:16:24: warning: static property 'key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | static var isMainQueue: Bool {
15 | enum Static {
16 | static var key: DispatchSpecificKey<Void> = {
| |- warning: static property 'key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'key' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'key' 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 | let key = DispatchSpecificKey<Void>()
18 | DispatchQueue.main.setSpecific(key: key, value: ())
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/String+Extension.swift:348:23: error: 'Color' is only available in macOS 10.15 or newer
344 | }
345 |
346 | public extension String {
| `- note: add @available attribute to enclosing extension
347 | // Initialize Color from Hex String
348 | func toColor() -> Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
349 | let hex = self.trimmingCharacters(in: .whitespacesAndNewlines)
350 | let scanner = Scanner(string: hex)
[4/43] Compiling Helper4Swift UIButton+Extension.swift
[5/43] Compiling Helper4Swift UICollectionView+Extension.swift
[6/43] Compiling Helper4Swift UIColor+Extension.swift
[7/43] Compiling Helper4Swift UIImage+Extension.swift
[8/43] Compiling Helper4Swift UITextView+Extension.swift
[9/43] Compiling Helper4Swift UIView+Extension.swift
[10/43] Compiling Helper4Swift UIViewAutoLayout+Extension.swift
[11/43] Compiling Helper4Swift UIViewController+Extension.swift
[12/43] Compiling Helper4Swift UIStoryboard+Extension.swift
[13/43] Compiling Helper4Swift UITabBarController+Extension.swift
[14/43] Compiling Helper4Swift UITableView+Extension.swift
[15/43] Compiling Helper4Swift UITextField+Extension.swift
[16/43] Compiling Helper4Swift UIViewController+LocalAuthentication+Extension.swift
[17/43] Compiling Helper4Swift URL+Extension.swift
[18/43] Compiling Helper4Swift Helper4Swift.swift
[19/43] Compiling Helper4Swift UIViewFromNib.swift
[20/43] Compiling Helper4Swift Dictionary+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Dispatch+Extension.swift:16:24: warning: static property 'key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | static var isMainQueue: Bool {
15 | enum Static {
16 | static var key: DispatchSpecificKey<Void> = {
| |- warning: static property 'key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'key' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'key' 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 | let key = DispatchSpecificKey<Void>()
18 | DispatchQueue.main.setSpecific(key: key, value: ())
[21/43] Compiling Helper4Swift Dispatch+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Dispatch+Extension.swift:16:24: warning: static property 'key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | static var isMainQueue: Bool {
15 | enum Static {
16 | static var key: DispatchSpecificKey<Void> = {
| |- warning: static property 'key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'key' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'key' 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 | let key = DispatchSpecificKey<Void>()
18 | DispatchQueue.main.setSpecific(key: key, value: ())
[22/43] Compiling Helper4Swift Encodable+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Dispatch+Extension.swift:16:24: warning: static property 'key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | static var isMainQueue: Bool {
15 | enum Static {
16 | static var key: DispatchSpecificKey<Void> = {
| |- warning: static property 'key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'key' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'key' 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 | let key = DispatchSpecificKey<Void>()
18 | DispatchQueue.main.setSpecific(key: key, value: ())
[23/43] Compiling Helper4Swift Int+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Dispatch+Extension.swift:16:24: warning: static property 'key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | static var isMainQueue: Bool {
15 | enum Static {
16 | static var key: DispatchSpecificKey<Void> = {
| |- warning: static property 'key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'key' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'key' 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 | let key = DispatchSpecificKey<Void>()
18 | DispatchQueue.main.setSpecific(key: key, value: ())
[24/43] Compiling Helper4Swift JSONDecoder+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/JSONDecoder+Extension.swift:24:44: warning: capture of 'completion' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | let data = try Data(contentsOf: url)
23 | let downloadedData = try self.decode(type, from: data)
24 | DispatchQueue.main.async { completion(downloadedData) }
| |- warning: capture of 'completion' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
25 | } catch {
26 | print(error.localizedDescription)
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/JSONDecoder+Extension.swift:24:44: warning: capture of 'completion' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | let data = try Data(contentsOf: url)
23 | let downloadedData = try self.decode(type, from: data)
24 | DispatchQueue.main.async { completion(downloadedData) }
| |- warning: capture of 'completion' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
25 | } catch {
26 | print(error.localizedDescription)
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/JSONDecoder+Extension.swift:24:55: warning: capture of 'downloadedData' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | /// - url: URL
17 | /// - completion: data
18 | func decode<T: Decodable>(_ type: T.Type, fromURL url: String, completion: @escaping (T) -> Void) {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
19 | guard let url = URL(string: url) else { fatalError("Invalid URL passed.") }
20 | DispatchQueue.global().async {
:
22 | let data = try Data(contentsOf: url)
23 | let downloadedData = try self.decode(type, from: data)
24 | DispatchQueue.main.async { completion(downloadedData) }
| `- warning: capture of 'downloadedData' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | } catch {
26 | print(error.localizedDescription)
[25/43] Compiling Helper4Swift MKCoordinateSpan+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/JSONDecoder+Extension.swift:24:44: warning: capture of 'completion' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | let data = try Data(contentsOf: url)
23 | let downloadedData = try self.decode(type, from: data)
24 | DispatchQueue.main.async { completion(downloadedData) }
| |- warning: capture of 'completion' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
25 | } catch {
26 | print(error.localizedDescription)
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/JSONDecoder+Extension.swift:24:44: warning: capture of 'completion' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | let data = try Data(contentsOf: url)
23 | let downloadedData = try self.decode(type, from: data)
24 | DispatchQueue.main.async { completion(downloadedData) }
| |- warning: capture of 'completion' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
25 | } catch {
26 | print(error.localizedDescription)
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/JSONDecoder+Extension.swift:24:55: warning: capture of 'downloadedData' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | /// - url: URL
17 | /// - completion: data
18 | func decode<T: Decodable>(_ type: T.Type, fromURL url: String, completion: @escaping (T) -> Void) {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
19 | guard let url = URL(string: url) else { fatalError("Invalid URL passed.") }
20 | DispatchQueue.global().async {
:
22 | let data = try Data(contentsOf: url)
23 | let downloadedData = try self.decode(type, from: data)
24 | DispatchQueue.main.async { completion(downloadedData) }
| `- warning: capture of 'downloadedData' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | } catch {
26 | print(error.localizedDescription)
[26/43] Compiling Helper4Swift NSMutableAttributedString+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/JSONDecoder+Extension.swift:24:44: warning: capture of 'completion' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | let data = try Data(contentsOf: url)
23 | let downloadedData = try self.decode(type, from: data)
24 | DispatchQueue.main.async { completion(downloadedData) }
| |- warning: capture of 'completion' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
25 | } catch {
26 | print(error.localizedDescription)
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/JSONDecoder+Extension.swift:24:44: warning: capture of 'completion' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | let data = try Data(contentsOf: url)
23 | let downloadedData = try self.decode(type, from: data)
24 | DispatchQueue.main.async { completion(downloadedData) }
| |- warning: capture of 'completion' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
25 | } catch {
26 | print(error.localizedDescription)
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/JSONDecoder+Extension.swift:24:55: warning: capture of 'downloadedData' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | /// - url: URL
17 | /// - completion: data
18 | func decode<T: Decodable>(_ type: T.Type, fromURL url: String, completion: @escaping (T) -> Void) {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
19 | guard let url = URL(string: url) else { fatalError("Invalid URL passed.") }
20 | DispatchQueue.global().async {
:
22 | let data = try Data(contentsOf: url)
23 | let downloadedData = try self.decode(type, from: data)
24 | DispatchQueue.main.async { completion(downloadedData) }
| `- warning: capture of 'downloadedData' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | } catch {
26 | print(error.localizedDescription)
[27/43] Compiling Helper4Swift Optional+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/JSONDecoder+Extension.swift:24:44: warning: capture of 'completion' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | let data = try Data(contentsOf: url)
23 | let downloadedData = try self.decode(type, from: data)
24 | DispatchQueue.main.async { completion(downloadedData) }
| |- warning: capture of 'completion' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
25 | } catch {
26 | print(error.localizedDescription)
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/JSONDecoder+Extension.swift:24:44: warning: capture of 'completion' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | let data = try Data(contentsOf: url)
23 | let downloadedData = try self.decode(type, from: data)
24 | DispatchQueue.main.async { completion(downloadedData) }
| |- warning: capture of 'completion' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
25 | } catch {
26 | print(error.localizedDescription)
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/JSONDecoder+Extension.swift:24:55: warning: capture of 'downloadedData' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | /// - url: URL
17 | /// - completion: data
18 | func decode<T: Decodable>(_ type: T.Type, fromURL url: String, completion: @escaping (T) -> Void) {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
19 | guard let url = URL(string: url) else { fatalError("Invalid URL passed.") }
20 | DispatchQueue.global().async {
:
22 | let data = try Data(contentsOf: url)
23 | let downloadedData = try self.decode(type, from: data)
24 | DispatchQueue.main.async { completion(downloadedData) }
| `- warning: capture of 'downloadedData' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | } catch {
26 | print(error.localizedDescription)
[28/43] Compiling Helper4Swift Array+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:18:60: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public extension Binding {
| `- note: add @available attribute to enclosing extension
12 |
13 | /// Get notified when the value changed
:
16 | ///
17 | /// - Returns: same value
18 | func onChange(_ handler: @escaping (Value) -> Void) -> Binding<Value> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
19 | Binding(
20 | get: { self.wrappedValue },
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:11:18: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public extension Binding {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
12 |
13 | /// Get notified when the value changed
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:30:24: error: 'Binding' is only available in macOS 10.15 or newer
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing operator function
31 | Binding(
32 | get: { lhs.wrappedValue ?? rhs },
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:30:57: error: 'Binding' is only available in macOS 10.15 or newer
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing operator function
31 | Binding(
32 | get: { lhs.wrappedValue ?? rhs },
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:19:9: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public extension Binding {
| `- note: add @available attribute to enclosing extension
12 |
13 | /// Get notified when the value changed
:
16 | ///
17 | /// - Returns: same value
18 | func onChange(_ handler: @escaping (Value) -> Void) -> Binding<Value> {
| `- note: add @available attribute to enclosing instance method
19 | Binding(
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | get: { self.wrappedValue },
21 | set: { newValue in
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:20:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | func onChange(_ handler: @escaping (Value) -> Void) -> Binding<Value> {
19 | Binding(
20 | get: { self.wrappedValue },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | set: { newValue in
22 | self.wrappedValue = newValue
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:22:17: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | get: { self.wrappedValue },
21 | set: { newValue in
22 | self.wrappedValue = newValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | handler(newValue)
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:23:17: warning: capture of 'handler' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | set: { newValue in
22 | self.wrappedValue = newValue
23 | handler(newValue)
| |- warning: capture of 'handler' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
24 | }
25 | )
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:31:5: error: 'Binding' is only available in macOS 10.15 or newer
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| `- note: add @available attribute to enclosing operator function
31 | Binding(
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | get: { lhs.wrappedValue ?? rhs },
33 | set: { lhs.wrappedValue = $0 }
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:32:16: warning: capture of 'lhs' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
31 | Binding(
32 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'lhs' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 | set: { lhs.wrappedValue = $0 }
34 | )
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:32:36: warning: capture of 'rhs' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
31 | Binding(
32 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'rhs' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 | set: { lhs.wrappedValue = $0 }
34 | )
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:32:36: warning: implicit capture of 'rhs' requires that 'T' conforms to `Sendable`; this is an error in the Swift 6 language mode
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
31 | Binding(
32 | get: { lhs.wrappedValue ?? rhs },
| `- warning: implicit capture of 'rhs' requires that 'T' conforms to `Sendable`; this is an error in the Swift 6 language mode
33 | set: { lhs.wrappedValue = $0 }
34 | )
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:33:16: warning: capture of 'lhs' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
31 | Binding(
32 | get: { lhs.wrappedValue ?? rhs },
33 | set: { lhs.wrappedValue = $0 }
| `- warning: capture of 'lhs' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | )
35 | }
[29/43] Compiling Helper4Swift Binding+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:18:60: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public extension Binding {
| `- note: add @available attribute to enclosing extension
12 |
13 | /// Get notified when the value changed
:
16 | ///
17 | /// - Returns: same value
18 | func onChange(_ handler: @escaping (Value) -> Void) -> Binding<Value> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
19 | Binding(
20 | get: { self.wrappedValue },
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:11:18: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public extension Binding {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
12 |
13 | /// Get notified when the value changed
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:30:24: error: 'Binding' is only available in macOS 10.15 or newer
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing operator function
31 | Binding(
32 | get: { lhs.wrappedValue ?? rhs },
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:30:57: error: 'Binding' is only available in macOS 10.15 or newer
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing operator function
31 | Binding(
32 | get: { lhs.wrappedValue ?? rhs },
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:19:9: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public extension Binding {
| `- note: add @available attribute to enclosing extension
12 |
13 | /// Get notified when the value changed
:
16 | ///
17 | /// - Returns: same value
18 | func onChange(_ handler: @escaping (Value) -> Void) -> Binding<Value> {
| `- note: add @available attribute to enclosing instance method
19 | Binding(
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | get: { self.wrappedValue },
21 | set: { newValue in
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:20:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | func onChange(_ handler: @escaping (Value) -> Void) -> Binding<Value> {
19 | Binding(
20 | get: { self.wrappedValue },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | set: { newValue in
22 | self.wrappedValue = newValue
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:22:17: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | get: { self.wrappedValue },
21 | set: { newValue in
22 | self.wrappedValue = newValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | handler(newValue)
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:23:17: warning: capture of 'handler' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | set: { newValue in
22 | self.wrappedValue = newValue
23 | handler(newValue)
| |- warning: capture of 'handler' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
24 | }
25 | )
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:31:5: error: 'Binding' is only available in macOS 10.15 or newer
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| `- note: add @available attribute to enclosing operator function
31 | Binding(
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | get: { lhs.wrappedValue ?? rhs },
33 | set: { lhs.wrappedValue = $0 }
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:32:16: warning: capture of 'lhs' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
31 | Binding(
32 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'lhs' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 | set: { lhs.wrappedValue = $0 }
34 | )
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:32:36: warning: capture of 'rhs' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
31 | Binding(
32 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'rhs' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 | set: { lhs.wrappedValue = $0 }
34 | )
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:32:36: warning: implicit capture of 'rhs' requires that 'T' conforms to `Sendable`; this is an error in the Swift 6 language mode
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
31 | Binding(
32 | get: { lhs.wrappedValue ?? rhs },
| `- warning: implicit capture of 'rhs' requires that 'T' conforms to `Sendable`; this is an error in the Swift 6 language mode
33 | set: { lhs.wrappedValue = $0 }
34 | )
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:33:16: warning: capture of 'lhs' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
31 | Binding(
32 | get: { lhs.wrappedValue ?? rhs },
33 | set: { lhs.wrappedValue = $0 }
| `- warning: capture of 'lhs' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | )
35 | }
[30/43] Compiling Helper4Swift Bundle+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:18:60: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public extension Binding {
| `- note: add @available attribute to enclosing extension
12 |
13 | /// Get notified when the value changed
:
16 | ///
17 | /// - Returns: same value
18 | func onChange(_ handler: @escaping (Value) -> Void) -> Binding<Value> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
19 | Binding(
20 | get: { self.wrappedValue },
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:11:18: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public extension Binding {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
12 |
13 | /// Get notified when the value changed
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:30:24: error: 'Binding' is only available in macOS 10.15 or newer
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing operator function
31 | Binding(
32 | get: { lhs.wrappedValue ?? rhs },
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:30:57: error: 'Binding' is only available in macOS 10.15 or newer
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing operator function
31 | Binding(
32 | get: { lhs.wrappedValue ?? rhs },
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:19:9: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public extension Binding {
| `- note: add @available attribute to enclosing extension
12 |
13 | /// Get notified when the value changed
:
16 | ///
17 | /// - Returns: same value
18 | func onChange(_ handler: @escaping (Value) -> Void) -> Binding<Value> {
| `- note: add @available attribute to enclosing instance method
19 | Binding(
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | get: { self.wrappedValue },
21 | set: { newValue in
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:20:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | func onChange(_ handler: @escaping (Value) -> Void) -> Binding<Value> {
19 | Binding(
20 | get: { self.wrappedValue },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | set: { newValue in
22 | self.wrappedValue = newValue
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:22:17: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | get: { self.wrappedValue },
21 | set: { newValue in
22 | self.wrappedValue = newValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | handler(newValue)
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:23:17: warning: capture of 'handler' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | set: { newValue in
22 | self.wrappedValue = newValue
23 | handler(newValue)
| |- warning: capture of 'handler' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
24 | }
25 | )
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:31:5: error: 'Binding' is only available in macOS 10.15 or newer
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| `- note: add @available attribute to enclosing operator function
31 | Binding(
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | get: { lhs.wrappedValue ?? rhs },
33 | set: { lhs.wrappedValue = $0 }
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:32:16: warning: capture of 'lhs' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
31 | Binding(
32 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'lhs' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 | set: { lhs.wrappedValue = $0 }
34 | )
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:32:36: warning: capture of 'rhs' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
31 | Binding(
32 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'rhs' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 | set: { lhs.wrappedValue = $0 }
34 | )
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:32:36: warning: implicit capture of 'rhs' requires that 'T' conforms to `Sendable`; this is an error in the Swift 6 language mode
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
31 | Binding(
32 | get: { lhs.wrappedValue ?? rhs },
| `- warning: implicit capture of 'rhs' requires that 'T' conforms to `Sendable`; this is an error in the Swift 6 language mode
33 | set: { lhs.wrappedValue = $0 }
34 | )
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:33:16: warning: capture of 'lhs' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
31 | Binding(
32 | get: { lhs.wrappedValue ?? rhs },
33 | set: { lhs.wrappedValue = $0 }
| `- warning: capture of 'lhs' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | )
35 | }
[31/43] Compiling Helper4Swift CALayer+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:18:60: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public extension Binding {
| `- note: add @available attribute to enclosing extension
12 |
13 | /// Get notified when the value changed
:
16 | ///
17 | /// - Returns: same value
18 | func onChange(_ handler: @escaping (Value) -> Void) -> Binding<Value> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
19 | Binding(
20 | get: { self.wrappedValue },
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:11:18: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public extension Binding {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
12 |
13 | /// Get notified when the value changed
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:30:24: error: 'Binding' is only available in macOS 10.15 or newer
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing operator function
31 | Binding(
32 | get: { lhs.wrappedValue ?? rhs },
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:30:57: error: 'Binding' is only available in macOS 10.15 or newer
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing operator function
31 | Binding(
32 | get: { lhs.wrappedValue ?? rhs },
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:19:9: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public extension Binding {
| `- note: add @available attribute to enclosing extension
12 |
13 | /// Get notified when the value changed
:
16 | ///
17 | /// - Returns: same value
18 | func onChange(_ handler: @escaping (Value) -> Void) -> Binding<Value> {
| `- note: add @available attribute to enclosing instance method
19 | Binding(
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | get: { self.wrappedValue },
21 | set: { newValue in
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:20:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | func onChange(_ handler: @escaping (Value) -> Void) -> Binding<Value> {
19 | Binding(
20 | get: { self.wrappedValue },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | set: { newValue in
22 | self.wrappedValue = newValue
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:22:17: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | get: { self.wrappedValue },
21 | set: { newValue in
22 | self.wrappedValue = newValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | handler(newValue)
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:23:17: warning: capture of 'handler' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | set: { newValue in
22 | self.wrappedValue = newValue
23 | handler(newValue)
| |- warning: capture of 'handler' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
24 | }
25 | )
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:31:5: error: 'Binding' is only available in macOS 10.15 or newer
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| `- note: add @available attribute to enclosing operator function
31 | Binding(
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | get: { lhs.wrappedValue ?? rhs },
33 | set: { lhs.wrappedValue = $0 }
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:32:16: warning: capture of 'lhs' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
31 | Binding(
32 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'lhs' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 | set: { lhs.wrappedValue = $0 }
34 | )
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:32:36: warning: capture of 'rhs' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
31 | Binding(
32 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'rhs' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 | set: { lhs.wrappedValue = $0 }
34 | )
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:32:36: warning: implicit capture of 'rhs' requires that 'T' conforms to `Sendable`; this is an error in the Swift 6 language mode
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
31 | Binding(
32 | get: { lhs.wrappedValue ?? rhs },
| `- warning: implicit capture of 'rhs' requires that 'T' conforms to `Sendable`; this is an error in the Swift 6 language mode
33 | set: { lhs.wrappedValue = $0 }
34 | )
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Binding+Extension.swift:33:16: warning: capture of 'lhs' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 |
29 | @available(iOS 13.0, *)
30 | public func ??<T>(lhs: Binding<Optional<T>>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
31 | Binding(
32 | get: { lhs.wrappedValue ?? rhs },
33 | set: { lhs.wrappedValue = $0 }
| `- warning: capture of 'lhs' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | )
35 | }
[32/43] Compiling Helper4Swift CLLocationCoordinate2D+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/CLLocationCoordinate2D+Extension.swift:16:1: warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
14 | }
15 |
16 | extension CLLocationCoordinate2D: Equatable {
| |- warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
17 | public static func == (lhs: CLLocationCoordinate2D, rhs: CLLocationCoordinate2D) -> Bool {
18 | lhs.latitude == rhs.latitude && lhs.longitude == rhs.longitude
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/CheckedContinuation+Extension.swift:10:18: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | public extension CheckedContinuation where T == Void {
| | `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func resume(withErrorIfExist error: E?) {
12 | if let error = error {
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/CheckedContinuation+Extension.swift:15:13: error: 'resume()' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | public extension CheckedContinuation where T == Void {
| `- note: add @available attribute to enclosing extension
11 | func resume(withErrorIfExist error: E?) {
| `- note: add @available attribute to enclosing instance method
12 | if let error = error {
13 | resume(throwing: error)
14 | } else {
15 | resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | }
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:13:23: error: cannot find type 'UIColor' in scope
11 | public extension Color {
12 |
13 | func uiColor() -> UIColor {
| `- error: cannot find type 'UIColor' in scope
14 |
15 | if #available(iOS 14.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:11:18: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
12 |
13 | func uiColor() -> UIColor {
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:41:18: error: 'Color' is only available in macOS 10.15 or newer
39 |
40 | @available(iOS 14.0, *)
41 | public extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
42 |
43 | /// Converts a SwiftUI Color to a hexadecimal string representation.
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:49:23: error: cannot find 'UIColor' in scope
47 | func toHexString() -> String? {
48 | // Convert the Color to UIColor
49 | let uiColor = UIColor(self)
| `- error: cannot find 'UIColor' in scope
50 |
51 | // Extract RGBA components from UIColor
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:77:21: error: 'currentIndex' is only available in macOS 10.15 or newer
39 |
40 | @available(iOS 14.0, *)
41 | public extension Color {
| `- note: add @available attribute to enclosing extension
42 |
43 | /// Converts a SwiftUI Color to a hexadecimal string representation.
:
70 |
71 | // Initialize Color from Hex String
72 | init(hex: String) {
| `- note: add @available attribute to enclosing initializer
73 | let hexString = hex.trimmingCharacters(in: .whitespacesAndNewlines)
74 | let scanner = Scanner(string: hexString)
75 |
76 | if hexString.hasPrefix("#") {
77 | scanner.currentIndex = hexString.index(after: hexString.startIndex)
| |- error: 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | }
79 |
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:92:14: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
39 |
40 | @available(iOS 14.0, *)
41 | public extension Color {
| `- note: add @available attribute to enclosing extension
42 |
43 | /// Converts a SwiftUI Color to a hexadecimal string representation.
:
70 |
71 | // Initialize Color from Hex String
72 | init(hex: String) {
| `- note: add @available attribute to enclosing initializer
73 | let hexString = hex.trimmingCharacters(in: .whitespacesAndNewlines)
74 | let scanner = Scanner(string: hexString)
:
90 | let blue = CGFloat(b) / 255
91 |
92 | self.init(red: red, green: green, blue: blue)
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | }
94 |
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:103:32: error: cannot find 'UIColor' in scope
101 | func isDarkColor() -> Bool {
102 | // Extract RGB components from the color
103 | guard let components = UIColor(self).cgColor.components, components.count >= 3 else {
| `- error: cannot find 'UIColor' in scope
104 | return false
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Date+Extension.swift:71:21: error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
27 | }
28 |
29 | public extension Date {
| `- note: add @available attribute to enclosing extension
30 |
31 | /// Getting the current date in selected format
:
67 |
68 | /// https://developer.apple.com/documentation/foundation/relativedatetimeformatter
69 | func relativeTime(
| `- note: add @available attribute to enclosing instance method
70 | in locale: Locale = .current,
71 | unitsStyle: RelativeDateTimeFormatter.UnitsStyle = .short,
| `- error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
72 | relativeTo otherDate: Date = Date()
73 | ) -> String {
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Date+Extension.swift:74:25: error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
27 | }
28 |
29 | public extension Date {
| `- note: add @available attribute to enclosing extension
30 |
31 | /// Getting the current date in selected format
:
67 |
68 | /// https://developer.apple.com/documentation/foundation/relativedatetimeformatter
69 | func relativeTime(
| `- note: add @available attribute to enclosing instance method
70 | in locale: Locale = .current,
71 | unitsStyle: RelativeDateTimeFormatter.UnitsStyle = .short,
72 | relativeTo otherDate: Date = Date()
73 | ) -> String {
74 | let formatter = RelativeDateTimeFormatter()
| |- error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | formatter.locale = locale
76 | formatter.unitsStyle = unitsStyle
[33/43] Compiling Helper4Swift CheckedContinuation+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/CLLocationCoordinate2D+Extension.swift:16:1: warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
14 | }
15 |
16 | extension CLLocationCoordinate2D: Equatable {
| |- warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
17 | public static func == (lhs: CLLocationCoordinate2D, rhs: CLLocationCoordinate2D) -> Bool {
18 | lhs.latitude == rhs.latitude && lhs.longitude == rhs.longitude
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/CheckedContinuation+Extension.swift:10:18: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | public extension CheckedContinuation where T == Void {
| | `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func resume(withErrorIfExist error: E?) {
12 | if let error = error {
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/CheckedContinuation+Extension.swift:15:13: error: 'resume()' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | public extension CheckedContinuation where T == Void {
| `- note: add @available attribute to enclosing extension
11 | func resume(withErrorIfExist error: E?) {
| `- note: add @available attribute to enclosing instance method
12 | if let error = error {
13 | resume(throwing: error)
14 | } else {
15 | resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | }
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:13:23: error: cannot find type 'UIColor' in scope
11 | public extension Color {
12 |
13 | func uiColor() -> UIColor {
| `- error: cannot find type 'UIColor' in scope
14 |
15 | if #available(iOS 14.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:11:18: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
12 |
13 | func uiColor() -> UIColor {
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:41:18: error: 'Color' is only available in macOS 10.15 or newer
39 |
40 | @available(iOS 14.0, *)
41 | public extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
42 |
43 | /// Converts a SwiftUI Color to a hexadecimal string representation.
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:49:23: error: cannot find 'UIColor' in scope
47 | func toHexString() -> String? {
48 | // Convert the Color to UIColor
49 | let uiColor = UIColor(self)
| `- error: cannot find 'UIColor' in scope
50 |
51 | // Extract RGBA components from UIColor
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:77:21: error: 'currentIndex' is only available in macOS 10.15 or newer
39 |
40 | @available(iOS 14.0, *)
41 | public extension Color {
| `- note: add @available attribute to enclosing extension
42 |
43 | /// Converts a SwiftUI Color to a hexadecimal string representation.
:
70 |
71 | // Initialize Color from Hex String
72 | init(hex: String) {
| `- note: add @available attribute to enclosing initializer
73 | let hexString = hex.trimmingCharacters(in: .whitespacesAndNewlines)
74 | let scanner = Scanner(string: hexString)
75 |
76 | if hexString.hasPrefix("#") {
77 | scanner.currentIndex = hexString.index(after: hexString.startIndex)
| |- error: 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | }
79 |
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:92:14: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
39 |
40 | @available(iOS 14.0, *)
41 | public extension Color {
| `- note: add @available attribute to enclosing extension
42 |
43 | /// Converts a SwiftUI Color to a hexadecimal string representation.
:
70 |
71 | // Initialize Color from Hex String
72 | init(hex: String) {
| `- note: add @available attribute to enclosing initializer
73 | let hexString = hex.trimmingCharacters(in: .whitespacesAndNewlines)
74 | let scanner = Scanner(string: hexString)
:
90 | let blue = CGFloat(b) / 255
91 |
92 | self.init(red: red, green: green, blue: blue)
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | }
94 |
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:103:32: error: cannot find 'UIColor' in scope
101 | func isDarkColor() -> Bool {
102 | // Extract RGB components from the color
103 | guard let components = UIColor(self).cgColor.components, components.count >= 3 else {
| `- error: cannot find 'UIColor' in scope
104 | return false
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Date+Extension.swift:71:21: error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
27 | }
28 |
29 | public extension Date {
| `- note: add @available attribute to enclosing extension
30 |
31 | /// Getting the current date in selected format
:
67 |
68 | /// https://developer.apple.com/documentation/foundation/relativedatetimeformatter
69 | func relativeTime(
| `- note: add @available attribute to enclosing instance method
70 | in locale: Locale = .current,
71 | unitsStyle: RelativeDateTimeFormatter.UnitsStyle = .short,
| `- error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
72 | relativeTo otherDate: Date = Date()
73 | ) -> String {
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Date+Extension.swift:74:25: error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
27 | }
28 |
29 | public extension Date {
| `- note: add @available attribute to enclosing extension
30 |
31 | /// Getting the current date in selected format
:
67 |
68 | /// https://developer.apple.com/documentation/foundation/relativedatetimeformatter
69 | func relativeTime(
| `- note: add @available attribute to enclosing instance method
70 | in locale: Locale = .current,
71 | unitsStyle: RelativeDateTimeFormatter.UnitsStyle = .short,
72 | relativeTo otherDate: Date = Date()
73 | ) -> String {
74 | let formatter = RelativeDateTimeFormatter()
| |- error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | formatter.locale = locale
76 | formatter.unitsStyle = unitsStyle
[34/43] Compiling Helper4Swift Color+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/CLLocationCoordinate2D+Extension.swift:16:1: warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
14 | }
15 |
16 | extension CLLocationCoordinate2D: Equatable {
| |- warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
17 | public static func == (lhs: CLLocationCoordinate2D, rhs: CLLocationCoordinate2D) -> Bool {
18 | lhs.latitude == rhs.latitude && lhs.longitude == rhs.longitude
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/CheckedContinuation+Extension.swift:10:18: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | public extension CheckedContinuation where T == Void {
| | `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func resume(withErrorIfExist error: E?) {
12 | if let error = error {
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/CheckedContinuation+Extension.swift:15:13: error: 'resume()' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | public extension CheckedContinuation where T == Void {
| `- note: add @available attribute to enclosing extension
11 | func resume(withErrorIfExist error: E?) {
| `- note: add @available attribute to enclosing instance method
12 | if let error = error {
13 | resume(throwing: error)
14 | } else {
15 | resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | }
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:13:23: error: cannot find type 'UIColor' in scope
11 | public extension Color {
12 |
13 | func uiColor() -> UIColor {
| `- error: cannot find type 'UIColor' in scope
14 |
15 | if #available(iOS 14.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:11:18: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
12 |
13 | func uiColor() -> UIColor {
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:41:18: error: 'Color' is only available in macOS 10.15 or newer
39 |
40 | @available(iOS 14.0, *)
41 | public extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
42 |
43 | /// Converts a SwiftUI Color to a hexadecimal string representation.
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:49:23: error: cannot find 'UIColor' in scope
47 | func toHexString() -> String? {
48 | // Convert the Color to UIColor
49 | let uiColor = UIColor(self)
| `- error: cannot find 'UIColor' in scope
50 |
51 | // Extract RGBA components from UIColor
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:77:21: error: 'currentIndex' is only available in macOS 10.15 or newer
39 |
40 | @available(iOS 14.0, *)
41 | public extension Color {
| `- note: add @available attribute to enclosing extension
42 |
43 | /// Converts a SwiftUI Color to a hexadecimal string representation.
:
70 |
71 | // Initialize Color from Hex String
72 | init(hex: String) {
| `- note: add @available attribute to enclosing initializer
73 | let hexString = hex.trimmingCharacters(in: .whitespacesAndNewlines)
74 | let scanner = Scanner(string: hexString)
75 |
76 | if hexString.hasPrefix("#") {
77 | scanner.currentIndex = hexString.index(after: hexString.startIndex)
| |- error: 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | }
79 |
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:92:14: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
39 |
40 | @available(iOS 14.0, *)
41 | public extension Color {
| `- note: add @available attribute to enclosing extension
42 |
43 | /// Converts a SwiftUI Color to a hexadecimal string representation.
:
70 |
71 | // Initialize Color from Hex String
72 | init(hex: String) {
| `- note: add @available attribute to enclosing initializer
73 | let hexString = hex.trimmingCharacters(in: .whitespacesAndNewlines)
74 | let scanner = Scanner(string: hexString)
:
90 | let blue = CGFloat(b) / 255
91 |
92 | self.init(red: red, green: green, blue: blue)
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | }
94 |
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:103:32: error: cannot find 'UIColor' in scope
101 | func isDarkColor() -> Bool {
102 | // Extract RGB components from the color
103 | guard let components = UIColor(self).cgColor.components, components.count >= 3 else {
| `- error: cannot find 'UIColor' in scope
104 | return false
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Date+Extension.swift:71:21: error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
27 | }
28 |
29 | public extension Date {
| `- note: add @available attribute to enclosing extension
30 |
31 | /// Getting the current date in selected format
:
67 |
68 | /// https://developer.apple.com/documentation/foundation/relativedatetimeformatter
69 | func relativeTime(
| `- note: add @available attribute to enclosing instance method
70 | in locale: Locale = .current,
71 | unitsStyle: RelativeDateTimeFormatter.UnitsStyle = .short,
| `- error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
72 | relativeTo otherDate: Date = Date()
73 | ) -> String {
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Date+Extension.swift:74:25: error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
27 | }
28 |
29 | public extension Date {
| `- note: add @available attribute to enclosing extension
30 |
31 | /// Getting the current date in selected format
:
67 |
68 | /// https://developer.apple.com/documentation/foundation/relativedatetimeformatter
69 | func relativeTime(
| `- note: add @available attribute to enclosing instance method
70 | in locale: Locale = .current,
71 | unitsStyle: RelativeDateTimeFormatter.UnitsStyle = .short,
72 | relativeTo otherDate: Date = Date()
73 | ) -> String {
74 | let formatter = RelativeDateTimeFormatter()
| |- error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | formatter.locale = locale
76 | formatter.unitsStyle = unitsStyle
[35/43] Compiling Helper4Swift Date+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/CLLocationCoordinate2D+Extension.swift:16:1: warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
14 | }
15 |
16 | extension CLLocationCoordinate2D: Equatable {
| |- warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
17 | public static func == (lhs: CLLocationCoordinate2D, rhs: CLLocationCoordinate2D) -> Bool {
18 | lhs.latitude == rhs.latitude && lhs.longitude == rhs.longitude
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/CheckedContinuation+Extension.swift:10:18: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | public extension CheckedContinuation where T == Void {
| | `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func resume(withErrorIfExist error: E?) {
12 | if let error = error {
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/CheckedContinuation+Extension.swift:15:13: error: 'resume()' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | public extension CheckedContinuation where T == Void {
| `- note: add @available attribute to enclosing extension
11 | func resume(withErrorIfExist error: E?) {
| `- note: add @available attribute to enclosing instance method
12 | if let error = error {
13 | resume(throwing: error)
14 | } else {
15 | resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | }
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:13:23: error: cannot find type 'UIColor' in scope
11 | public extension Color {
12 |
13 | func uiColor() -> UIColor {
| `- error: cannot find type 'UIColor' in scope
14 |
15 | if #available(iOS 14.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:11:18: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
12 |
13 | func uiColor() -> UIColor {
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:41:18: error: 'Color' is only available in macOS 10.15 or newer
39 |
40 | @available(iOS 14.0, *)
41 | public extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
42 |
43 | /// Converts a SwiftUI Color to a hexadecimal string representation.
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:49:23: error: cannot find 'UIColor' in scope
47 | func toHexString() -> String? {
48 | // Convert the Color to UIColor
49 | let uiColor = UIColor(self)
| `- error: cannot find 'UIColor' in scope
50 |
51 | // Extract RGBA components from UIColor
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:77:21: error: 'currentIndex' is only available in macOS 10.15 or newer
39 |
40 | @available(iOS 14.0, *)
41 | public extension Color {
| `- note: add @available attribute to enclosing extension
42 |
43 | /// Converts a SwiftUI Color to a hexadecimal string representation.
:
70 |
71 | // Initialize Color from Hex String
72 | init(hex: String) {
| `- note: add @available attribute to enclosing initializer
73 | let hexString = hex.trimmingCharacters(in: .whitespacesAndNewlines)
74 | let scanner = Scanner(string: hexString)
75 |
76 | if hexString.hasPrefix("#") {
77 | scanner.currentIndex = hexString.index(after: hexString.startIndex)
| |- error: 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | }
79 |
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:92:14: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
39 |
40 | @available(iOS 14.0, *)
41 | public extension Color {
| `- note: add @available attribute to enclosing extension
42 |
43 | /// Converts a SwiftUI Color to a hexadecimal string representation.
:
70 |
71 | // Initialize Color from Hex String
72 | init(hex: String) {
| `- note: add @available attribute to enclosing initializer
73 | let hexString = hex.trimmingCharacters(in: .whitespacesAndNewlines)
74 | let scanner = Scanner(string: hexString)
:
90 | let blue = CGFloat(b) / 255
91 |
92 | self.init(red: red, green: green, blue: blue)
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | }
94 |
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Color+Extension.swift:103:32: error: cannot find 'UIColor' in scope
101 | func isDarkColor() -> Bool {
102 | // Extract RGB components from the color
103 | guard let components = UIColor(self).cgColor.components, components.count >= 3 else {
| `- error: cannot find 'UIColor' in scope
104 | return false
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Date+Extension.swift:71:21: error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
27 | }
28 |
29 | public extension Date {
| `- note: add @available attribute to enclosing extension
30 |
31 | /// Getting the current date in selected format
:
67 |
68 | /// https://developer.apple.com/documentation/foundation/relativedatetimeformatter
69 | func relativeTime(
| `- note: add @available attribute to enclosing instance method
70 | in locale: Locale = .current,
71 | unitsStyle: RelativeDateTimeFormatter.UnitsStyle = .short,
| `- error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
72 | relativeTo otherDate: Date = Date()
73 | ) -> String {
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Date+Extension.swift:74:25: error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
27 | }
28 |
29 | public extension Date {
| `- note: add @available attribute to enclosing extension
30 |
31 | /// Getting the current date in selected format
:
67 |
68 | /// https://developer.apple.com/documentation/foundation/relativedatetimeformatter
69 | func relativeTime(
| `- note: add @available attribute to enclosing instance method
70 | in locale: Locale = .current,
71 | unitsStyle: RelativeDateTimeFormatter.UnitsStyle = .short,
72 | relativeTo otherDate: Date = Date()
73 | ) -> String {
74 | let formatter = RelativeDateTimeFormatter()
| |- error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | formatter.locale = locale
76 | formatter.unitsStyle = unitsStyle
[36/43] Compiling Helper4Swift UIImageView+Extension.swift
[37/43] Compiling Helper4Swift UIKeyboardType+Extension.swift
[38/43] Compiling Helper4Swift UILabel+Extension.swift
[39/43] Compiling Helper4Swift UINavigationController+Extension.swift
[40/43] Compiling Helper4Swift Sequence+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/String+Extension.swift:348:23: error: 'Color' is only available in macOS 10.15 or newer
344 | }
345 |
346 | public extension String {
| `- note: add @available attribute to enclosing extension
347 | // Initialize Color from Hex String
348 | func toColor() -> Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
349 | let hex = self.trimmingCharacters(in: .whitespacesAndNewlines)
350 | let scanner = Scanner(string: hex)
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/String+Extension.swift:353:21: error: 'currentIndex' is only available in macOS 10.15 or newer
344 | }
345 |
346 | public extension String {
| `- note: add @available attribute to enclosing extension
347 | // Initialize Color from Hex String
348 | func toColor() -> Color {
| `- note: add @available attribute to enclosing instance method
349 | let hex = self.trimmingCharacters(in: .whitespacesAndNewlines)
350 | let scanner = Scanner(string: hex)
351 |
352 | if hex.hasPrefix("#") {
353 | scanner.currentIndex = hex.index(after: hex.startIndex)
| |- error: 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
354 | }
355 |
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/String+Extension.swift:368:16: error: 'Color' is only available in macOS 10.15 or newer
344 | }
345 |
346 | public extension String {
| `- note: add @available attribute to enclosing extension
347 | // Initialize Color from Hex String
348 | func toColor() -> Color {
| `- note: add @available attribute to enclosing instance method
349 | let hex = self.trimmingCharacters(in: .whitespacesAndNewlines)
350 | let scanner = Scanner(string: hex)
:
366 | let blue = CGFloat(b) / 255
367 |
368 | return Color(red: red, green: green, blue: blue)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
369 | }
370 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/String+Extension.swift:368:16: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
344 | }
345 |
346 | public extension String {
| `- note: add @available attribute to enclosing extension
347 | // Initialize Color from Hex String
348 | func toColor() -> Color {
| `- note: add @available attribute to enclosing instance method
349 | let hex = self.trimmingCharacters(in: .whitespacesAndNewlines)
350 | let scanner = Scanner(string: hex)
:
366 | let blue = CGFloat(b) / 255
367 |
368 | return Color(red: red, green: green, blue: blue)
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
369 | }
370 | }
[41/43] Compiling Helper4Swift String+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/String+Extension.swift:348:23: error: 'Color' is only available in macOS 10.15 or newer
344 | }
345 |
346 | public extension String {
| `- note: add @available attribute to enclosing extension
347 | // Initialize Color from Hex String
348 | func toColor() -> Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
349 | let hex = self.trimmingCharacters(in: .whitespacesAndNewlines)
350 | let scanner = Scanner(string: hex)
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/String+Extension.swift:353:21: error: 'currentIndex' is only available in macOS 10.15 or newer
344 | }
345 |
346 | public extension String {
| `- note: add @available attribute to enclosing extension
347 | // Initialize Color from Hex String
348 | func toColor() -> Color {
| `- note: add @available attribute to enclosing instance method
349 | let hex = self.trimmingCharacters(in: .whitespacesAndNewlines)
350 | let scanner = Scanner(string: hex)
351 |
352 | if hex.hasPrefix("#") {
353 | scanner.currentIndex = hex.index(after: hex.startIndex)
| |- error: 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
354 | }
355 |
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/String+Extension.swift:368:16: error: 'Color' is only available in macOS 10.15 or newer
344 | }
345 |
346 | public extension String {
| `- note: add @available attribute to enclosing extension
347 | // Initialize Color from Hex String
348 | func toColor() -> Color {
| `- note: add @available attribute to enclosing instance method
349 | let hex = self.trimmingCharacters(in: .whitespacesAndNewlines)
350 | let scanner = Scanner(string: hex)
:
366 | let blue = CGFloat(b) / 255
367 |
368 | return Color(red: red, green: green, blue: blue)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
369 | }
370 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/String+Extension.swift:368:16: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
344 | }
345 |
346 | public extension String {
| `- note: add @available attribute to enclosing extension
347 | // Initialize Color from Hex String
348 | func toColor() -> Color {
| `- note: add @available attribute to enclosing instance method
349 | let hex = self.trimmingCharacters(in: .whitespacesAndNewlines)
350 | let scanner = Scanner(string: hex)
:
366 | let blue = CGFloat(b) / 255
367 |
368 | return Color(red: red, green: green, blue: blue)
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
369 | }
370 | }
[42/43] Compiling Helper4Swift TimeInterval+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/String+Extension.swift:348:23: error: 'Color' is only available in macOS 10.15 or newer
344 | }
345 |
346 | public extension String {
| `- note: add @available attribute to enclosing extension
347 | // Initialize Color from Hex String
348 | func toColor() -> Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
349 | let hex = self.trimmingCharacters(in: .whitespacesAndNewlines)
350 | let scanner = Scanner(string: hex)
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/String+Extension.swift:353:21: error: 'currentIndex' is only available in macOS 10.15 or newer
344 | }
345 |
346 | public extension String {
| `- note: add @available attribute to enclosing extension
347 | // Initialize Color from Hex String
348 | func toColor() -> Color {
| `- note: add @available attribute to enclosing instance method
349 | let hex = self.trimmingCharacters(in: .whitespacesAndNewlines)
350 | let scanner = Scanner(string: hex)
351 |
352 | if hex.hasPrefix("#") {
353 | scanner.currentIndex = hex.index(after: hex.startIndex)
| |- error: 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
354 | }
355 |
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/String+Extension.swift:368:16: error: 'Color' is only available in macOS 10.15 or newer
344 | }
345 |
346 | public extension String {
| `- note: add @available attribute to enclosing extension
347 | // Initialize Color from Hex String
348 | func toColor() -> Color {
| `- note: add @available attribute to enclosing instance method
349 | let hex = self.trimmingCharacters(in: .whitespacesAndNewlines)
350 | let scanner = Scanner(string: hex)
:
366 | let blue = CGFloat(b) / 255
367 |
368 | return Color(red: red, green: green, blue: blue)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
369 | }
370 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/String+Extension.swift:368:16: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
344 | }
345 |
346 | public extension String {
| `- note: add @available attribute to enclosing extension
347 | // Initialize Color from Hex String
348 | func toColor() -> Color {
| `- note: add @available attribute to enclosing instance method
349 | let hex = self.trimmingCharacters(in: .whitespacesAndNewlines)
350 | let scanner = Scanner(string: hex)
:
366 | let blue = CGFloat(b) / 255
367 |
368 | return Color(red: red, green: green, blue: blue)
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
369 | }
370 | }
[43/43] Compiling Helper4Swift UIApplication+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/String+Extension.swift:348:23: error: 'Color' is only available in macOS 10.15 or newer
344 | }
345 |
346 | public extension String {
| `- note: add @available attribute to enclosing extension
347 | // Initialize Color from Hex String
348 | func toColor() -> Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
349 | let hex = self.trimmingCharacters(in: .whitespacesAndNewlines)
350 | let scanner = Scanner(string: hex)
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/String+Extension.swift:353:21: error: 'currentIndex' is only available in macOS 10.15 or newer
344 | }
345 |
346 | public extension String {
| `- note: add @available attribute to enclosing extension
347 | // Initialize Color from Hex String
348 | func toColor() -> Color {
| `- note: add @available attribute to enclosing instance method
349 | let hex = self.trimmingCharacters(in: .whitespacesAndNewlines)
350 | let scanner = Scanner(string: hex)
351 |
352 | if hex.hasPrefix("#") {
353 | scanner.currentIndex = hex.index(after: hex.startIndex)
| |- error: 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
354 | }
355 |
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/String+Extension.swift:368:16: error: 'Color' is only available in macOS 10.15 or newer
344 | }
345 |
346 | public extension String {
| `- note: add @available attribute to enclosing extension
347 | // Initialize Color from Hex String
348 | func toColor() -> Color {
| `- note: add @available attribute to enclosing instance method
349 | let hex = self.trimmingCharacters(in: .whitespacesAndNewlines)
350 | let scanner = Scanner(string: hex)
:
366 | let blue = CGFloat(b) / 255
367 |
368 | return Color(red: red, green: green, blue: blue)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
369 | }
370 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/String+Extension.swift:368:16: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
344 | }
345 |
346 | public extension String {
| `- note: add @available attribute to enclosing extension
347 | // Initialize Color from Hex String
348 | func toColor() -> Color {
| `- note: add @available attribute to enclosing instance method
349 | let hex = self.trimmingCharacters(in: .whitespacesAndNewlines)
350 | let scanner = Scanner(string: hex)
:
366 | let blue = CGFloat(b) / 255
367 |
368 | return Color(red: red, green: green, blue: blue)
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
369 | }
370 | }
BUILD FAILURE 6.0 macosSpm