Build Information
Failed to build Ra9rKit, reference main (2d3860), with Swift 6.3 for macOS (SPM) on 14 Apr 2026 15:30:24 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ra9r/Ra9rKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ra9r/Ra9rKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2d3860c added startOfWeek
Cloned https://github.com/ra9r/Ra9rKit.git
Revision (git rev-parse @):
2d3860c537a0e58a59955579c306a08bb48b7e89
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ra9r/Ra9rKit.git at main
========================================
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",
"traits": [
"default"
],
"dependencies": [
{
"identity": "ra9rkit",
"name": "Ra9rKit",
"url": "https://github.com/ra9r/Ra9rKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Ra9rKit",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
Fetching https://github.com/ra9r/Ra9rKit.git
[1/797] Fetching ra9rkit
Fetched https://github.com/ra9r/Ra9rKit.git from cache (0.95s)
Creating working copy for https://github.com/ra9r/Ra9rKit.git
Working copy of https://github.com/ra9r/Ra9rKit.git resolved at main (2d3860c)
warning: '.resolve-product-dependencies': dependency 'ra9rkit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/ra9r/Ra9rKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/6] Write sources
[5/6] Write swift-version--6988338F2F200930.txt
[7/40] Compiling Ra9rCrypto KeychainError.swift
[8/41] Compiling Ra9rCore String+Extension.swift
[9/41] Compiling Ra9rCore Float+Extension.swift
[10/42] Compiling Ra9rCore URLSession+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCore/Extensions/URLSession+Extension.swift:18:35: error: 'data(from:delegate:)' is only available in macOS 12.0 or newer
8 | import Foundation
9 |
10 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
11 | public func decode<T: Decodable>(
| `- note: add '@available' attribute to enclosing instance method
12 | _ type: T.Type = T.self,
13 | from url: URL,
:
16 | dateDecodingStrategy: JSONDecoder.DateDecodingStrategy = .deferredToDate
17 | ) async throws -> T {
18 | let (data, _) = try await data(from: url)
| |- error: 'data(from:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
19 |
20 | let decoder = JSONDecoder()
[11/42] Compiling Ra9rCore Calendar+Extension.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/42] Compiling Ra9rCore Bundle+Extension.swift
[13/42] Emitting module Ra9rCore
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCore/Extensions/Date+Extension.swift:116:43: error: 'now' is only available in macOS 12 or newer
8 | import Foundation
9 |
10 | extension Date {
| `- note: add '@available' attribute to enclosing extension
11 | /// Returns the date for the first of the month for a given date
12 | public var startOfMonth: Date {
:
114 | /// - Parameter date: The date to compare against. Defaults to the current date and time.
115 | /// - Returns: A string describing the current date relative to the specified date.
116 | public func relative(to date: Date = .now) -> String {
| | `- error: 'now' is only available in macOS 12 or newer
| `- note: add '@available' attribute to enclosing instance method
117 | if self > date.addInterval(hours: -12) {
118 | let dateFormatter = RelativeDateTimeFormatter()
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCore/PropertyWrappers/UserDefault.swift:29:32: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @propertyWrapper
11 | public struct UserDefault<Value: Codable>: DynamicProperty {
| `- note: add '@available' attribute to enclosing generic struct
12 | public let key: String
13 | public let defaultValue: Value
:
27 | }
28 |
29 | public var projectedValue: Binding<Value> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
30 | Binding(
31 | get: { wrappedValue },
[14/42] Compiling Ra9rCore Double+Extenstion.swift
[15/42] Compiling Ra9rCore Date+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCore/Extensions/Date+Extension.swift:116:43: error: 'now' is only available in macOS 12 or newer
8 | import Foundation
9 |
10 | extension Date {
| `- note: add '@available' attribute to enclosing extension
11 | /// Returns the date for the first of the month for a given date
12 | public var startOfMonth: Date {
:
114 | /// - Parameter date: The date to compare against. Defaults to the current date and time.
115 | /// - Returns: A string describing the current date relative to the specified date.
116 | public func relative(to date: Date = .now) -> String {
| | `- error: 'now' is only available in macOS 12 or newer
| `- note: add '@available' attribute to enclosing instance method
117 | if self > date.addInterval(hours: -12) {
118 | let dateFormatter = RelativeDateTimeFormatter()
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCore/Extensions/Date+Extension.swift:35:13: warning: variable 'calendar' was never mutated; consider changing to 'let' constant
33 | /// Returns that locale appropriate start of week given the date
34 | public var startOfWeek: Date {
35 | var calendar = Calendar.current
| `- warning: variable 'calendar' was never mutated; consider changing to 'let' constant
36 |
37 | // Find the start of the week for the given date
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCore/Extensions/Date+Extension.swift:54:33: error: 'now' is only available in macOS 12 or newer
8 | import Foundation
9 |
10 | extension Date {
| `- note: add '@available' attribute to enclosing extension
11 | /// Returns the date for the first of the month for a given date
12 | public var startOfMonth: Date {
:
51 | }
52 |
53 | public var inFuture: Bool {
| `- note: add '@available' attribute to enclosing property
54 | return self.endOfDay > .now.endOfDay
| |- error: 'now' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCore/Extensions/Date+Extension.swift:118:33: error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | extension Date {
| `- note: add '@available' attribute to enclosing extension
11 | /// Returns the date for the first of the month for a given date
12 | public var startOfMonth: Date {
:
114 | /// - Parameter date: The date to compare against. Defaults to the current date and time.
115 | /// - Returns: A string describing the current date relative to the specified date.
116 | public func relative(to date: Date = .now) -> String {
| `- note: add '@available' attribute to enclosing instance method
117 | if self > date.addInterval(hours: -12) {
118 | let dateFormatter = RelativeDateTimeFormatter()
| |- error: 'RelativeDateTimeFormatter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 | return dateFormatter.localizedString(for: self, relativeTo: Date.now)
120 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCore/Extensions/Date+Extension.swift:119:78: error: 'now' is only available in macOS 12 or newer
8 | import Foundation
9 |
10 | extension Date {
| `- note: add '@available' attribute to enclosing extension
11 | /// Returns the date for the first of the month for a given date
12 | public var startOfMonth: Date {
:
114 | /// - Parameter date: The date to compare against. Defaults to the current date and time.
115 | /// - Returns: A string describing the current date relative to the specified date.
116 | public func relative(to date: Date = .now) -> String {
| `- note: add '@available' attribute to enclosing instance method
117 | if self > date.addInterval(hours: -12) {
118 | let dateFormatter = RelativeDateTimeFormatter()
119 | return dateFormatter.localizedString(for: self, relativeTo: Date.now)
| |- error: 'now' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
120 | } else {
121 | let dateFormatter = DateFormatter()
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCore/Extensions/Date+Extension.swift:137:13: warning: variable 'day' was never mutated; consider changing to 'let' constant
135 | /// Returns an array of the dates of the week the date is contained within.
136 | public var weekDates: [Date] {
137 | var day = startOfWeek
| `- warning: variable 'day' was never mutated; consider changing to 'let' constant
138 | // Create an array to hold dates for the whole week
139 | var week: [Date] = []
[16/42] Compiling Ra9rCrypto Data+Cryptable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Data+Cryptable.swift:12:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Data : Cryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func decrypt(key: SymmetricKey) throws -> Data {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | let sealedBox = try AES.GCM.SealedBox(combined: self)
14 | return try AES.GCM.open(sealedBox, using: key)
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Data+Cryptable.swift:17:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Data : Cryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func decrypt(key: SymmetricKey) throws -> Data {
13 | let sealedBox = try AES.GCM.SealedBox(combined: self)
:
15 | }
16 |
17 | public func encrypt(key: SymmetricKey) throws -> Data? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
18 | let sealedBox = try AES.GCM.seal(self, using: key)
19 | return sealedBox.combined // Includes ciphertext + authentication tag
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Data+Cryptable.swift:22:52: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Data : Cryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func decrypt(key: SymmetricKey) throws -> Data {
13 | let sealedBox = try AES.GCM.SealedBox(combined: self)
:
20 | }
21 |
22 | public func decrypt<T>(as source: T.Type, key: SymmetricKey) throws -> T? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
23 | // first descript the data
24 | let decryptedData = try self.decrypt(key: key)
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Data+Cryptable.swift:13:29: error: 'AES' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Data : Cryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func decrypt(key: SymmetricKey) throws -> Data {
| `- note: add '@available' attribute to enclosing instance method
13 | let sealedBox = try AES.GCM.SealedBox(combined: self)
| |- error: 'AES' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
14 | return try AES.GCM.open(sealedBox, using: key)
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Data+Cryptable.swift:14:20: error: 'AES' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Data : Cryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func decrypt(key: SymmetricKey) throws -> Data {
| `- note: add '@available' attribute to enclosing instance method
13 | let sealedBox = try AES.GCM.SealedBox(combined: self)
14 | return try AES.GCM.open(sealedBox, using: key)
| |- error: 'AES' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Data+Cryptable.swift:18:29: error: 'AES' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Data : Cryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func decrypt(key: SymmetricKey) throws -> Data {
13 | let sealedBox = try AES.GCM.SealedBox(combined: self)
:
15 | }
16 |
17 | public func encrypt(key: SymmetricKey) throws -> Data? {
| `- note: add '@available' attribute to enclosing instance method
18 | let sealedBox = try AES.GCM.seal(self, using: key)
| |- error: 'AES' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | return sealedBox.combined // Includes ciphertext + authentication tag
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Double+Encryptable.swift:12:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Double : Encryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func encrypt(key: SymmetricKey) throws -> Data? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | let data = Data(withUnsafeBytes(of: self) { Data($0) })
14 | return try data.encrypt(key: key)
[17/42] Compiling Ra9rCrypto Double+Encryptable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Data+Cryptable.swift:12:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Data : Cryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func decrypt(key: SymmetricKey) throws -> Data {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | let sealedBox = try AES.GCM.SealedBox(combined: self)
14 | return try AES.GCM.open(sealedBox, using: key)
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Data+Cryptable.swift:17:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Data : Cryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func decrypt(key: SymmetricKey) throws -> Data {
13 | let sealedBox = try AES.GCM.SealedBox(combined: self)
:
15 | }
16 |
17 | public func encrypt(key: SymmetricKey) throws -> Data? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
18 | let sealedBox = try AES.GCM.seal(self, using: key)
19 | return sealedBox.combined // Includes ciphertext + authentication tag
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Data+Cryptable.swift:22:52: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Data : Cryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func decrypt(key: SymmetricKey) throws -> Data {
13 | let sealedBox = try AES.GCM.SealedBox(combined: self)
:
20 | }
21 |
22 | public func decrypt<T>(as source: T.Type, key: SymmetricKey) throws -> T? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
23 | // first descript the data
24 | let decryptedData = try self.decrypt(key: key)
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Data+Cryptable.swift:13:29: error: 'AES' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Data : Cryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func decrypt(key: SymmetricKey) throws -> Data {
| `- note: add '@available' attribute to enclosing instance method
13 | let sealedBox = try AES.GCM.SealedBox(combined: self)
| |- error: 'AES' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
14 | return try AES.GCM.open(sealedBox, using: key)
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Data+Cryptable.swift:14:20: error: 'AES' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Data : Cryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func decrypt(key: SymmetricKey) throws -> Data {
| `- note: add '@available' attribute to enclosing instance method
13 | let sealedBox = try AES.GCM.SealedBox(combined: self)
14 | return try AES.GCM.open(sealedBox, using: key)
| |- error: 'AES' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Data+Cryptable.swift:18:29: error: 'AES' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Data : Cryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func decrypt(key: SymmetricKey) throws -> Data {
13 | let sealedBox = try AES.GCM.SealedBox(combined: self)
:
15 | }
16 |
17 | public func encrypt(key: SymmetricKey) throws -> Data? {
| `- note: add '@available' attribute to enclosing instance method
18 | let sealedBox = try AES.GCM.seal(self, using: key)
| |- error: 'AES' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | return sealedBox.combined // Includes ciphertext + authentication tag
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Double+Encryptable.swift:12:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Double : Encryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func encrypt(key: SymmetricKey) throws -> Data? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | let data = Data(withUnsafeBytes(of: self) { Data($0) })
14 | return try data.encrypt(key: key)
[18/42] Compiling Ra9rCrypto String+Encryptable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/String+Encryptable.swift:12:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension String : Encryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func encrypt(key: SymmetricKey) throws -> Data? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | guard let data = self.data(using: .utf8) else {
14 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/UInt+Encryptable.swift:12:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension UInt : Encryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func encrypt(key: SymmetricKey) throws -> Data? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | let data = Data(withUnsafeBytes(of: self) { Data($0) })
14 | return try data.encrypt(key: key)
[19/42] Compiling Ra9rCrypto UInt+Encryptable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/String+Encryptable.swift:12:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension String : Encryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func encrypt(key: SymmetricKey) throws -> Data? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | guard let data = self.data(using: .utf8) else {
14 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/UInt+Encryptable.swift:12:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension UInt : Encryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func encrypt(key: SymmetricKey) throws -> Data? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | let data = Data(withUnsafeBytes(of: self) { Data($0) })
14 | return try data.encrypt(key: key)
[20/42] Compiling Ra9rCrypto Float+Encryptable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Float+Encryptable.swift:12:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Float : Encryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func encrypt(key: SymmetricKey) throws -> Data? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | let data = Data(withUnsafeBytes(of: self) { Data($0) })
14 | return try data.encrypt(key: key)
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Int+Encryptable.swift:12:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Int : Encryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func encrypt(key: SymmetricKey) throws -> Data? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | let data = Data(withUnsafeBytes(of: self) { Data($0) })
14 | return try data.encrypt(key: key)
[21/42] Compiling Ra9rCrypto Int+Encryptable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Float+Encryptable.swift:12:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Float : Encryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func encrypt(key: SymmetricKey) throws -> Data? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | let data = Data(withUnsafeBytes(of: self) { Data($0) })
14 | return try data.encrypt(key: key)
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Int+Encryptable.swift:12:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Int : Encryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func encrypt(key: SymmetricKey) throws -> Data? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | let data = Data(withUnsafeBytes(of: self) { Data($0) })
14 | return try data.encrypt(key: key)
[22/42] Compiling Ra9rCrypto Cryptable.swift
[23/42] Compiling Ra9rCrypto Decryptable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Protocols/Decryptable.swift:12:23: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | public protocol Decryptable {
| `- note: add '@available' attribute to enclosing protocol
12 | func decrypt(key: SymmetricKey) throws -> Data
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | }
14 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[24/42] Emitting module Ra9rCrypto
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Bool+Encryptable.swift:12:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Bool : Encryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func encrypt(key: SymmetricKey) throws -> Data? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | let data = Data([self ? 1 : 0])
14 | return try data.encrypt(key: key)
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Character+Encryptable.swift:12:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Character : Encryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func encrypt(key: SymmetricKey) throws -> Data? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | return try String(self).encrypt(key: key)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Data+Cryptable.swift:12:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Data : Cryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func decrypt(key: SymmetricKey) throws -> Data {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | let sealedBox = try AES.GCM.SealedBox(combined: self)
14 | return try AES.GCM.open(sealedBox, using: key)
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Data+Cryptable.swift:17:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Data : Cryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func decrypt(key: SymmetricKey) throws -> Data {
13 | let sealedBox = try AES.GCM.SealedBox(combined: self)
:
15 | }
16 |
17 | public func encrypt(key: SymmetricKey) throws -> Data? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
18 | let sealedBox = try AES.GCM.seal(self, using: key)
19 | return sealedBox.combined // Includes ciphertext + authentication tag
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Data+Cryptable.swift:22:52: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Data : Cryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func decrypt(key: SymmetricKey) throws -> Data {
13 | let sealedBox = try AES.GCM.SealedBox(combined: self)
:
20 | }
21 |
22 | public func decrypt<T>(as source: T.Type, key: SymmetricKey) throws -> T? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
23 | // first descript the data
24 | let decryptedData = try self.decrypt(key: key)
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Double+Encryptable.swift:12:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Double : Encryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func encrypt(key: SymmetricKey) throws -> Data? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | let data = Data(withUnsafeBytes(of: self) { Data($0) })
14 | return try data.encrypt(key: key)
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Float+Encryptable.swift:12:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Float : Encryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func encrypt(key: SymmetricKey) throws -> Data? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | let data = Data(withUnsafeBytes(of: self) { Data($0) })
14 | return try data.encrypt(key: key)
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Int+Encryptable.swift:12:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Int : Encryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func encrypt(key: SymmetricKey) throws -> Data? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | let data = Data(withUnsafeBytes(of: self) { Data($0) })
14 | return try data.encrypt(key: key)
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/String+Encryptable.swift:12:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension String : Encryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func encrypt(key: SymmetricKey) throws -> Data? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | guard let data = self.data(using: .utf8) else {
14 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/UInt+Encryptable.swift:12:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension UInt : Encryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func encrypt(key: SymmetricKey) throws -> Data? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | let data = Data(withUnsafeBytes(of: self) { Data($0) })
14 | return try data.encrypt(key: key)
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Keychain/KeychainManager.swift:21:40: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | public class KeychainManager : ObservableObject {
| `- note: add '@available' attribute to enclosing class
12 |
13 | private var account: String
:
19 | // MARK: - Key Support
20 |
21 | public func save(tag: String, key: SymmetricKey = SymmetricKey(size: .bits256)) throws {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
22 |
23 | // Convert the key to Data representation
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Keychain/KeychainManager.swift:21:55: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | public class KeychainManager : ObservableObject {
| `- note: add '@available' attribute to enclosing class
12 |
13 | private var account: String
:
19 | // MARK: - Key Support
20 |
21 | public func save(tag: String, key: SymmetricKey = SymmetricKey(size: .bits256)) throws {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
22 |
23 | // Convert the key to Data representation
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Keychain/KeychainManager.swift:40:45: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | public class KeychainManager : ObservableObject {
| `- note: add '@available' attribute to enclosing class
12 |
13 | private var account: String
:
38 | }
39 |
40 | public func read(tag: String) throws -> SymmetricKey {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
41 | let query: [String: Any] = [
42 | kSecClass as String: kSecClassKey,
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Keychain/KeychainManager.swift:11:32: error: 'ObservableObject' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | public class KeychainManager : ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing class
12 |
13 | private var account: String
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/PropertyWrappers/SecureProperty.swift:12:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
9 |
10 | @propertyWrapper
11 | public struct SecureProperty<T: Codable> : DynamicProperty {
| `- note: add '@available' attribute to enclosing generic struct
12 | @EnvironmentObject private var keychain: KeychainManager
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
13 | @State private var value: T? = nil
14 | let tag: String
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/PropertyWrappers/SecureProperty.swift:13:6: error: 'State' is only available in macOS 10.15 or newer
9 |
10 | @propertyWrapper
11 | public struct SecureProperty<T: Codable> : DynamicProperty {
| `- note: add '@available' attribute to enclosing generic struct
12 | @EnvironmentObject private var keychain: KeychainManager
13 | @State private var value: T? = nil
| `- error: 'State' is only available in macOS 10.15 or newer
14 | let tag: String
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/PropertyWrappers/SecureProperty.swift:32:32: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @propertyWrapper
11 | public struct SecureProperty<T: Codable> : DynamicProperty {
| `- note: add '@available' attribute to enclosing generic struct
12 | @EnvironmentObject private var keychain: KeychainManager
13 | @State private var value: T? = nil
:
30 | }
31 |
32 | public var projectedValue: Binding<T?> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
33 | Binding<T?>(
34 | get: { value },
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Protocols/Decryptable.swift:12:23: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | public protocol Decryptable {
| `- note: add '@available' attribute to enclosing protocol
12 | func decrypt(key: SymmetricKey) throws -> Data
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | }
14 |
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Protocols/Encryptable.swift:12:23: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | public protocol Encryptable {
| `- note: add '@available' attribute to enclosing protocol
12 | func encrypt(key: SymmetricKey) throws -> Data?
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | }
14 |
[25/42] Compiling Ra9rCrypto Bool+Encryptable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Bool+Encryptable.swift:12:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Bool : Encryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func encrypt(key: SymmetricKey) throws -> Data? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | let data = Data([self ? 1 : 0])
14 | return try data.encrypt(key: key)
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Character+Encryptable.swift:12:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Character : Encryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func encrypt(key: SymmetricKey) throws -> Data? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | return try String(self).encrypt(key: key)
14 | }
[26/42] Compiling Ra9rCrypto Character+Encryptable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Bool+Encryptable.swift:12:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Bool : Encryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func encrypt(key: SymmetricKey) throws -> Data? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | let data = Data([self ? 1 : 0])
14 | return try data.encrypt(key: key)
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Extensions/Character+Encryptable.swift:12:30: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | extension Character : Encryptable {
| `- note: add '@available' attribute to enclosing extension
12 | public func encrypt(key: SymmetricKey) throws -> Data? {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | return try String(self).encrypt(key: key)
14 | }
[27/42] Compiling Ra9rCrypto Encryptable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Protocols/Encryptable.swift:12:23: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | public protocol Encryptable {
| `- note: add '@available' attribute to enclosing protocol
12 | func encrypt(key: SymmetricKey) throws -> Data?
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | }
14 |
[28/42] Compiling Ra9rCore Uncombinable.swift
[29/42] Compiling Ra9rCore RelativeMonthFormatter.swift
[30/42] Compiling Ra9rCore UserDefault.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCore/PropertyWrappers/UserDefault.swift:29:32: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @propertyWrapper
11 | public struct UserDefault<Value: Codable>: DynamicProperty {
| `- note: add '@available' attribute to enclosing generic struct
12 | public let key: String
13 | public let defaultValue: Value
:
27 | }
28 |
29 | public var projectedValue: Binding<Value> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
30 | Binding(
31 | get: { wrappedValue },
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCore/PropertyWrappers/UserDefault.swift:30:9: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @propertyWrapper
11 | public struct UserDefault<Value: Codable>: DynamicProperty {
| `- note: add '@available' attribute to enclosing generic struct
12 | public let key: String
13 | public let defaultValue: Value
:
27 | }
28 |
29 | public var projectedValue: Binding<Value> {
| `- note: add '@available' attribute to enclosing property
30 | Binding(
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | get: { wrappedValue },
32 | set: { wrappedValue = $0 }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[31/42] Compiling Ra9rNotification LocalNotificationActionOption.swift
[32/42] Compiling Ra9rNotification LocalNotification.swift
[33/42] Emitting module Ra9rNotification
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationAction.swift:73:23: error: cannot find type 'UNNotificationAction' in scope
71 | }
72 |
73 | func convert() -> UNNotificationAction {
| `- error: cannot find type 'UNNotificationAction' in scope
74 | if let systemImage {
75 | if let options {
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationAction.swift:113:18: error: cannot find type 'UNNotificationActionOptions' in scope
111 | }
112 |
113 | var options: UNNotificationActionOptions? {
| `- error: cannot find type 'UNNotificationActionOptions' in scope
114 | if let option {
115 | switch option {
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationActionEvent.swift:14:25: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
9 | import UserNotifications
10 |
11 | public struct LocalNotificationActionEvent : Identifiable {
| `- note: add '@available' attribute to enclosing struct
12 | public var id: String
13 | public var actionIdentifier: String
14 | public var content: UNNotificationContent
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationCategory.swift:54:23: error: cannot find type 'UNNotificationCategory' in scope
52 | }
53 |
54 | func convert() -> UNNotificationCategory {
| `- error: cannot find type 'UNNotificationCategory' in scope
55 | var navtiveActions: [UNNotificationAction] = []
56 | for action in actions {
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:11:53: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
9 | import UserNotifications
10 |
11 | typealias LocalNotificationActionHandler = (String, UNNotificationContent) -> Void
| | `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing type alias
12 |
13 | /// Service provider for Local Notifications.
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:32:38: error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
| `- error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
33 |
34 | @Published public var pendingRequests: [UNNotificationRequest] = []
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:34:45: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
34 | @Published public var pendingRequests: [UNNotificationRequest] = []
| `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
35 |
36 | /// State property is set to `true` if user has granted permissions, `false` otherwise.
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:34:6: error: 'Published' is only available in macOS 10.15 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
34 | @Published public var pendingRequests: [UNNotificationRequest] = []
| `- error: 'Published' is only available in macOS 10.15 or newer
35 |
36 | /// State property is set to `true` if user has granted permissions, `false` otherwise.
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:38:6: error: 'Published' is only available in macOS 10.15 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
:
36 | /// State property is set to `true` if user has granted permissions, `false` otherwise.
37 | /// Update this value by calling the `getCurrentSettings()` functions.
38 | @Published public var isGranted = false
| `- error: 'Published' is only available in macOS 10.15 or newer
39 |
40 |
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:42:6: error: 'Published' is only available in macOS 10.15 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
:
40 |
41 | /// This property is set each time a local notification is clicked on
42 | @Published public var notificationEvent: LocalNotificationActionEvent?
| `- error: 'Published' is only available in macOS 10.15 or newer
43 |
44 | public override init() {
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:85:73: error: 'UNNotificationSound' is only available in macOS 10.14 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
:
83 | /// - localNotification: The notification details and schedule info (see ``LocalNotification``)
84 | /// - sound: Optional sound to play when notification appears, default is ``UNNotificationSound.default``
85 | public func schedule(_ localNotification: LocalNotification, sound: UNNotificationSound? = nil) async {
| | `- error: 'UNNotificationSound' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing instance method
86 | let content = UNMutableNotificationContent()
87 | content.title = localNotification.title
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:153:35: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
:
151 |
152 | /// This will "snooze" a notification by scheduling a duplicate notification using the specified `interval` and optional `repeat`
153 | public func snooze(_ content: UNNotificationContent, interval: Double, repeats: Bool = false) async {
| | `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing instance method
154 | let newContent = content.mutableCopy() as! UNMutableNotificationContent
155 | let newTrigger = UNTimeIntervalNotificationTrigger(timeInterval: interval, repeats: repeats)
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:31:52: error: 'ObservableObject' is only available in macOS 10.15 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:175:50: error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
168 | }
169 |
170 | extension LocalNotificationServices : UNUserNotificationCenterDelegate {
| `- note: add '@available' attribute to enclosing extension
171 |
172 | /// This method is called when a notification arrives while the app is in the foreground.
173 | /// It allows your app to determine how to handle the notification — whether to show it t
174 | /// o the user, and with what type of presentation style.
175 | public func userNotificationCenter(_ center: UNUserNotificationCenter,
| | `- error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing instance method
176 | willPresent notification: UNNotification) async -> UNNotificationPresentationOptions {
177 | await getPendingRequests()
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:176:66: error: 'UNNotification' is only available in macOS 10.14 or newer
168 | }
169 |
170 | extension LocalNotificationServices : UNUserNotificationCenterDelegate {
| `- note: add '@available' attribute to enclosing extension
171 |
172 | /// This method is called when a notification arrives while the app is in the foreground.
173 | /// It allows your app to determine how to handle the notification — whether to show it t
174 | /// o the user, and with what type of presentation style.
175 | public func userNotificationCenter(_ center: UNUserNotificationCenter,
| `- note: add '@available' attribute to enclosing instance method
176 | willPresent notification: UNNotification) async -> UNNotificationPresentationOptions {
| `- error: 'UNNotification' is only available in macOS 10.14 or newer
177 | await getPendingRequests()
178 | return [.sound, .banner]
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:176:91: error: 'UNNotificationPresentationOptions' is only available in macOS 10.14 or newer
168 | }
169 |
170 | extension LocalNotificationServices : UNUserNotificationCenterDelegate {
| `- note: add '@available' attribute to enclosing extension
171 |
172 | /// This method is called when a notification arrives while the app is in the foreground.
173 | /// It allows your app to determine how to handle the notification — whether to show it t
174 | /// o the user, and with what type of presentation style.
175 | public func userNotificationCenter(_ center: UNUserNotificationCenter,
| `- note: add '@available' attribute to enclosing instance method
176 | willPresent notification: UNNotification) async -> UNNotificationPresentationOptions {
| `- error: 'UNNotificationPresentationOptions' is only available in macOS 10.14 or newer
177 | await getPendingRequests()
178 | return [.sound, .banner]
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:182:50: error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
168 | }
169 |
170 | extension LocalNotificationServices : UNUserNotificationCenterDelegate {
| `- note: add '@available' attribute to enclosing extension
171 |
172 | /// This method is called when a notification arrives while the app is in the foreground.
:
180 |
181 | /// This method is called in response to a user interacting with a notification
182 | public func userNotificationCenter(_ center: UNUserNotificationCenter,
| | `- error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing instance method
183 | didReceive response: UNNotificationResponse) async {
184 |
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:183:61: error: 'UNNotificationResponse' is only available in macOS 10.14 or newer
168 | }
169 |
170 | extension LocalNotificationServices : UNUserNotificationCenterDelegate {
| `- note: add '@available' attribute to enclosing extension
171 |
172 | /// This method is called when a notification arrives while the app is in the foreground.
:
180 |
181 | /// This method is called in response to a user interacting with a notification
182 | public func userNotificationCenter(_ center: UNUserNotificationCenter,
| `- note: add '@available' attribute to enclosing instance method
183 | didReceive response: UNNotificationResponse) async {
| `- error: 'UNNotificationResponse' is only available in macOS 10.14 or newer
184 |
185 | let request = response.notification.request
[34/42] Compiling Ra9rCrypto SecureProperty.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/PropertyWrappers/SecureProperty.swift:12:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
9 |
10 | @propertyWrapper
11 | public struct SecureProperty<T: Codable> : DynamicProperty {
| `- note: add '@available' attribute to enclosing generic struct
12 | @EnvironmentObject private var keychain: KeychainManager
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
13 | @State private var value: T? = nil
14 | let tag: String
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/PropertyWrappers/SecureProperty.swift:13:6: error: 'State' is only available in macOS 10.15 or newer
9 |
10 | @propertyWrapper
11 | public struct SecureProperty<T: Codable> : DynamicProperty {
| `- note: add '@available' attribute to enclosing generic struct
12 | @EnvironmentObject private var keychain: KeychainManager
13 | @State private var value: T? = nil
| `- error: 'State' is only available in macOS 10.15 or newer
14 | let tag: String
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/PropertyWrappers/SecureProperty.swift:32:32: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @propertyWrapper
11 | public struct SecureProperty<T: Codable> : DynamicProperty {
| `- note: add '@available' attribute to enclosing generic struct
12 | @EnvironmentObject private var keychain: KeychainManager
13 | @State private var value: T? = nil
:
30 | }
31 |
32 | public var projectedValue: Binding<T?> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
33 | Binding<T?>(
34 | get: { value },
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/PropertyWrappers/SecureProperty.swift:25:17: error: setter for 'value' is only available in macOS 10.15 or newer
9 |
10 | @propertyWrapper
11 | public struct SecureProperty<T: Codable> : DynamicProperty {
| `- note: add '@available' attribute to enclosing generic struct
12 | @EnvironmentObject private var keychain: KeychainManager
13 | @State private var value: T? = nil
:
18 | }
19 |
20 | public var wrappedValue: T? {
| `- note: add '@available' attribute to enclosing property
21 | get { value }
22 | nonmutating set {
23 | do {
24 | try keychain.save(tag, value: newValue)
25 | value = newValue
| |- error: setter for 'value' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | } catch {
27 | print("SecureProperty(\(tag)): \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/PropertyWrappers/SecureProperty.swift:33:9: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @propertyWrapper
11 | public struct SecureProperty<T: Codable> : DynamicProperty {
| `- note: add '@available' attribute to enclosing generic struct
12 | @EnvironmentObject private var keychain: KeychainManager
13 | @State private var value: T? = nil
:
30 | }
31 |
32 | public var projectedValue: Binding<T?> {
| `- note: add '@available' attribute to enclosing property
33 | Binding<T?>(
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | get: { value },
35 | set: { wrappedValue = $0 }
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/PropertyWrappers/SecureProperty.swift:45:17: error: setter for 'value' is only available in macOS 10.15 or newer
9 |
10 | @propertyWrapper
11 | public struct SecureProperty<T: Codable> : DynamicProperty {
| `- note: add '@available' attribute to enclosing generic struct
12 | @EnvironmentObject private var keychain: KeychainManager
13 | @State private var value: T? = nil
:
37 | }
38 |
39 | public func update() {
| `- note: add '@available' attribute to enclosing instance method
40 |
41 | if value == nil {
:
43 | let newValue = try? keychain.read(tag) as T?
44 | DispatchQueue.main.async {
45 | self.value = newValue
| |- error: setter for 'value' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | }
47 | }
[35/42] Compiling Ra9rNotification LocalNotificationAction.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationAction.swift:73:23: error: cannot find type 'UNNotificationAction' in scope
71 | }
72 |
73 | func convert() -> UNNotificationAction {
| `- error: cannot find type 'UNNotificationAction' in scope
74 | if let systemImage {
75 | if let options {
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationAction.swift:113:18: error: cannot find type 'UNNotificationActionOptions' in scope
111 | }
112 |
113 | var options: UNNotificationActionOptions? {
| `- error: cannot find type 'UNNotificationActionOptions' in scope
114 | if let option {
115 | switch option {
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationAction.swift:76:24: error: cannot find 'UNNotificationAction' in scope
74 | if let systemImage {
75 | if let options {
76 | return UNNotificationAction(
| `- error: cannot find 'UNNotificationAction' in scope
77 | identifier: identifier,
78 | title: label,
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationAction.swift:80:27: error: cannot find 'UNNotificationActionIcon' in scope
78 | title: label,
79 | options: options,
80 | icon: UNNotificationActionIcon(systemImageName: systemImage))
| `- error: cannot find 'UNNotificationActionIcon' in scope
81 | }
82 | return UNNotificationAction(
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationAction.swift:82:20: error: cannot find 'UNNotificationAction' in scope
80 | icon: UNNotificationActionIcon(systemImageName: systemImage))
81 | }
82 | return UNNotificationAction(
| `- error: cannot find 'UNNotificationAction' in scope
83 | identifier: identifier,
84 | title: label,
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationAction.swift:85:23: error: cannot find 'UNNotificationActionIcon' in scope
83 | identifier: identifier,
84 | title: label,
85 | icon: UNNotificationActionIcon(systemImageName: systemImage)
| `- error: cannot find 'UNNotificationActionIcon' in scope
86 | )
87 |
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationAction.swift:90:24: error: cannot find 'UNNotificationAction' in scope
88 | } else if let templateImage {
89 | if let options {
90 | return UNNotificationAction(
| `- error: cannot find 'UNNotificationAction' in scope
91 | identifier: identifier,
92 | title: label,
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationAction.swift:94:27: error: cannot find 'UNNotificationActionIcon' in scope
92 | title: label,
93 | options: options,
94 | icon: UNNotificationActionIcon(templateImageName: templateImage))
| `- error: cannot find 'UNNotificationActionIcon' in scope
95 | }
96 | return UNNotificationAction(
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationAction.swift:96:20: error: cannot find 'UNNotificationAction' in scope
94 | icon: UNNotificationActionIcon(templateImageName: templateImage))
95 | }
96 | return UNNotificationAction(
| `- error: cannot find 'UNNotificationAction' in scope
97 | identifier: identifier,
98 | title: label,
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationAction.swift:99:23: error: cannot find 'UNNotificationActionIcon' in scope
97 | identifier: identifier,
98 | title: label,
99 | icon: UNNotificationActionIcon(templateImageName: templateImage))
| `- error: cannot find 'UNNotificationActionIcon' in scope
100 | } else {
101 | if let options {
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationAction.swift:102:24: error: cannot find 'UNNotificationAction' in scope
100 | } else {
101 | if let options {
102 | return UNNotificationAction(
| `- error: cannot find 'UNNotificationAction' in scope
103 | identifier: identifier,
104 | title: label,
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationAction.swift:107:20: error: cannot find 'UNNotificationAction' in scope
105 | options: options)
106 | }
107 | return UNNotificationAction(
| `- error: cannot find 'UNNotificationAction' in scope
108 | identifier: identifier,
109 | title: label)
[36/42] Compiling Ra9rCrypto KeychainManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Keychain/KeychainManager.swift:21:40: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | public class KeychainManager : ObservableObject {
| `- note: add '@available' attribute to enclosing class
12 |
13 | private var account: String
:
19 | // MARK: - Key Support
20 |
21 | public func save(tag: String, key: SymmetricKey = SymmetricKey(size: .bits256)) throws {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
22 |
23 | // Convert the key to Data representation
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Keychain/KeychainManager.swift:21:55: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | public class KeychainManager : ObservableObject {
| `- note: add '@available' attribute to enclosing class
12 |
13 | private var account: String
:
19 | // MARK: - Key Support
20 |
21 | public func save(tag: String, key: SymmetricKey = SymmetricKey(size: .bits256)) throws {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
22 |
23 | // Convert the key to Data representation
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Keychain/KeychainManager.swift:40:45: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | public class KeychainManager : ObservableObject {
| `- note: add '@available' attribute to enclosing class
12 |
13 | private var account: String
:
38 | }
39 |
40 | public func read(tag: String) throws -> SymmetricKey {
| | `- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
41 | let query: [String: Any] = [
42 | kSecClass as String: kSecClassKey,
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Keychain/KeychainManager.swift:11:32: error: 'ObservableObject' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | public class KeychainManager : ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing class
12 |
13 | private var account: String
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rCrypto/Keychain/KeychainManager.swift:58:16: error: 'SymmetricKey' is only available in macOS 10.15 or newer
9 | import CryptoKit
10 |
11 | public class KeychainManager : ObservableObject {
| `- note: add '@available' attribute to enclosing class
12 |
13 | private var account: String
:
38 | }
39 |
40 | public func read(tag: String) throws -> SymmetricKey {
| `- note: add '@available' attribute to enclosing instance method
41 | let query: [String: Any] = [
42 | kSecClass as String: kSecClassKey,
:
56 | }
57 |
58 | return SymmetricKey(data: keyData)
| |- error: 'SymmetricKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | }
60 |
[37/42] Compiling Ra9rNotification LocalNotificationActionEvent.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationActionEvent.swift:14:25: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
9 | import UserNotifications
10 |
11 | public struct LocalNotificationActionEvent : Identifiable {
| `- note: add '@available' attribute to enclosing struct
12 | public var id: String
13 | public var actionIdentifier: String
14 | public var content: UNNotificationContent
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
15 | }
16 |
[38/42] Compiling Ra9rNotification LocalNotificationCategory.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationCategory.swift:54:23: error: cannot find type 'UNNotificationCategory' in scope
52 | }
53 |
54 | func convert() -> UNNotificationCategory {
| `- error: cannot find type 'UNNotificationCategory' in scope
55 | var navtiveActions: [UNNotificationAction] = []
56 | for action in actions {
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationCategory.swift:55:30: error: cannot find type 'UNNotificationAction' in scope
53 |
54 | func convert() -> UNNotificationCategory {
55 | var navtiveActions: [UNNotificationAction] = []
| `- error: cannot find type 'UNNotificationAction' in scope
56 | for action in actions {
57 | navtiveActions.append(action.convert())
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationAction.swift:73:23: error: cannot find type 'UNNotificationAction' in scope
71 | }
72 |
73 | func convert() -> UNNotificationAction {
| `- error: cannot find type 'UNNotificationAction' in scope
74 | if let systemImage {
75 | if let options {
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationCategory.swift:59:16: error: cannot find 'UNNotificationCategory' in scope
57 | navtiveActions.append(action.convert())
58 | }
59 | return UNNotificationCategory(identifier: identifier,
| `- error: cannot find 'UNNotificationCategory' in scope
60 | actions: navtiveActions,
61 | intentIdentifiers: [])
[39/42] Compiling Ra9rNotification LocalNotificationServices.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:11:53: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
9 | import UserNotifications
10 |
11 | typealias LocalNotificationActionHandler = (String, UNNotificationContent) -> Void
| | `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing type alias
12 |
13 | /// Service provider for Local Notifications.
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:32:38: error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
| `- error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
33 |
34 | @Published public var pendingRequests: [UNNotificationRequest] = []
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:34:45: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
34 | @Published public var pendingRequests: [UNNotificationRequest] = []
| `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
35 |
36 | /// State property is set to `true` if user has granted permissions, `false` otherwise.
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:34:6: error: 'Published' is only available in macOS 10.15 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
34 | @Published public var pendingRequests: [UNNotificationRequest] = []
| `- error: 'Published' is only available in macOS 10.15 or newer
35 |
36 | /// State property is set to `true` if user has granted permissions, `false` otherwise.
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:38:6: error: 'Published' is only available in macOS 10.15 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
:
36 | /// State property is set to `true` if user has granted permissions, `false` otherwise.
37 | /// Update this value by calling the `getCurrentSettings()` functions.
38 | @Published public var isGranted = false
| `- error: 'Published' is only available in macOS 10.15 or newer
39 |
40 |
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:42:6: error: 'Published' is only available in macOS 10.15 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
:
40 |
41 | /// This property is set each time a local notification is clicked on
42 | @Published public var notificationEvent: LocalNotificationActionEvent?
| `- error: 'Published' is only available in macOS 10.15 or newer
43 |
44 | public override init() {
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:85:73: error: 'UNNotificationSound' is only available in macOS 10.14 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
:
83 | /// - localNotification: The notification details and schedule info (see ``LocalNotification``)
84 | /// - sound: Optional sound to play when notification appears, default is ``UNNotificationSound.default``
85 | public func schedule(_ localNotification: LocalNotification, sound: UNNotificationSound? = nil) async {
| | `- error: 'UNNotificationSound' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing instance method
86 | let content = UNMutableNotificationContent()
87 | content.title = localNotification.title
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:153:35: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
:
151 |
152 | /// This will "snooze" a notification by scheduling a duplicate notification using the specified `interval` and optional `repeat`
153 | public func snooze(_ content: UNNotificationContent, interval: Double, repeats: Bool = false) async {
| | `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing instance method
154 | let newContent = content.mutableCopy() as! UNMutableNotificationContent
155 | let newTrigger = UNTimeIntervalNotificationTrigger(timeInterval: interval, repeats: repeats)
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:31:52: error: 'ObservableObject' is only available in macOS 10.15 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:175:50: error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
168 | }
169 |
170 | extension LocalNotificationServices : UNUserNotificationCenterDelegate {
| `- note: add '@available' attribute to enclosing extension
171 |
172 | /// This method is called when a notification arrives while the app is in the foreground.
173 | /// It allows your app to determine how to handle the notification — whether to show it t
174 | /// o the user, and with what type of presentation style.
175 | public func userNotificationCenter(_ center: UNUserNotificationCenter,
| | `- error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing instance method
176 | willPresent notification: UNNotification) async -> UNNotificationPresentationOptions {
177 | await getPendingRequests()
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:176:66: error: 'UNNotification' is only available in macOS 10.14 or newer
168 | }
169 |
170 | extension LocalNotificationServices : UNUserNotificationCenterDelegate {
| `- note: add '@available' attribute to enclosing extension
171 |
172 | /// This method is called when a notification arrives while the app is in the foreground.
173 | /// It allows your app to determine how to handle the notification — whether to show it t
174 | /// o the user, and with what type of presentation style.
175 | public func userNotificationCenter(_ center: UNUserNotificationCenter,
| `- note: add '@available' attribute to enclosing instance method
176 | willPresent notification: UNNotification) async -> UNNotificationPresentationOptions {
| `- error: 'UNNotification' is only available in macOS 10.14 or newer
177 | await getPendingRequests()
178 | return [.sound, .banner]
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:176:91: error: 'UNNotificationPresentationOptions' is only available in macOS 10.14 or newer
168 | }
169 |
170 | extension LocalNotificationServices : UNUserNotificationCenterDelegate {
| `- note: add '@available' attribute to enclosing extension
171 |
172 | /// This method is called when a notification arrives while the app is in the foreground.
173 | /// It allows your app to determine how to handle the notification — whether to show it t
174 | /// o the user, and with what type of presentation style.
175 | public func userNotificationCenter(_ center: UNUserNotificationCenter,
| `- note: add '@available' attribute to enclosing instance method
176 | willPresent notification: UNNotification) async -> UNNotificationPresentationOptions {
| `- error: 'UNNotificationPresentationOptions' is only available in macOS 10.14 or newer
177 | await getPendingRequests()
178 | return [.sound, .banner]
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:182:50: error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
168 | }
169 |
170 | extension LocalNotificationServices : UNUserNotificationCenterDelegate {
| `- note: add '@available' attribute to enclosing extension
171 |
172 | /// This method is called when a notification arrives while the app is in the foreground.
:
180 |
181 | /// This method is called in response to a user interacting with a notification
182 | public func userNotificationCenter(_ center: UNUserNotificationCenter,
| | `- error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing instance method
183 | didReceive response: UNNotificationResponse) async {
184 |
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:183:61: error: 'UNNotificationResponse' is only available in macOS 10.14 or newer
168 | }
169 |
170 | extension LocalNotificationServices : UNUserNotificationCenterDelegate {
| `- note: add '@available' attribute to enclosing extension
171 |
172 | /// This method is called when a notification arrives while the app is in the foreground.
:
180 |
181 | /// This method is called in response to a user interacting with a notification
182 | public func userNotificationCenter(_ center: UNUserNotificationCenter,
| `- note: add '@available' attribute to enclosing instance method
183 | didReceive response: UNNotificationResponse) async {
| `- error: 'UNNotificationResponse' is only available in macOS 10.14 or newer
184 |
185 | let request = response.notification.request
<unknown>:0: error: cannot convert value of type 'KeyPath<LocalNotificationServices, [UNNotificationRequest]>' to expected argument type 'ReferenceWritableKeyPath<LocalNotificationServices, [UNNotificationRequest]>'
<unknown>:0: error: cannot convert value of type 'KeyPath<LocalNotificationServices, Bool>' to expected argument type 'ReferenceWritableKeyPath<LocalNotificationServices, Bool>'
<unknown>:0: error: cannot convert value of type 'KeyPath<LocalNotificationServices, LocalNotificationActionEvent?>' to expected argument type 'ReferenceWritableKeyPath<LocalNotificationServices, LocalNotificationActionEvent?>'
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:51:35: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
:
47 | }
48 |
49 | public convenience init(categories: [LocalNotificationCategory]) {
| `- note: add '@available' attribute to enclosing initializer
50 | self.init()
51 | var nativeCategories: Set<UNNotificationCategory> = []
| |- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
52 | for category in categories {
53 | nativeCategories.insert(category.convert())
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationCategory.swift:54:23: error: cannot find type 'UNNotificationCategory' in scope
52 | }
53 |
54 | func convert() -> UNNotificationCategory {
| `- error: cannot find type 'UNNotificationCategory' in scope
55 | var navtiveActions: [UNNotificationAction] = []
56 | for action in actions {
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:67:9: error: setter for 'isGranted' is only available in macOS 10.15 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
:
63 |
64 | /// Updates the `isGranted` state property to `true` if user has granted permissions, `false` otherwise.
65 | public func getCurrentSettings() async {
| `- note: add '@available' attribute to enclosing instance method
66 | let currentSettings = await notificationCenter.notificationSettings()
67 | isGranted = (currentSettings.authorizationStatus == .authorized)
| |- error: setter for 'isGranted' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | }
69 |
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:72:34: error: cannot find 'UIApplication' in scope
70 | /// Opens the notificaiton settings page in Settings
71 | public func openSettings() {
72 | if let url = URL(string: UIApplication.openSettingsURLString) {
| `- error: cannot find 'UIApplication' in scope
73 | if UIApplication.shared.canOpenURL(url) {
74 | Task {
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:73:16: error: cannot find 'UIApplication' in scope
71 | public func openSettings() {
72 | if let url = URL(string: UIApplication.openSettingsURLString) {
73 | if UIApplication.shared.canOpenURL(url) {
| `- error: cannot find 'UIApplication' in scope
74 | Task {
75 | await UIApplication.shared.open(url)
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:75:27: error: cannot find 'UIApplication' in scope
73 | if UIApplication.shared.canOpenURL(url) {
74 | Task {
75 | await UIApplication.shared.open(url)
| `- error: cannot find 'UIApplication' in scope
76 | }
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:86:23: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
:
83 | /// - localNotification: The notification details and schedule info (see ``LocalNotification``)
84 | /// - sound: Optional sound to play when notification appears, default is ``UNNotificationSound.default``
85 | public func schedule(_ localNotification: LocalNotification, sound: UNNotificationSound? = nil) async {
| `- note: add '@available' attribute to enclosing instance method
86 | let content = UNMutableNotificationContent()
| |- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
87 | content.title = localNotification.title
88 | content.body = localNotification.body
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:101:42: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
:
83 | /// - localNotification: The notification details and schedule info (see ``LocalNotification``)
84 | /// - sound: Optional sound to play when notification appears, default is ``UNNotificationSound.default``
85 | public func schedule(_ localNotification: LocalNotification, sound: UNNotificationSound? = nil) async {
| `- note: add '@available' attribute to enclosing instance method
86 | let content = UNMutableNotificationContent()
87 | content.title = localNotification.title
:
99 | if let bundleImageName = localNotification.bundleImageName {
100 | if let url = Bundle.main.url(forResource: bundleImageName, withExtension: "") {
101 | if let attachment = try? UNNotificationAttachment(identifier: bundleImageName, url: url) {
| |- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
102 | content.attachments = [attachment]
103 | }
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:117:27: error: 'UNTimeIntervalNotificationTrigger' is only available in macOS 10.14 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
:
83 | /// - localNotification: The notification details and schedule info (see ``LocalNotification``)
84 | /// - sound: Optional sound to play when notification appears, default is ``UNNotificationSound.default``
85 | public func schedule(_ localNotification: LocalNotification, sound: UNNotificationSound? = nil) async {
| `- note: add '@available' attribute to enclosing instance method
86 | let content = UNMutableNotificationContent()
87 | content.title = localNotification.title
:
115 | if localNotification.scheduleType == .time {
116 | guard let timeInterval = localNotification.timeInterval else { return }
117 | let trigger = UNTimeIntervalNotificationTrigger(timeInterval: timeInterval, repeats: localNotification.repeats)
| |- error: 'UNTimeIntervalNotificationTrigger' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
118 | let request = UNNotificationRequest(identifier: localNotification.identifier, content: content, trigger: trigger)
119 | try? await notificationCenter.add(request)
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:118:27: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
:
83 | /// - localNotification: The notification details and schedule info (see ``LocalNotification``)
84 | /// - sound: Optional sound to play when notification appears, default is ``UNNotificationSound.default``
85 | public func schedule(_ localNotification: LocalNotification, sound: UNNotificationSound? = nil) async {
| `- note: add '@available' attribute to enclosing instance method
86 | let content = UNMutableNotificationContent()
87 | content.title = localNotification.title
:
116 | guard let timeInterval = localNotification.timeInterval else { return }
117 | let trigger = UNTimeIntervalNotificationTrigger(timeInterval: timeInterval, repeats: localNotification.repeats)
118 | let request = UNNotificationRequest(identifier: localNotification.identifier, content: content, trigger: trigger)
| |- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
119 | try? await notificationCenter.add(request)
120 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:122:27: error: 'UNCalendarNotificationTrigger' is only available in macOS 10.14 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
:
83 | /// - localNotification: The notification details and schedule info (see ``LocalNotification``)
84 | /// - sound: Optional sound to play when notification appears, default is ``UNNotificationSound.default``
85 | public func schedule(_ localNotification: LocalNotification, sound: UNNotificationSound? = nil) async {
| `- note: add '@available' attribute to enclosing instance method
86 | let content = UNMutableNotificationContent()
87 | content.title = localNotification.title
:
120 | } else {
121 | guard let dateComponents = localNotification.dateComponents else { return }
122 | let trigger = UNCalendarNotificationTrigger(dateMatching: dateComponents, repeats: localNotification.repeats)
| |- error: 'UNCalendarNotificationTrigger' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
123 | let request = UNNotificationRequest(identifier: localNotification.identifier, content: content, trigger: trigger)
124 | try? await notificationCenter.add(request)
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:123:27: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
:
83 | /// - localNotification: The notification details and schedule info (see ``LocalNotification``)
84 | /// - sound: Optional sound to play when notification appears, default is ``UNNotificationSound.default``
85 | public func schedule(_ localNotification: LocalNotification, sound: UNNotificationSound? = nil) async {
| `- note: add '@available' attribute to enclosing instance method
86 | let content = UNMutableNotificationContent()
87 | content.title = localNotification.title
:
121 | guard let dateComponents = localNotification.dateComponents else { return }
122 | let trigger = UNCalendarNotificationTrigger(dateMatching: dateComponents, repeats: localNotification.repeats)
123 | let request = UNNotificationRequest(identifier: localNotification.identifier, content: content, trigger: trigger)
| |- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
124 | try? await notificationCenter.add(request)
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:132:9: error: setter for 'pendingRequests' is only available in macOS 10.15 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
:
129 |
130 | /// Updates the `pendingRequests` state variable
131 | public func getPendingRequests() async {
| `- note: add '@available' attribute to enclosing instance method
132 | pendingRequests = await notificationCenter.pendingNotificationRequests()
| |- error: setter for 'pendingRequests' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
133 | // print("Pending: \(pendingRequests.count)")
134 | }
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:140:13: error: cannot pass as inout because setter for 'pendingRequests' is only available in macOS 10.15 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
:
135 |
136 | /// Cancels a pending notification request
137 | public func removeRequest(withIdentifier identifier: String) {
| `- note: add '@available' attribute to enclosing instance method
138 | notificationCenter.removePendingNotificationRequests(withIdentifiers: [identifier])
139 | if let index = pendingRequests.firstIndex(where: {$0.identifier == identifier}) {
140 | pendingRequests.remove(at: index)
| |- error: cannot pass as inout because setter for 'pendingRequests' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
141 | // print("Pending: \(pendingRequests.count)")
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:148:9: error: cannot pass as inout because setter for 'pendingRequests' is only available in macOS 10.15 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
:
144 |
145 | /// Clears all pending notifications requests
146 | public func clearRequests() {
| `- note: add '@available' attribute to enclosing instance method
147 | notificationCenter.removeAllPendingNotificationRequests()
148 | pendingRequests.removeAll()
| |- error: cannot pass as inout because setter for 'pendingRequests' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
149 | // print("Pending: \(pendingRequests.count)")
150 | }
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:154:52: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
:
151 |
152 | /// This will "snooze" a notification by scheduling a duplicate notification using the specified `interval` and optional `repeat`
153 | public func snooze(_ content: UNNotificationContent, interval: Double, repeats: Bool = false) async {
| `- note: add '@available' attribute to enclosing instance method
154 | let newContent = content.mutableCopy() as! UNMutableNotificationContent
| |- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
155 | let newTrigger = UNTimeIntervalNotificationTrigger(timeInterval: interval, repeats: repeats)
156 | let request = UNNotificationRequest(identifier: UUID().uuidString,
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:155:26: error: 'UNTimeIntervalNotificationTrigger' is only available in macOS 10.14 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
:
151 |
152 | /// This will "snooze" a notification by scheduling a duplicate notification using the specified `interval` and optional `repeat`
153 | public func snooze(_ content: UNNotificationContent, interval: Double, repeats: Bool = false) async {
| `- note: add '@available' attribute to enclosing instance method
154 | let newContent = content.mutableCopy() as! UNMutableNotificationContent
155 | let newTrigger = UNTimeIntervalNotificationTrigger(timeInterval: interval, repeats: repeats)
| |- error: 'UNTimeIntervalNotificationTrigger' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
156 | let request = UNNotificationRequest(identifier: UUID().uuidString,
157 | content: newContent,
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:156:23: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
29 | /// > Don't forget to add ``LocalNotificationServices`` to your environment using `.environmentObject()`
30 | @MainActor
31 | public class LocalNotificationServices : NSObject, ObservableObject {
| `- note: add '@available' attribute to enclosing class
32 | private let notificationCenter = UNUserNotificationCenter.current()
33 |
:
151 |
152 | /// This will "snooze" a notification by scheduling a duplicate notification using the specified `interval` and optional `repeat`
153 | public func snooze(_ content: UNNotificationContent, interval: Double, repeats: Bool = false) async {
| `- note: add '@available' attribute to enclosing instance method
154 | let newContent = content.mutableCopy() as! UNMutableNotificationContent
155 | let newTrigger = UNTimeIntervalNotificationTrigger(timeInterval: interval, repeats: repeats)
156 | let request = UNNotificationRequest(identifier: UUID().uuidString,
| |- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
157 | content: newContent,
158 | trigger: newTrigger)
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:178:26: error: 'banner' is only available in macOS 11.0 or newer
168 | }
169 |
170 | extension LocalNotificationServices : UNUserNotificationCenterDelegate {
| `- note: add '@available' attribute to enclosing extension
171 |
172 | /// This method is called when a notification arrives while the app is in the foreground.
173 | /// It allows your app to determine how to handle the notification — whether to show it t
174 | /// o the user, and with what type of presentation style.
175 | public func userNotificationCenter(_ center: UNUserNotificationCenter,
| `- note: add '@available' attribute to enclosing instance method
176 | willPresent notification: UNNotification) async -> UNNotificationPresentationOptions {
177 | await getPendingRequests()
178 | return [.sound, .banner]
| |- error: 'banner' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
179 | }
180 |
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rNotification/LocalNotificationServices.swift:186:9: error: setter for 'notificationEvent' is only available in macOS 10.15 or newer
168 | }
169 |
170 | extension LocalNotificationServices : UNUserNotificationCenterDelegate {
| `- note: add '@available' attribute to enclosing extension
171 |
172 | /// This method is called when a notification arrives while the app is in the foreground.
:
180 |
181 | /// This method is called in response to a user interacting with a notification
182 | public func userNotificationCenter(_ center: UNUserNotificationCenter,
| `- note: add '@available' attribute to enclosing instance method
183 | didReceive response: UNNotificationResponse) async {
184 |
185 | let request = response.notification.request
186 | self.notificationEvent = LocalNotificationActionEvent(id: request.identifier,
| |- error: setter for 'notificationEvent' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
187 | actionIdentifier: response.actionIdentifier,
188 | content: request.content)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[40/42] Emitting module Ra9rPDF
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rPDF/PDFPreview.swift:20:37: error: cannot find type 'Context' in scope
18 | }
19 |
20 | public func makeUIView(context: Context) -> PDFView {
| `- error: cannot find type 'Context' in scope
21 | let pdfView = PDFView()
22 | pdfView.autoScales = true
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rPDF/PDFPreview.swift:26:59: error: cannot find type 'Context' in scope
24 | }
25 |
26 | public func updateUIView(_ pdfView: PDFView, context: Context) {
| `- error: cannot find type 'Context' in scope
27 | pdfView.document = PDFDocument(url: url)
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rPDF/PDFPreview.swift:13:27: error: cannot find type 'UIViewRepresentable' in scope
11 | import PDFKit
12 |
13 | public struct PDFPreview: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
14 | var url: URL
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rPDF/PDFRenderer.swift:46:54: error: 'AnyView' is only available in macOS 10.15 or newer
30 | /// }
31 | /// ````
32 | public class PDFRenderer {
| `- note: add '@available' attribute to enclosing class
33 |
34 | /// The rect that represents a paper size. Default is a A4/Letter
:
44 |
45 | @MainActor
46 | public func render(toDirectory dir: URL, views: [AnyView]) -> URL? {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
47 | // create a URL for the file in a document directory
48 | let pdfUrl = dir.appending(path: "\(self.fileName).pdf")
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rPDF/PDFPreview.swift:20:37: error: cannot find type 'Context' in scope
18 | }
19 |
20 | public func makeUIView(context: Context) -> PDFView {
| `- error: cannot find type 'Context' in scope
21 | let pdfView = PDFView()
22 | pdfView.autoScales = true
/Users/admin/builder/spi-builder-workspace/Sources/Ra9rPDF/PDFPreview.swift:26:59: error: cannot find type 'Context' in scope
24 | }
25 |
26 | public func updateUIView(_ pdfView: PDFView, context: Context) {
| `- error: cannot find type 'Context' in scope
27 | pdfView.document = PDFDocument(url: url)
28 | }
BUILD FAILURE 6.3 macosSpm