Build Information
Failed to build PushizoFramework, reference 0.1.0 (f60d84), with Swift 6.2 for macOS (SPM) on 22 Oct 2026 15:19:11 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pushizo/pushizo-ios.git
Reference: 0.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/pushizo/pushizo-ios
* tag 0.1.0 -> FETCH_HEAD
HEAD is now at f60d841 feat(github): pushizo organizasyonu açık depoları — SDK'lar, MCP, OpenAPI, profil
Cloned https://github.com/pushizo/pushizo-ios.git
Revision (git rev-parse @):
f60d8415cf9d313c2c85b399af8c95951014ca43
SUCCESS checkout https://github.com/pushizo/pushizo-ios.git at 0.1.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/pushizo/pushizo-ios.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version--3CB7CFEC50E0D141.txt
[5/25] Compiling PushizoCore HSQueue.swift
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSQueue.swift:83:18: warning: instance method 'lock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
81 | onRejected?(unit, error)
82 | }
83 | lock.lock()
| `- warning: instance method 'lock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
84 | var current = items
85 | let end = min(deferred + consumed, current.count)
Foundation.NSLock.lock:2:11: note: 'lock()' declared here
1 | class NSLock {
2 | open func lock()}
| `- note: 'lock()' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSQueue.swift:88:18: warning: instance method 'unlock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
86 | if deferred < end { current.removeSubrange(deferred..<end) }
87 | items = current
88 | lock.unlock()
| `- warning: instance method 'unlock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
89 | }
90 | return deferred == 0
Foundation.NSLock.unlock:2:11: note: 'unlock()' declared here
1 | class NSLock {
2 | open func unlock()}
| `- note: 'unlock()' declared here
3 |
[6/25] Compiling PushizoCore HSSession.swift
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSQueue.swift:83:18: warning: instance method 'lock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
81 | onRejected?(unit, error)
82 | }
83 | lock.lock()
| `- warning: instance method 'lock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
84 | var current = items
85 | let end = min(deferred + consumed, current.count)
Foundation.NSLock.lock:2:11: note: 'lock()' declared here
1 | class NSLock {
2 | open func lock()}
| `- note: 'lock()' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSQueue.swift:88:18: warning: instance method 'unlock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
86 | if deferred < end { current.removeSubrange(deferred..<end) }
87 | items = current
88 | lock.unlock()
| `- warning: instance method 'unlock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
89 | }
90 | return deferred == 0
Foundation.NSLock.unlock:2:11: note: 'unlock()' declared here
1 | class NSLock {
2 | open func unlock()}
| `- note: 'unlock()' declared here
3 |
[7/25] Compiling PushizoCore HSInbox.swift
[8/25] Compiling PushizoCore HSLiveActivities.swift
[9/25] Compiling PushizoCore HSInAppModels.swift
[10/25] Compiling PushizoCore HSInAppRules.swift
[11/25] Compiling PushizoCore HSPayload.swift
[12/25] Compiling PushizoCore HSPreferences.swift
[13/25] Compiling PushizoCore HSHtmlBridge.swift
[14/25] Compiling PushizoCore HSIdentityVerification.swift
[15/25] Compiling PushizoCore HSContacts.swift
[16/25] Compiling PushizoCore HSErrorReporter.swift
[17/25] Compiling PushizoCore HSLocationRules.swift
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSObservers.swift:92:44: error: 'UNAuthorizationStatus' is only available in macOS 10.14 or newer
63 | yalnızca değer değiştiğinde gözlemcileri çağırır. İlk ölçüm temel değerdir ve gözlemci tetiklemez.
64 | */
65 | public final class HSPermissionTracker {
| `- note: add '@available' attribute to enclosing class
66 | public let observers = HSListenerRegistry<Bool>()
67 | private let lock = NSLock()
:
90 |
91 | /// Bildirim gösterilebilir mi: tam, geçici (provisional) veya App Clip (ephemeral) izni.
92 | public static func isGranted(_ status: UNAuthorizationStatus) -> Bool {
| | `- error: 'UNAuthorizationStatus' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
93 | if status == .authorized || status == .provisional { return true }
94 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSObservers.swift:93:48: error: 'provisional' is only available in macOS 10.14 or newer
63 | yalnızca değer değiştiğinde gözlemcileri çağırır. İlk ölçüm temel değerdir ve gözlemci tetiklemez.
64 | */
65 | public final class HSPermissionTracker {
| `- note: add '@available' attribute to enclosing class
66 | public let observers = HSListenerRegistry<Bool>()
67 | private let lock = NSLock()
:
90 |
91 | /// Bildirim gösterilebilir mi: tam, geçici (provisional) veya App Clip (ephemeral) izni.
92 | public static func isGranted(_ status: UNAuthorizationStatus) -> Bool {
| `- note: add '@available' attribute to enclosing static method
93 | if status == .authorized || status == .provisional { return true }
| |- error: 'provisional' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
94 | #if os(iOS)
95 | // `.ephemeral` yalnızca iOS'ta tanımlı (macOS'ta `swift test` derlemesi için koşullu).
[18/25] Compiling PushizoCore HSObservers.swift
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSObservers.swift:92:44: error: 'UNAuthorizationStatus' is only available in macOS 10.14 or newer
63 | yalnızca değer değiştiğinde gözlemcileri çağırır. İlk ölçüm temel değerdir ve gözlemci tetiklemez.
64 | */
65 | public final class HSPermissionTracker {
| `- note: add '@available' attribute to enclosing class
66 | public let observers = HSListenerRegistry<Bool>()
67 | private let lock = NSLock()
:
90 |
91 | /// Bildirim gösterilebilir mi: tam, geçici (provisional) veya App Clip (ephemeral) izni.
92 | public static func isGranted(_ status: UNAuthorizationStatus) -> Bool {
| | `- error: 'UNAuthorizationStatus' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
93 | if status == .authorized || status == .provisional { return true }
94 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSObservers.swift:93:48: error: 'provisional' is only available in macOS 10.14 or newer
63 | yalnızca değer değiştiğinde gözlemcileri çağırır. İlk ölçüm temel değerdir ve gözlemci tetiklemez.
64 | */
65 | public final class HSPermissionTracker {
| `- note: add '@available' attribute to enclosing class
66 | public let observers = HSListenerRegistry<Bool>()
67 | private let lock = NSLock()
:
90 |
91 | /// Bildirim gösterilebilir mi: tam, geçici (provisional) veya App Clip (ephemeral) izni.
92 | public static func isGranted(_ status: UNAuthorizationStatus) -> Bool {
| `- note: add '@available' attribute to enclosing static method
93 | if status == .authorized || status == .provisional { return true }
| |- error: 'provisional' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
94 | #if os(iOS)
95 | // `.ephemeral` yalnızca iOS'ta tanımlı (macOS'ta `swift test` derlemesi için koşullu).
[19/25] Compiling PushizoCore HSAdsRules.swift
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSApi.swift:102:54: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
17 |
18 | /// `/sdk/v1/apps/{appId}` uçlarına JSON istek (URLSession, async/await).
19 | public final class HSApi {
| `- note: add '@available' attribute to enclosing class
20 | /// Geçerli API kökü (sondaki `/` olmadan). Bölgesel köke geçilince (ADR-0032 §4) değişir; eşzamanlı istekler için kilitli.
21 | public var apiUrl: String {
:
84 |
85 | /// `rerouted`: istek başına en fazla bir hücre yönlendirmesi izlenir (iki hücre birbirini gösterse de döngü yok).
86 | private func send(_ method: String, _ path: String, payload: (contentType: String, data: Data)?, attempt: Int, rerouted: Bool) async throws -> [String: Any] {
| `- note: add '@available' attribute to enclosing instance method
87 | let current = apiUrl
88 | guard let url = URL(string: base(for: current) + path) else { throw HSApiError(status: 0, code: "BAD_URL", message: path) }
:
100 | }
101 | do {
102 | let (data, response) = try await session.data(for: request)
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
103 | let status = (response as? HTTPURLResponse)?.statusCode ?? 0
104 | if (200..<300).contains(status) {
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSApi.swift:117:62: error: 'value(forHTTPHeaderField:)' is only available in macOS 10.15 or newer
17 |
18 | /// `/sdk/v1/apps/{appId}` uçlarına JSON istek (URLSession, async/await).
19 | public final class HSApi {
| `- note: add '@available' attribute to enclosing class
20 | /// Geçerli API kökü (sondaki `/` olmadan). Bölgesel köke geçilince (ADR-0032 §4) değişir; eşzamanlı istekler için kilitli.
21 | public var apiUrl: String {
:
84 |
85 | /// `rerouted`: istek başına en fazla bir hücre yönlendirmesi izlenir (iki hücre birbirini gösterse de döngü yok).
86 | private func send(_ method: String, _ path: String, payload: (contentType: String, data: Data)?, attempt: Int, rerouted: Bool) async throws -> [String: Any] {
| `- note: add '@available' attribute to enclosing instance method
87 | let current = apiUrl
88 | guard let url = URL(string: base(for: current) + path) else { throw HSApiError(status: 0, code: "BAD_URL", message: path) }
:
115 | let error = HSApiError(status: status, code: envelope?["code"] as? String ?? "HTTP_\(status)", message: envelope?["message"] as? String ?? "HTTP \(status)")
116 | guard error.isRetryable, attempt < backoff.count else { throw error }
117 | let retryAfter = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "Retry-After").flatMap(UInt64.init)
| |- error: 'value(forHTTPHeaderField:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
118 | try await Task.sleep(nanoseconds: ((retryAfter ?? 0) > 0 ? retryAfter! * 1_000 : backoff[min(attempt, backoff.count - 1)]) * 1_000_000)
119 | return try await send(method, path, payload: payload, attempt: attempt + 1, rerouted: rerouted)
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSApi.swift:118:23: error: 'Task' is only available in macOS 10.15 or newer
17 |
18 | /// `/sdk/v1/apps/{appId}` uçlarına JSON istek (URLSession, async/await).
19 | public final class HSApi {
| `- note: add '@available' attribute to enclosing class
20 | /// Geçerli API kökü (sondaki `/` olmadan). Bölgesel köke geçilince (ADR-0032 §4) değişir; eşzamanlı istekler için kilitli.
21 | public var apiUrl: String {
:
84 |
85 | /// `rerouted`: istek başına en fazla bir hücre yönlendirmesi izlenir (iki hücre birbirini gösterse de döngü yok).
86 | private func send(_ method: String, _ path: String, payload: (contentType: String, data: Data)?, attempt: Int, rerouted: Bool) async throws -> [String: Any] {
| `- note: add '@available' attribute to enclosing instance method
87 | let current = apiUrl
88 | guard let url = URL(string: base(for: current) + path) else { throw HSApiError(status: 0, code: "BAD_URL", message: path) }
:
116 | guard error.isRetryable, attempt < backoff.count else { throw error }
117 | let retryAfter = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "Retry-After").flatMap(UInt64.init)
118 | try await Task.sleep(nanoseconds: ((retryAfter ?? 0) > 0 ? retryAfter! * 1_000 : backoff[min(attempt, backoff.count - 1)]) * 1_000_000)
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 | return try await send(method, path, payload: payload, attempt: attempt + 1, rerouted: rerouted)
120 | } catch let error as HSApiError {
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSApi.swift:118:28: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
17 |
18 | /// `/sdk/v1/apps/{appId}` uçlarına JSON istek (URLSession, async/await).
19 | public final class HSApi {
| `- note: add '@available' attribute to enclosing class
20 | /// Geçerli API kökü (sondaki `/` olmadan). Bölgesel köke geçilince (ADR-0032 §4) değişir; eşzamanlı istekler için kilitli.
21 | public var apiUrl: String {
:
84 |
85 | /// `rerouted`: istek başına en fazla bir hücre yönlendirmesi izlenir (iki hücre birbirini gösterse de döngü yok).
86 | private func send(_ method: String, _ path: String, payload: (contentType: String, data: Data)?, attempt: Int, rerouted: Bool) async throws -> [String: Any] {
| `- note: add '@available' attribute to enclosing instance method
87 | let current = apiUrl
88 | guard let url = URL(string: base(for: current) + path) else { throw HSApiError(status: 0, code: "BAD_URL", message: path) }
:
116 | guard error.isRetryable, attempt < backoff.count else { throw error }
117 | let retryAfter = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "Retry-After").flatMap(UInt64.init)
118 | try await Task.sleep(nanoseconds: ((retryAfter ?? 0) > 0 ? retryAfter! * 1_000 : backoff[min(attempt, backoff.count - 1)]) * 1_000_000)
| |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 | return try await send(method, path, payload: payload, attempt: attempt + 1, rerouted: rerouted)
120 | } catch let error as HSApiError {
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSApi.swift:124:23: error: 'Task' is only available in macOS 10.15 or newer
17 |
18 | /// `/sdk/v1/apps/{appId}` uçlarına JSON istek (URLSession, async/await).
19 | public final class HSApi {
| `- note: add '@available' attribute to enclosing class
20 | /// Geçerli API kökü (sondaki `/` olmadan). Bölgesel köke geçilince (ADR-0032 §4) değişir; eşzamanlı istekler için kilitli.
21 | public var apiUrl: String {
:
84 |
85 | /// `rerouted`: istek başına en fazla bir hücre yönlendirmesi izlenir (iki hücre birbirini gösterse de döngü yok).
86 | private func send(_ method: String, _ path: String, payload: (contentType: String, data: Data)?, attempt: Int, rerouted: Bool) async throws -> [String: Any] {
| `- note: add '@available' attribute to enclosing instance method
87 | let current = apiUrl
88 | guard let url = URL(string: base(for: current) + path) else { throw HSApiError(status: 0, code: "BAD_URL", message: path) }
:
122 | } catch {
123 | guard attempt < backoff.count else { throw HSApiError(status: 0, code: "NETWORK", message: error.localizedDescription) }
124 | try await Task.sleep(nanoseconds: backoff[min(attempt, backoff.count - 1)] * 1_000_000)
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
125 | return try await send(method, path, payload: payload, attempt: attempt + 1, rerouted: rerouted)
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSApi.swift:124:28: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
17 |
18 | /// `/sdk/v1/apps/{appId}` uçlarına JSON istek (URLSession, async/await).
19 | public final class HSApi {
| `- note: add '@available' attribute to enclosing class
20 | /// Geçerli API kökü (sondaki `/` olmadan). Bölgesel köke geçilince (ADR-0032 §4) değişir; eşzamanlı istekler için kilitli.
21 | public var apiUrl: String {
:
84 |
85 | /// `rerouted`: istek başına en fazla bir hücre yönlendirmesi izlenir (iki hücre birbirini gösterse de döngü yok).
86 | private func send(_ method: String, _ path: String, payload: (contentType: String, data: Data)?, attempt: Int, rerouted: Bool) async throws -> [String: Any] {
| `- note: add '@available' attribute to enclosing instance method
87 | let current = apiUrl
88 | guard let url = URL(string: base(for: current) + path) else { throw HSApiError(status: 0, code: "BAD_URL", message: path) }
:
122 | } catch {
123 | guard attempt < backoff.count else { throw HSApiError(status: 0, code: "NETWORK", message: error.localizedDescription) }
124 | try await Task.sleep(nanoseconds: backoff[min(attempt, backoff.count - 1)] * 1_000_000)
| |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
125 | return try await send(method, path, payload: payload, attempt: attempt + 1, rerouted: rerouted)
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:73:77: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
71 |
72 | /// Kapatma (`UNNotificationDismissActionIdentifier`) geri bildirimi için `.customDismissAction` ile kategori.
73 | public static func category(identifier: String, actions: [HSAction]) -> UNNotificationCategory {
| | `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
74 | UNNotificationCategory(
75 | identifier: identifier,
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:83:46: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
81 |
82 | /// Mevcut kategorilerle birleştirir; aynı kimlikli kategori yenisiyle değiştirilir, diğerleri korunur.
83 | public static func merge(_ existing: Set<UNNotificationCategory>, adding category: UNNotificationCategory) -> Set<UNNotificationCategory> {
| | `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
84 | var result = existing.filter { $0.identifier != category.identifier }
85 | result.insert(category)
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:83:88: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
81 |
82 | /// Mevcut kategorilerle birleştirir; aynı kimlikli kategori yenisiyle değiştirilir, diğerleri korunur.
83 | public static func merge(_ existing: Set<UNNotificationCategory>, adding category: UNNotificationCategory) -> Set<UNNotificationCategory> {
| | `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
84 | var result = existing.filter { $0.identifier != category.identifier }
85 | result.insert(category)
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:83:119: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
81 |
82 | /// Mevcut kategorilerle birleştirir; aynı kimlikli kategori yenisiyle değiştirilir, diğerleri korunur.
83 | public static func merge(_ existing: Set<UNNotificationCategory>, adding category: UNNotificationCategory) -> Set<UNNotificationCategory> {
| | `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
84 | var result = existing.filter { $0.identifier != category.identifier }
85 | result.insert(category)
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:90:45: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
88 |
89 | /// Kategoriyi sistemdeki kayıtlı kategorileri silmeden ekler (getNotificationCategories → birleşim → set).
90 | public static func register(_ category: UNNotificationCategory, center: UNUserNotificationCenter = .current()) async {
| | `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
91 | let existing = await center.notificationCategories()
92 | if existing.contains(where: { $0.identifier == category.identifier && $0 == category }) { return }
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:90:77: error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
88 |
89 | /// Kategoriyi sistemdeki kayıtlı kategorileri silmeden ekler (getNotificationCategories → birleşim → set).
90 | public static func register(_ category: UNNotificationCategory, center: UNUserNotificationCenter = .current()) async {
| | `- error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
91 | let existing = await center.notificationCategories()
92 | if existing.contains(where: { $0.identifier == category.identifier && $0 == category }) { return }
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:74:9: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
71 |
72 | /// Kapatma (`UNNotificationDismissActionIdentifier`) geri bildirimi için `.customDismissAction` ile kategori.
73 | public static func category(identifier: String, actions: [HSAction]) -> UNNotificationCategory {
| `- note: add '@available' attribute to enclosing static method
74 | UNNotificationCategory(
| |- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
75 | identifier: identifier,
76 | actions: actions.map { UNNotificationAction(identifier: $0.id, title: $0.title, options: [.foreground]) },
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:76:36: error: 'UNNotificationAction' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
71 |
72 | /// Kapatma (`UNNotificationDismissActionIdentifier`) geri bildirimi için `.customDismissAction` ile kategori.
73 | public static func category(identifier: String, actions: [HSAction]) -> UNNotificationCategory {
| `- note: add '@available' attribute to enclosing static method
74 | UNNotificationCategory(
75 | identifier: identifier,
76 | actions: actions.map { UNNotificationAction(identifier: $0.id, title: $0.title, options: [.foreground]) },
| |- error: 'UNNotificationAction' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
77 | intentIdentifiers: [],
78 | options: [.customDismissAction]
[20/25] Compiling PushizoCore HSApi.swift
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSApi.swift:102:54: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
17 |
18 | /// `/sdk/v1/apps/{appId}` uçlarına JSON istek (URLSession, async/await).
19 | public final class HSApi {
| `- note: add '@available' attribute to enclosing class
20 | /// Geçerli API kökü (sondaki `/` olmadan). Bölgesel köke geçilince (ADR-0032 §4) değişir; eşzamanlı istekler için kilitli.
21 | public var apiUrl: String {
:
84 |
85 | /// `rerouted`: istek başına en fazla bir hücre yönlendirmesi izlenir (iki hücre birbirini gösterse de döngü yok).
86 | private func send(_ method: String, _ path: String, payload: (contentType: String, data: Data)?, attempt: Int, rerouted: Bool) async throws -> [String: Any] {
| `- note: add '@available' attribute to enclosing instance method
87 | let current = apiUrl
88 | guard let url = URL(string: base(for: current) + path) else { throw HSApiError(status: 0, code: "BAD_URL", message: path) }
:
100 | }
101 | do {
102 | let (data, response) = try await session.data(for: request)
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
103 | let status = (response as? HTTPURLResponse)?.statusCode ?? 0
104 | if (200..<300).contains(status) {
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSApi.swift:117:62: error: 'value(forHTTPHeaderField:)' is only available in macOS 10.15 or newer
17 |
18 | /// `/sdk/v1/apps/{appId}` uçlarına JSON istek (URLSession, async/await).
19 | public final class HSApi {
| `- note: add '@available' attribute to enclosing class
20 | /// Geçerli API kökü (sondaki `/` olmadan). Bölgesel köke geçilince (ADR-0032 §4) değişir; eşzamanlı istekler için kilitli.
21 | public var apiUrl: String {
:
84 |
85 | /// `rerouted`: istek başına en fazla bir hücre yönlendirmesi izlenir (iki hücre birbirini gösterse de döngü yok).
86 | private func send(_ method: String, _ path: String, payload: (contentType: String, data: Data)?, attempt: Int, rerouted: Bool) async throws -> [String: Any] {
| `- note: add '@available' attribute to enclosing instance method
87 | let current = apiUrl
88 | guard let url = URL(string: base(for: current) + path) else { throw HSApiError(status: 0, code: "BAD_URL", message: path) }
:
115 | let error = HSApiError(status: status, code: envelope?["code"] as? String ?? "HTTP_\(status)", message: envelope?["message"] as? String ?? "HTTP \(status)")
116 | guard error.isRetryable, attempt < backoff.count else { throw error }
117 | let retryAfter = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "Retry-After").flatMap(UInt64.init)
| |- error: 'value(forHTTPHeaderField:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
118 | try await Task.sleep(nanoseconds: ((retryAfter ?? 0) > 0 ? retryAfter! * 1_000 : backoff[min(attempt, backoff.count - 1)]) * 1_000_000)
119 | return try await send(method, path, payload: payload, attempt: attempt + 1, rerouted: rerouted)
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSApi.swift:118:23: error: 'Task' is only available in macOS 10.15 or newer
17 |
18 | /// `/sdk/v1/apps/{appId}` uçlarına JSON istek (URLSession, async/await).
19 | public final class HSApi {
| `- note: add '@available' attribute to enclosing class
20 | /// Geçerli API kökü (sondaki `/` olmadan). Bölgesel köke geçilince (ADR-0032 §4) değişir; eşzamanlı istekler için kilitli.
21 | public var apiUrl: String {
:
84 |
85 | /// `rerouted`: istek başına en fazla bir hücre yönlendirmesi izlenir (iki hücre birbirini gösterse de döngü yok).
86 | private func send(_ method: String, _ path: String, payload: (contentType: String, data: Data)?, attempt: Int, rerouted: Bool) async throws -> [String: Any] {
| `- note: add '@available' attribute to enclosing instance method
87 | let current = apiUrl
88 | guard let url = URL(string: base(for: current) + path) else { throw HSApiError(status: 0, code: "BAD_URL", message: path) }
:
116 | guard error.isRetryable, attempt < backoff.count else { throw error }
117 | let retryAfter = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "Retry-After").flatMap(UInt64.init)
118 | try await Task.sleep(nanoseconds: ((retryAfter ?? 0) > 0 ? retryAfter! * 1_000 : backoff[min(attempt, backoff.count - 1)]) * 1_000_000)
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 | return try await send(method, path, payload: payload, attempt: attempt + 1, rerouted: rerouted)
120 | } catch let error as HSApiError {
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSApi.swift:118:28: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
17 |
18 | /// `/sdk/v1/apps/{appId}` uçlarına JSON istek (URLSession, async/await).
19 | public final class HSApi {
| `- note: add '@available' attribute to enclosing class
20 | /// Geçerli API kökü (sondaki `/` olmadan). Bölgesel köke geçilince (ADR-0032 §4) değişir; eşzamanlı istekler için kilitli.
21 | public var apiUrl: String {
:
84 |
85 | /// `rerouted`: istek başına en fazla bir hücre yönlendirmesi izlenir (iki hücre birbirini gösterse de döngü yok).
86 | private func send(_ method: String, _ path: String, payload: (contentType: String, data: Data)?, attempt: Int, rerouted: Bool) async throws -> [String: Any] {
| `- note: add '@available' attribute to enclosing instance method
87 | let current = apiUrl
88 | guard let url = URL(string: base(for: current) + path) else { throw HSApiError(status: 0, code: "BAD_URL", message: path) }
:
116 | guard error.isRetryable, attempt < backoff.count else { throw error }
117 | let retryAfter = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "Retry-After").flatMap(UInt64.init)
118 | try await Task.sleep(nanoseconds: ((retryAfter ?? 0) > 0 ? retryAfter! * 1_000 : backoff[min(attempt, backoff.count - 1)]) * 1_000_000)
| |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 | return try await send(method, path, payload: payload, attempt: attempt + 1, rerouted: rerouted)
120 | } catch let error as HSApiError {
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSApi.swift:124:23: error: 'Task' is only available in macOS 10.15 or newer
17 |
18 | /// `/sdk/v1/apps/{appId}` uçlarına JSON istek (URLSession, async/await).
19 | public final class HSApi {
| `- note: add '@available' attribute to enclosing class
20 | /// Geçerli API kökü (sondaki `/` olmadan). Bölgesel köke geçilince (ADR-0032 §4) değişir; eşzamanlı istekler için kilitli.
21 | public var apiUrl: String {
:
84 |
85 | /// `rerouted`: istek başına en fazla bir hücre yönlendirmesi izlenir (iki hücre birbirini gösterse de döngü yok).
86 | private func send(_ method: String, _ path: String, payload: (contentType: String, data: Data)?, attempt: Int, rerouted: Bool) async throws -> [String: Any] {
| `- note: add '@available' attribute to enclosing instance method
87 | let current = apiUrl
88 | guard let url = URL(string: base(for: current) + path) else { throw HSApiError(status: 0, code: "BAD_URL", message: path) }
:
122 | } catch {
123 | guard attempt < backoff.count else { throw HSApiError(status: 0, code: "NETWORK", message: error.localizedDescription) }
124 | try await Task.sleep(nanoseconds: backoff[min(attempt, backoff.count - 1)] * 1_000_000)
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
125 | return try await send(method, path, payload: payload, attempt: attempt + 1, rerouted: rerouted)
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSApi.swift:124:28: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
17 |
18 | /// `/sdk/v1/apps/{appId}` uçlarına JSON istek (URLSession, async/await).
19 | public final class HSApi {
| `- note: add '@available' attribute to enclosing class
20 | /// Geçerli API kökü (sondaki `/` olmadan). Bölgesel köke geçilince (ADR-0032 §4) değişir; eşzamanlı istekler için kilitli.
21 | public var apiUrl: String {
:
84 |
85 | /// `rerouted`: istek başına en fazla bir hücre yönlendirmesi izlenir (iki hücre birbirini gösterse de döngü yok).
86 | private func send(_ method: String, _ path: String, payload: (contentType: String, data: Data)?, attempt: Int, rerouted: Bool) async throws -> [String: Any] {
| `- note: add '@available' attribute to enclosing instance method
87 | let current = apiUrl
88 | guard let url = URL(string: base(for: current) + path) else { throw HSApiError(status: 0, code: "BAD_URL", message: path) }
:
122 | } catch {
123 | guard attempt < backoff.count else { throw HSApiError(status: 0, code: "NETWORK", message: error.localizedDescription) }
124 | try await Task.sleep(nanoseconds: backoff[min(attempt, backoff.count - 1)] * 1_000_000)
| |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
125 | return try await send(method, path, payload: payload, attempt: attempt + 1, rerouted: rerouted)
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:73:77: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
71 |
72 | /// Kapatma (`UNNotificationDismissActionIdentifier`) geri bildirimi için `.customDismissAction` ile kategori.
73 | public static func category(identifier: String, actions: [HSAction]) -> UNNotificationCategory {
| | `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
74 | UNNotificationCategory(
75 | identifier: identifier,
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:83:46: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
81 |
82 | /// Mevcut kategorilerle birleştirir; aynı kimlikli kategori yenisiyle değiştirilir, diğerleri korunur.
83 | public static func merge(_ existing: Set<UNNotificationCategory>, adding category: UNNotificationCategory) -> Set<UNNotificationCategory> {
| | `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
84 | var result = existing.filter { $0.identifier != category.identifier }
85 | result.insert(category)
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:83:88: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
81 |
82 | /// Mevcut kategorilerle birleştirir; aynı kimlikli kategori yenisiyle değiştirilir, diğerleri korunur.
83 | public static func merge(_ existing: Set<UNNotificationCategory>, adding category: UNNotificationCategory) -> Set<UNNotificationCategory> {
| | `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
84 | var result = existing.filter { $0.identifier != category.identifier }
85 | result.insert(category)
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:83:119: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
81 |
82 | /// Mevcut kategorilerle birleştirir; aynı kimlikli kategori yenisiyle değiştirilir, diğerleri korunur.
83 | public static func merge(_ existing: Set<UNNotificationCategory>, adding category: UNNotificationCategory) -> Set<UNNotificationCategory> {
| | `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
84 | var result = existing.filter { $0.identifier != category.identifier }
85 | result.insert(category)
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:90:45: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
88 |
89 | /// Kategoriyi sistemdeki kayıtlı kategorileri silmeden ekler (getNotificationCategories → birleşim → set).
90 | public static func register(_ category: UNNotificationCategory, center: UNUserNotificationCenter = .current()) async {
| | `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
91 | let existing = await center.notificationCategories()
92 | if existing.contains(where: { $0.identifier == category.identifier && $0 == category }) { return }
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:90:77: error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
88 |
89 | /// Kategoriyi sistemdeki kayıtlı kategorileri silmeden ekler (getNotificationCategories → birleşim → set).
90 | public static func register(_ category: UNNotificationCategory, center: UNUserNotificationCenter = .current()) async {
| | `- error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
91 | let existing = await center.notificationCategories()
92 | if existing.contains(where: { $0.identifier == category.identifier && $0 == category }) { return }
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:74:9: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
71 |
72 | /// Kapatma (`UNNotificationDismissActionIdentifier`) geri bildirimi için `.customDismissAction` ile kategori.
73 | public static func category(identifier: String, actions: [HSAction]) -> UNNotificationCategory {
| `- note: add '@available' attribute to enclosing static method
74 | UNNotificationCategory(
| |- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
75 | identifier: identifier,
76 | actions: actions.map { UNNotificationAction(identifier: $0.id, title: $0.title, options: [.foreground]) },
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:76:36: error: 'UNNotificationAction' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
71 |
72 | /// Kapatma (`UNNotificationDismissActionIdentifier`) geri bildirimi için `.customDismissAction` ile kategori.
73 | public static func category(identifier: String, actions: [HSAction]) -> UNNotificationCategory {
| `- note: add '@available' attribute to enclosing static method
74 | UNNotificationCategory(
75 | identifier: identifier,
76 | actions: actions.map { UNNotificationAction(identifier: $0.id, title: $0.title, options: [.foreground]) },
| |- error: 'UNNotificationAction' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
77 | intentIdentifiers: [],
78 | options: [.customDismissAction]
[21/25] Compiling PushizoCore HSBadge.swift
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSApi.swift:102:54: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
17 |
18 | /// `/sdk/v1/apps/{appId}` uçlarına JSON istek (URLSession, async/await).
19 | public final class HSApi {
| `- note: add '@available' attribute to enclosing class
20 | /// Geçerli API kökü (sondaki `/` olmadan). Bölgesel köke geçilince (ADR-0032 §4) değişir; eşzamanlı istekler için kilitli.
21 | public var apiUrl: String {
:
84 |
85 | /// `rerouted`: istek başına en fazla bir hücre yönlendirmesi izlenir (iki hücre birbirini gösterse de döngü yok).
86 | private func send(_ method: String, _ path: String, payload: (contentType: String, data: Data)?, attempt: Int, rerouted: Bool) async throws -> [String: Any] {
| `- note: add '@available' attribute to enclosing instance method
87 | let current = apiUrl
88 | guard let url = URL(string: base(for: current) + path) else { throw HSApiError(status: 0, code: "BAD_URL", message: path) }
:
100 | }
101 | do {
102 | let (data, response) = try await session.data(for: request)
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
103 | let status = (response as? HTTPURLResponse)?.statusCode ?? 0
104 | if (200..<300).contains(status) {
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSApi.swift:117:62: error: 'value(forHTTPHeaderField:)' is only available in macOS 10.15 or newer
17 |
18 | /// `/sdk/v1/apps/{appId}` uçlarına JSON istek (URLSession, async/await).
19 | public final class HSApi {
| `- note: add '@available' attribute to enclosing class
20 | /// Geçerli API kökü (sondaki `/` olmadan). Bölgesel köke geçilince (ADR-0032 §4) değişir; eşzamanlı istekler için kilitli.
21 | public var apiUrl: String {
:
84 |
85 | /// `rerouted`: istek başına en fazla bir hücre yönlendirmesi izlenir (iki hücre birbirini gösterse de döngü yok).
86 | private func send(_ method: String, _ path: String, payload: (contentType: String, data: Data)?, attempt: Int, rerouted: Bool) async throws -> [String: Any] {
| `- note: add '@available' attribute to enclosing instance method
87 | let current = apiUrl
88 | guard let url = URL(string: base(for: current) + path) else { throw HSApiError(status: 0, code: "BAD_URL", message: path) }
:
115 | let error = HSApiError(status: status, code: envelope?["code"] as? String ?? "HTTP_\(status)", message: envelope?["message"] as? String ?? "HTTP \(status)")
116 | guard error.isRetryable, attempt < backoff.count else { throw error }
117 | let retryAfter = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "Retry-After").flatMap(UInt64.init)
| |- error: 'value(forHTTPHeaderField:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
118 | try await Task.sleep(nanoseconds: ((retryAfter ?? 0) > 0 ? retryAfter! * 1_000 : backoff[min(attempt, backoff.count - 1)]) * 1_000_000)
119 | return try await send(method, path, payload: payload, attempt: attempt + 1, rerouted: rerouted)
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSApi.swift:118:23: error: 'Task' is only available in macOS 10.15 or newer
17 |
18 | /// `/sdk/v1/apps/{appId}` uçlarına JSON istek (URLSession, async/await).
19 | public final class HSApi {
| `- note: add '@available' attribute to enclosing class
20 | /// Geçerli API kökü (sondaki `/` olmadan). Bölgesel köke geçilince (ADR-0032 §4) değişir; eşzamanlı istekler için kilitli.
21 | public var apiUrl: String {
:
84 |
85 | /// `rerouted`: istek başına en fazla bir hücre yönlendirmesi izlenir (iki hücre birbirini gösterse de döngü yok).
86 | private func send(_ method: String, _ path: String, payload: (contentType: String, data: Data)?, attempt: Int, rerouted: Bool) async throws -> [String: Any] {
| `- note: add '@available' attribute to enclosing instance method
87 | let current = apiUrl
88 | guard let url = URL(string: base(for: current) + path) else { throw HSApiError(status: 0, code: "BAD_URL", message: path) }
:
116 | guard error.isRetryable, attempt < backoff.count else { throw error }
117 | let retryAfter = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "Retry-After").flatMap(UInt64.init)
118 | try await Task.sleep(nanoseconds: ((retryAfter ?? 0) > 0 ? retryAfter! * 1_000 : backoff[min(attempt, backoff.count - 1)]) * 1_000_000)
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 | return try await send(method, path, payload: payload, attempt: attempt + 1, rerouted: rerouted)
120 | } catch let error as HSApiError {
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSApi.swift:118:28: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
17 |
18 | /// `/sdk/v1/apps/{appId}` uçlarına JSON istek (URLSession, async/await).
19 | public final class HSApi {
| `- note: add '@available' attribute to enclosing class
20 | /// Geçerli API kökü (sondaki `/` olmadan). Bölgesel köke geçilince (ADR-0032 §4) değişir; eşzamanlı istekler için kilitli.
21 | public var apiUrl: String {
:
84 |
85 | /// `rerouted`: istek başına en fazla bir hücre yönlendirmesi izlenir (iki hücre birbirini gösterse de döngü yok).
86 | private func send(_ method: String, _ path: String, payload: (contentType: String, data: Data)?, attempt: Int, rerouted: Bool) async throws -> [String: Any] {
| `- note: add '@available' attribute to enclosing instance method
87 | let current = apiUrl
88 | guard let url = URL(string: base(for: current) + path) else { throw HSApiError(status: 0, code: "BAD_URL", message: path) }
:
116 | guard error.isRetryable, attempt < backoff.count else { throw error }
117 | let retryAfter = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "Retry-After").flatMap(UInt64.init)
118 | try await Task.sleep(nanoseconds: ((retryAfter ?? 0) > 0 ? retryAfter! * 1_000 : backoff[min(attempt, backoff.count - 1)]) * 1_000_000)
| |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 | return try await send(method, path, payload: payload, attempt: attempt + 1, rerouted: rerouted)
120 | } catch let error as HSApiError {
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSApi.swift:124:23: error: 'Task' is only available in macOS 10.15 or newer
17 |
18 | /// `/sdk/v1/apps/{appId}` uçlarına JSON istek (URLSession, async/await).
19 | public final class HSApi {
| `- note: add '@available' attribute to enclosing class
20 | /// Geçerli API kökü (sondaki `/` olmadan). Bölgesel köke geçilince (ADR-0032 §4) değişir; eşzamanlı istekler için kilitli.
21 | public var apiUrl: String {
:
84 |
85 | /// `rerouted`: istek başına en fazla bir hücre yönlendirmesi izlenir (iki hücre birbirini gösterse de döngü yok).
86 | private func send(_ method: String, _ path: String, payload: (contentType: String, data: Data)?, attempt: Int, rerouted: Bool) async throws -> [String: Any] {
| `- note: add '@available' attribute to enclosing instance method
87 | let current = apiUrl
88 | guard let url = URL(string: base(for: current) + path) else { throw HSApiError(status: 0, code: "BAD_URL", message: path) }
:
122 | } catch {
123 | guard attempt < backoff.count else { throw HSApiError(status: 0, code: "NETWORK", message: error.localizedDescription) }
124 | try await Task.sleep(nanoseconds: backoff[min(attempt, backoff.count - 1)] * 1_000_000)
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
125 | return try await send(method, path, payload: payload, attempt: attempt + 1, rerouted: rerouted)
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSApi.swift:124:28: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
17 |
18 | /// `/sdk/v1/apps/{appId}` uçlarına JSON istek (URLSession, async/await).
19 | public final class HSApi {
| `- note: add '@available' attribute to enclosing class
20 | /// Geçerli API kökü (sondaki `/` olmadan). Bölgesel köke geçilince (ADR-0032 §4) değişir; eşzamanlı istekler için kilitli.
21 | public var apiUrl: String {
:
84 |
85 | /// `rerouted`: istek başına en fazla bir hücre yönlendirmesi izlenir (iki hücre birbirini gösterse de döngü yok).
86 | private func send(_ method: String, _ path: String, payload: (contentType: String, data: Data)?, attempt: Int, rerouted: Bool) async throws -> [String: Any] {
| `- note: add '@available' attribute to enclosing instance method
87 | let current = apiUrl
88 | guard let url = URL(string: base(for: current) + path) else { throw HSApiError(status: 0, code: "BAD_URL", message: path) }
:
122 | } catch {
123 | guard attempt < backoff.count else { throw HSApiError(status: 0, code: "NETWORK", message: error.localizedDescription) }
124 | try await Task.sleep(nanoseconds: backoff[min(attempt, backoff.count - 1)] * 1_000_000)
| |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
125 | return try await send(method, path, payload: payload, attempt: attempt + 1, rerouted: rerouted)
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:73:77: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
71 |
72 | /// Kapatma (`UNNotificationDismissActionIdentifier`) geri bildirimi için `.customDismissAction` ile kategori.
73 | public static func category(identifier: String, actions: [HSAction]) -> UNNotificationCategory {
| | `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
74 | UNNotificationCategory(
75 | identifier: identifier,
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:83:46: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
81 |
82 | /// Mevcut kategorilerle birleştirir; aynı kimlikli kategori yenisiyle değiştirilir, diğerleri korunur.
83 | public static func merge(_ existing: Set<UNNotificationCategory>, adding category: UNNotificationCategory) -> Set<UNNotificationCategory> {
| | `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
84 | var result = existing.filter { $0.identifier != category.identifier }
85 | result.insert(category)
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:83:88: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
81 |
82 | /// Mevcut kategorilerle birleştirir; aynı kimlikli kategori yenisiyle değiştirilir, diğerleri korunur.
83 | public static func merge(_ existing: Set<UNNotificationCategory>, adding category: UNNotificationCategory) -> Set<UNNotificationCategory> {
| | `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
84 | var result = existing.filter { $0.identifier != category.identifier }
85 | result.insert(category)
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:83:119: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
81 |
82 | /// Mevcut kategorilerle birleştirir; aynı kimlikli kategori yenisiyle değiştirilir, diğerleri korunur.
83 | public static func merge(_ existing: Set<UNNotificationCategory>, adding category: UNNotificationCategory) -> Set<UNNotificationCategory> {
| | `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
84 | var result = existing.filter { $0.identifier != category.identifier }
85 | result.insert(category)
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:90:45: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
88 |
89 | /// Kategoriyi sistemdeki kayıtlı kategorileri silmeden ekler (getNotificationCategories → birleşim → set).
90 | public static func register(_ category: UNNotificationCategory, center: UNUserNotificationCenter = .current()) async {
| | `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
91 | let existing = await center.notificationCategories()
92 | if existing.contains(where: { $0.identifier == category.identifier && $0 == category }) { return }
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:90:77: error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
88 |
89 | /// Kategoriyi sistemdeki kayıtlı kategorileri silmeden ekler (getNotificationCategories → birleşim → set).
90 | public static func register(_ category: UNNotificationCategory, center: UNUserNotificationCenter = .current()) async {
| | `- error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
91 | let existing = await center.notificationCategories()
92 | if existing.contains(where: { $0.identifier == category.identifier && $0 == category }) { return }
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:74:9: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
71 |
72 | /// Kapatma (`UNNotificationDismissActionIdentifier`) geri bildirimi için `.customDismissAction` ile kategori.
73 | public static func category(identifier: String, actions: [HSAction]) -> UNNotificationCategory {
| `- note: add '@available' attribute to enclosing static method
74 | UNNotificationCategory(
| |- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
75 | identifier: identifier,
76 | actions: actions.map { UNNotificationAction(identifier: $0.id, title: $0.title, options: [.foreground]) },
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:76:36: error: 'UNNotificationAction' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
71 |
72 | /// Kapatma (`UNNotificationDismissActionIdentifier`) geri bildirimi için `.customDismissAction` ile kategori.
73 | public static func category(identifier: String, actions: [HSAction]) -> UNNotificationCategory {
| `- note: add '@available' attribute to enclosing static method
74 | UNNotificationCategory(
75 | identifier: identifier,
76 | actions: actions.map { UNNotificationAction(identifier: $0.id, title: $0.title, options: [.foreground]) },
| |- error: 'UNNotificationAction' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
77 | intentIdentifiers: [],
78 | options: [.customDismissAction]
error: emit-module command failed with exit code 1 (use -v to see invocation)
[22/27] Compiling PushizoCore HSCellRouting.swift
[23/27] Compiling PushizoCore HSChat.swift
[24/27] Compiling PushizoCore HSConsent.swift
[25/27] Emitting module PushizoCore
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:73:77: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
71 |
72 | /// Kapatma (`UNNotificationDismissActionIdentifier`) geri bildirimi için `.customDismissAction` ile kategori.
73 | public static func category(identifier: String, actions: [HSAction]) -> UNNotificationCategory {
| | `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
74 | UNNotificationCategory(
75 | identifier: identifier,
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:83:46: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
81 |
82 | /// Mevcut kategorilerle birleştirir; aynı kimlikli kategori yenisiyle değiştirilir, diğerleri korunur.
83 | public static func merge(_ existing: Set<UNNotificationCategory>, adding category: UNNotificationCategory) -> Set<UNNotificationCategory> {
| | `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
84 | var result = existing.filter { $0.identifier != category.identifier }
85 | result.insert(category)
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:83:88: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
81 |
82 | /// Mevcut kategorilerle birleştirir; aynı kimlikli kategori yenisiyle değiştirilir, diğerleri korunur.
83 | public static func merge(_ existing: Set<UNNotificationCategory>, adding category: UNNotificationCategory) -> Set<UNNotificationCategory> {
| | `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
84 | var result = existing.filter { $0.identifier != category.identifier }
85 | result.insert(category)
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:83:119: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
81 |
82 | /// Mevcut kategorilerle birleştirir; aynı kimlikli kategori yenisiyle değiştirilir, diğerleri korunur.
83 | public static func merge(_ existing: Set<UNNotificationCategory>, adding category: UNNotificationCategory) -> Set<UNNotificationCategory> {
| | `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
84 | var result = existing.filter { $0.identifier != category.identifier }
85 | result.insert(category)
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:90:45: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
88 |
89 | /// Kategoriyi sistemdeki kayıtlı kategorileri silmeden ekler (getNotificationCategories → birleşim → set).
90 | public static func register(_ category: UNNotificationCategory, center: UNUserNotificationCenter = .current()) async {
| | `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
91 | let existing = await center.notificationCategories()
92 | if existing.contains(where: { $0.identifier == category.identifier && $0 == category }) { return }
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSBadge.swift:90:77: error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
61 |
62 | /// Dinamik bildirim kategorileri (aksiyon düğmeleri).
63 | public enum HSCategories {
| `- note: add '@available' attribute to enclosing enum
64 | /// Düğmesiz Pushizo bildirimlerinin kategorisi (yalnızca kapatma geri bildirimi için).
65 | public static let defaultIdentifier = "hs_default"
:
88 |
89 | /// Kategoriyi sistemdeki kayıtlı kategorileri silmeden ekler (getNotificationCategories → birleşim → set).
90 | public static func register(_ category: UNNotificationCategory, center: UNUserNotificationCenter = .current()) async {
| | `- error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
91 | let existing = await center.notificationCategories()
92 | if existing.contains(where: { $0.identifier == category.identifier && $0 == category }) { return }
/Users/admin/builder/spi-builder-workspace/Sources/PushizoCore/HSObservers.swift:92:44: error: 'UNAuthorizationStatus' is only available in macOS 10.14 or newer
63 | yalnızca değer değiştiğinde gözlemcileri çağırır. İlk ölçüm temel değerdir ve gözlemci tetiklemez.
64 | */
65 | public final class HSPermissionTracker {
| `- note: add '@available' attribute to enclosing class
66 | public let observers = HSListenerRegistry<Bool>()
67 | private let lock = NSLock()
:
90 |
91 | /// Bildirim gösterilebilir mi: tam, geçici (provisional) veya App Clip (ephemeral) izni.
92 | public static func isGranted(_ status: UNAuthorizationStatus) -> Bool {
| | `- error: 'UNAuthorizationStatus' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
93 | if status == .authorized || status == .provisional { return true }
94 | #if os(iOS)
[26/27] Compiling PushizoCore HSStorage.swift
[27/27] Compiling PushizoCore HSTokenSync.swift
BUILD FAILURE 6.2 macosSpm