Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ This command will keep only ios version with arm64 slice and ios simulator versi
| tvos | arm64 |
| tvossimulator | arm64, x86\_64 |
| macos | arm64, i386, x86\_64 |
| watchos | arm64, arm64\_32, armv7k |
| watchossimulator| arm64, i386, x86\_64 |
2 changes: 2 additions & 0 deletions Sources/CLI/PlatformOptions+ExpressibleByArgument.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ extension PlatformOptions: ExpressibleByArgument {
case "tvos": platform = .tvOS
case "tvossimulator": platform = .tvOSSimulator
case "macos": platform = .macOS
case "watchos": platform = .watchOS
case "watchossimulator": platform = .watchOSSimulator
default: return nil
}

Expand Down
6 changes: 6 additions & 0 deletions Sources/XCTrimCore/Types/Architecture.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ public enum Architecture: String, Codable {
case i386
case armv7
case x86_64
case arm64_32
case armv7k
}

public extension Architecture {
Expand All @@ -20,6 +22,10 @@ public extension Architecture {
return 2
case .x86_64:
return 3
case .arm64_32:
return 4
case .armv7k:
return 5
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions Sources/XCTrimCore/Types/Library.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ public extension Library {
return .tvOS
case ("macos", nil):
return .macOS
case ("watchos", nil):
return .watchOS
case ("watchos", "simulator"):
return .watchOSSimulator
default:
return nil
}
Expand Down
10 changes: 10 additions & 0 deletions Sources/XCTrimCore/Types/Platform.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ public enum Platform {
case tvOS
case tvOSSimulator
case macOS
case watchOS
case watchOSSimulator
}

extension Platform {
Expand All @@ -22,6 +24,10 @@ extension Platform {
return [.arm64, .x86_64]
case .macOS:
return [.arm64, .x86_64, .i386]
case .watchOS:
return [.arm64, .arm64_32, .armv7k]
case .watchOSSimulator:
return [.arm64, .i386, .x86_64]
}
}

Expand All @@ -43,6 +49,10 @@ extension Platform {
return "tvos-\(archStr)-simulator"
case .macOS:
return "macos-\(archStr)"
case .watchOS:
return "watchos-\(archStr)"
case .watchOSSimulator:
return "watchos-\(archStr)-simulator"
}
}
}