Skip to content

Commit 0656f02

Browse files
ian-twilightcoderbkhouri
authored andcommitted
Remove the system prefix fallbacks
SystemPrefix is present at least as far back as macOS 14.0/DriverKit 23.0, so it should be ok to remove the hard coded fallbacks now. rdar://165715061
1 parent e0dfb13 commit 0656f02

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

Sources/SWBCore/SDKRegistry.swift

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -407,16 +407,7 @@ public final class SDKVariant: PlatformInfoProvider, Sendable {
407407
self.minimumOSForSwiftConcurrency = try (supportedTargetDict["SwiftConcurrencyMinimumDeploymentTarget"]?.stringValue ?? concurrency).map { try Version($0) }
408408
self.minimumOSForSwiftSpan = try (supportedTargetDict["SwiftSpanMinimumDeploymentTarget"]?.stringValue ?? span).map { try Version($0) }
409409

410-
self.systemPrefix = supportedTargetDict["SystemPrefix"]?.stringValue ?? {
411-
switch name {
412-
case MacCatalystInfo.sdkVariantName:
413-
return "/System/iOSSupport"
414-
case "driverkit":
415-
return "/System/DriverKit"
416-
default:
417-
return ""
418-
}
419-
}()
410+
self.systemPrefix = supportedTargetDict["SystemPrefix"]?.stringValue ?? ""
420411
}
421412

422413
private static func fallbackDeviceFamiliesData(variantName name: String) throws -> PropertyListItem {

0 commit comments

Comments
 (0)