Mark DeveloperDiskImageService as iOS 17.4+ to fix availability error

This commit is contained in:
CelloSerenity 2026-07-05 21:35:57 -06:00
parent 95b8e4d3f7
commit dc283303e9
2 changed files with 2 additions and 0 deletions

View file

@ -29,6 +29,7 @@ public struct DDIPaths: Sendable {
}
}
@available(iOS 17.4, *)
public actor DeveloperDiskImageService {
public static let shared = DeveloperDiskImageService()

View file

@ -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)