Skip to content

Commit d7daf30

Browse files
committed
Mark DeveloperDiskImageService as iOS 17.4+ to fix availability error
session.download(from:) requires iOS 15+, and this project's own deployment target is 17.4, but consumers that vendor these sources directly (rather than as a compiled framework) inherit their own, potentially lower, deployment target for availability checking.
1 parent 09dca07 commit d7daf30

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎Sources/DeveloperDiskImageService.swift‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public struct DDIPaths: Sendable {
2929
}
3030
}
3131

32+
@available(iOS 17.4, *)
3233
public actor DeveloperDiskImageService {
3334

3435
public static let shared = DeveloperDiskImageService()

‎Sources/StikJIT.swift‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public enum StikJIT {
4646
}
4747

4848
/// Downloads the personalized Developer Disk Image files if they aren't already present at `paths`.
49+
@available(iOS 17.4, *)
4950
public static func downloadDDIIfNeeded(to paths: DDIPaths,
5051
progress: @escaping (Double, String) -> Void = { _, _ in }) async throws {
5152
try await DeveloperDiskImageService.shared.downloadIfNeeded(to: paths, progress: progress)

0 commit comments

Comments
 (0)