From 1230fc835b9ac06349151fa57af8b5baa345612a Mon Sep 17 00:00:00 2001 From: CelloSerenity <195480169+CelloSerenity@users.noreply.github.com> Date: Mon, 6 Jul 2026 07:56:35 -0600 Subject: [PATCH] Mark DeveloperDiskImageService as iOS 17.4+ to fix availability error (#3) --- Sources/DeveloperDiskImageService.swift | 1 + Sources/StikJIT.swift | 1 + 2 files changed, 2 insertions(+) diff --git a/Sources/DeveloperDiskImageService.swift b/Sources/DeveloperDiskImageService.swift index d21ee44..8aa45ee 100644 --- a/Sources/DeveloperDiskImageService.swift +++ b/Sources/DeveloperDiskImageService.swift @@ -29,6 +29,7 @@ public struct DDIPaths: Sendable { } } +@available(iOS 17.4, *) public actor DeveloperDiskImageService { public static let shared = DeveloperDiskImageService() diff --git a/Sources/StikJIT.swift b/Sources/StikJIT.swift index f24329e..4ad5f83 100644 --- a/Sources/StikJIT.swift +++ b/Sources/StikJIT.swift @@ -44,6 +44,7 @@ public enum StikJIT { try DDISession(pairingFilePath: pairingFile.path, configuration: configuration).isMounted() } + @available(iOS 17.4, *) public static func downloadDDIIfNeeded(to paths: DDIPaths, progress: @escaping (Double, String) -> Void = { _, _ in }) async throws { try await DeveloperDiskImageService.shared.downloadIfNeeded(to: paths, progress: progress)