mirror of
https://github.com/StikDebug/StikJIT.git
synced 2026-10-15 20:10:31 +00:00
Mark DeveloperDiskImageService as iOS 17.4+ to fix availability error (#3)
This commit is contained in:
parent
95b8e4d3f7
commit
1230fc835b
2 changed files with 2 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ public struct DDIPaths: Sendable {
|
|||
}
|
||||
}
|
||||
|
||||
@available(iOS 17.4, *)
|
||||
public actor DeveloperDiskImageService {
|
||||
|
||||
public static let shared = DeveloperDiskImageService()
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue