From 5a9d23d5b715ea2d4ffab5021ccf4bcad521d921 Mon Sep 17 00:00:00 2001 From: Alexander Ignition Date: Sat, 3 Oct 2026 14:11:35 +0300 Subject: [PATCH 1/2] enableUpcomingFeatures --- Package.swift | 14 ++++++++++++-- Sources/XSTooling/ProcessCommand.swift | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Package.swift b/Package.swift index 2a1b0b2..ddd3cbd 100644 --- a/Package.swift +++ b/Package.swift @@ -3,6 +3,14 @@ import PackageDescription +let swiftSettings: [SwiftSetting] = [ + .enableUpcomingFeature("NonisolatedNonsendingByDefault"), + .enableUpcomingFeature("InferIsolatedConformances"), + .enableUpcomingFeature("ExistentialAny"), + .enableUpcomingFeature("MemberImportVisibility"), + .enableUpcomingFeature("InternalImportsByDefault"), +] + let package = Package( name: "XSTooling", platforms: [ @@ -17,13 +25,15 @@ let package = Package( targets: [ .target( name: "XSTooling", - dependencies: []), + dependencies: [], + swiftSettings: swiftSettings), .testTarget( name: "XSToolingTests", dependencies: ["XSTooling"], resources: [ .copy("Fixtures") - ]), + ], + swiftSettings: swiftSettings), ], swiftLanguageModes: [.v6], ) diff --git a/Sources/XSTooling/ProcessCommand.swift b/Sources/XSTooling/ProcessCommand.swift index 0071006..c453093 100644 --- a/Sources/XSTooling/ProcessCommand.swift +++ b/Sources/XSTooling/ProcessCommand.swift @@ -1,4 +1,4 @@ -import Foundation +public import Foundation public struct ProcessCommand: Hashable, Sendable { public static func find(_ name: String) -> ProcessCommand? { From ea1c70875423199498c8c07445ebec5fc4fffc1c Mon Sep 17 00:00:00 2001 From: Alexander Ignition Date: Sat, 3 Oct 2026 14:15:26 +0300 Subject: [PATCH 2/2] fix warning Simctl.swift:166:35: warning: use of protocol 'Decoder' as a type must be written 'any Decoder'; this will be an error in a future Swift language mode [#ExistentialAny] --- Sources/XSTooling/Simctl.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/XSTooling/Simctl.swift b/Sources/XSTooling/Simctl.swift index c850ee5..2626269 100644 --- a/Sources/XSTooling/Simctl.swift +++ b/Sources/XSTooling/Simctl.swift @@ -163,7 +163,7 @@ extension Simctl { deviceTypes = [] } - public init(from decoder: Decoder) throws { + public init(from decoder: any Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) self.devices = try container.decodeIfPresent([String: [DeviceInfo]].self, forKey: .devices) ?? [:] self.deviceTypes = try container.decodeIfPresent([DeviceType].self, forKey: .deviceTypes) ?? []