Build Information
Failed to build Helper4Swift, reference master (0b8c30
), with Swift 6.1 for macOS (SPM) on 25 Apr 2025 20:58:55 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.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.77s)
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.1
Building package at path: $PWD
https://github.com/cs4alhaider/Helper4Swift.git
https://github.com/cs4alhaider/Helper4Swift.git
{
"dependencies" : [
],
"manifest_display_name" : "Helper4Swift",
"name" : "Helper4Swift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "10.0"
},
{
"name" : "watchos",
"version" : "3.0"
},
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "Helper4Swift",
"targets" : [
"Helper4Swift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "Helper4SwiftTests",
"module_type" : "SwiftTarget",
"name" : "Helper4SwiftTests",
"path" : "Tests/Helper4SwiftTests",
"sources" : [
"Helper4SwiftTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Helper4Swift"
],
"type" : "test"
},
{
"c99name" : "Helper4Swift",
"module_type" : "SwiftTarget",
"name" : "Helper4Swift",
"path" : "Sources/Helper4Swift",
"product_memberships" : [
"Helper4Swift"
],
"sources" : [
"Extensions/Array+Extension.swift",
"Extensions/Binding+Extension.swift",
"Extensions/Bundle+Extension.swift",
"Extensions/CALayer+Extension.swift",
"Extensions/CLLocationCoordinate2D+Extension.swift",
"Extensions/CheckedContinuation+Extension.swift",
"Extensions/Color+Extension.swift",
"Extensions/Date+Extension.swift",
"Extensions/Dictionary+Extension.swift",
"Extensions/Dispatch+Extension.swift",
"Extensions/Encodable+Extension.swift",
"Extensions/Int+Extension.swift",
"Extensions/JSONDecoder+Extension.swift",
"Extensions/MKCoordinateSpan+Extension.swift",
"Extensions/NSMutableAttributedString+Extension.swift",
"Extensions/Optional+Extension.swift",
"Extensions/Sequence+Extension.swift",
"Extensions/String+Extension.swift",
"Extensions/TimeInterval+Extension.swift",
"Extensions/UIApplication+Extension.swift",
"Extensions/UIButton+Extension.swift",
"Extensions/UICollectionView+Extension.swift",
"Extensions/UIColor+Extension.swift",
"Extensions/UIImage+Extension.swift",
"Extensions/UIImageView+Extension.swift",
"Extensions/UIKeyboardType+Extension.swift",
"Extensions/UILabel+Extension.swift",
"Extensions/UINavigationController+Extension.swift",
"Extensions/UIStoryboard+Extension.swift",
"Extensions/UITabBarController+Extension.swift",
"Extensions/UITableView+Extension.swift",
"Extensions/UITextField+Extension.swift",
"Extensions/UITextView+Extension.swift",
"Extensions/UIView+Extension.swift",
"Extensions/UIViewAutoLayout+Extension.swift",
"Extensions/UIViewController+Extension.swift",
"Extensions/UIViewController+LocalAuthentication+Extension.swift",
"Extensions/URL+Extension.swift",
"Helper4Swift.swift",
"SubClasses/UIViewFromNib.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.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: add '@MainActor' to make static property 'key' part of global actor 'MainActor'
| `- 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 UIStoryboard+Extension.swift
[5/43] Compiling Helper4Swift UITabBarController+Extension.swift
[6/43] Compiling Helper4Swift UITableView+Extension.swift
[7/43] Compiling Helper4Swift UITextField+Extension.swift
[8/43] Compiling Helper4Swift UIViewController+LocalAuthentication+Extension.swift
[9/43] Compiling Helper4Swift URL+Extension.swift
[10/43] Compiling Helper4Swift Helper4Swift.swift
[11/43] Compiling Helper4Swift UIViewFromNib.swift
[12/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: add '@MainActor' to make static property 'key' part of global actor 'MainActor'
| `- 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: ())
[13/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: add '@MainActor' to make static property 'key' part of global actor 'MainActor'
| `- 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: ())
[14/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: add '@MainActor' to make static property 'key' part of global actor 'MainActor'
| `- 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: ())
[15/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: add '@MainActor' to make static property 'key' part of global actor 'MainActor'
| `- 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: ())
[16/43] Compiling Helper4Swift UITextView+Extension.swift
[17/43] Compiling Helper4Swift UIView+Extension.swift
[18/43] Compiling Helper4Swift UIViewAutoLayout+Extension.swift
[19/43] Compiling Helper4Swift UIViewController+Extension.swift
[20/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
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
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
25 | } catch {
26 | print(error.localizedDescription)
[21/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
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
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
25 | } catch {
26 | print(error.localizedDescription)
[22/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
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
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
25 | } catch {
26 | print(error.localizedDescription)
[23/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
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
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
25 | } catch {
26 | print(error.localizedDescription)
[24/43] Compiling Helper4Swift UIButton+Extension.swift
[25/43] Compiling Helper4Swift UICollectionView+Extension.swift
[26/43] Compiling Helper4Swift UIColor+Extension.swift
[27/43] Compiling Helper4Swift UIImage+Extension.swift
[28/43] Compiling Helper4Swift UIImageView+Extension.swift
[29/43] Compiling Helper4Swift UIKeyboardType+Extension.swift
[30/43] Compiling Helper4Swift UILabel+Extension.swift
[31/43] Compiling Helper4Swift UINavigationController+Extension.swift
[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 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
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
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
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
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
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
| `- 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
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
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
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
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
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
34 | )
35 | }
[37/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
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
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
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
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
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
| `- 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
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
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
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
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
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
34 | )
35 | }
[38/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
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
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
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
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
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
| `- 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
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
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
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
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
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
34 | )
35 | }
[39/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
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
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
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
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
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
| `- 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
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
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
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
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
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
34 | )
35 | }
[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 | }
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/38] Compiling Helper4Swift UIImageView+Extension.swift
[3/38] Compiling Helper4Swift UIKeyboardType+Extension.swift
[4/38] Compiling Helper4Swift UILabel+Extension.swift
[5/38] Compiling Helper4Swift UINavigationController+Extension.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/42] 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/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)
[7/42] Compiling Helper4Swift UIButton+Extension.swift
[8/42] Compiling Helper4Swift UICollectionView+Extension.swift
[9/42] Compiling Helper4Swift UIColor+Extension.swift
[10/42] Compiling Helper4Swift UIImage+Extension.swift
[11/42] Compiling Helper4Swift Dictionary+Extension.swift
[12/42] Compiling Helper4Swift Dispatch+Extension.swift
[13/42] Compiling Helper4Swift Encodable+Extension.swift
[14/42] Compiling Helper4Swift Int+Extension.swift
[15/42] 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: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 }
[16/42] 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: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 }
[17/42] 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: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 }
[18/42] 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: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 }
[19/42] Compiling Helper4Swift UIStoryboard+Extension.swift
[20/42] Compiling Helper4Swift UITabBarController+Extension.swift
[21/42] Compiling Helper4Swift UITableView+Extension.swift
[22/42] Compiling Helper4Swift UITextField+Extension.swift
[23/42] Compiling Helper4Swift UITextView+Extension.swift
[24/42] Compiling Helper4Swift UIView+Extension.swift
[25/42] Compiling Helper4Swift UIViewAutoLayout+Extension.swift
[26/42] Compiling Helper4Swift UIViewController+Extension.swift
[27/42] Compiling Helper4Swift JSONDecoder+Extension.swift
[28/42] Compiling Helper4Swift MKCoordinateSpan+Extension.swift
[29/42] Compiling Helper4Swift NSMutableAttributedString+Extension.swift
[30/42] Compiling Helper4Swift Optional+Extension.swift
[31/42] 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 | }
[32/42] 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 | }
[33/42] 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 | }
[34/42] 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 | }
[35/42] 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
[36/42] 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
[37/42] 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
[38/42] 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
[39/42] Compiling Helper4Swift UIViewController+LocalAuthentication+Extension.swift
[40/42] Compiling Helper4Swift URL+Extension.swift
[41/42] Compiling Helper4Swift Helper4Swift.swift
[42/42] Compiling Helper4Swift UIViewFromNib.swift
BUILD FAILURE 6.1 macosSpm