Mark DeveloperDiskImageService as iOS 17.4+ to fix availability error (#3)

This commit is contained in:
CelloSerenity 2026-07-06 07:56:35 -06:00 • committed by GitHub
parent 95b8e4d3f7
commit 1230fc835b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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)