Fix DarwinSDK legacy compat (#230)
- Commit
e49934c1fef9c8cf401399dfb17afd93e9e82f69- Author
- Kabir Oberai <[email protected]>
- When
- 2026-05-28 05:50 UTC (6 months ago)
- Parents
9c4772d
Diff
Sources/XToolSupport/SDKCommand.swift
diff --git a/Sources/XToolSupport/SDKCommand.swift b/Sources/XToolSupport/SDKCommand.swiftindex 75543f9..696d26a 100644--- a/Sources/XToolSupport/SDKCommand.swift+++ b/Sources/XToolSupport/SDKCommand.swift@@ -133,7 +133,7 @@ struct DarwinSDK { if let version = try? Data(contentsOf: bundle.appendingPathComponent("darwin-sdk-version.txt")) { self.version = String(decoding: version, as: UTF8.self) .trimmingCharacters(in: .whitespacesAndNewlines)- } else if bundle.lastPathComponent == "darwin.xtoolsdk" {+ } else if ["darwin.xtoolsdk", "darwin.artifactbundle"].contains(bundle.lastPathComponent) { self.version = "unknown" } else { return nil