diff --git a/Sources/XCTrimCore/Types/Library.swift b/Sources/XCTrimCore/Types/Library.swift index 7b22a25..93f9fd4 100644 --- a/Sources/XCTrimCore/Types/Library.swift +++ b/Sources/XCTrimCore/Types/Library.swift @@ -16,7 +16,8 @@ public struct Library: Codable, Equatable { public func edit(with architectures: [Architecture]) -> (Self, Set) { guard let platform = platform else { return (self, []) } - let supportedArchitectures = platform.supportedArchitectures.intersection(architectures) + let validatedArchitectures = platform.supportedArchitectures.intersection(architectures) + let supportedArchitectures = validatedArchitectures.intersection(self.supportedArchitectures) let deletedArchs = self.supportedArchitectures.subtracting(supportedArchitectures) var copy = self