@@ -80,10 +80,10 @@ struct ZipBuilderTool: ParsableCommand {
80
80
var keepBuildArtifacts : Bool
81
81
82
82
/// Flag to skip building the Catalyst slices.
83
- @Flag ( default: false ,
83
+ @Flag ( default: true ,
84
84
inversion: . prefixedNo,
85
- help: ArgumentHelp ( " A flag to indicate keeping (not deleting) the build artifacts . " ) )
86
- var skipCatalyst : Bool
85
+ help: ArgumentHelp ( " A flag to indicate skip building the Catalyst slice . " ) )
86
+ var includeCatalyst : Bool
87
87
88
88
/// Flag to run `pod repo update` and `pod cache clean --all`.
89
89
@Flag ( default: true ,
@@ -106,18 +106,15 @@ struct ZipBuilderTool: ParsableCommand {
106
106
// MARK: - Platform Arguments
107
107
108
108
/// The minimum iOS Version to build for.
109
- @Option ( default: " 10.0 " ,
110
- help: ArgumentHelp ( " The minimum supported iOS version. " ) )
109
+ @Option ( default: " 10.0 " , help: ArgumentHelp ( " The minimum supported iOS version. " ) )
111
110
var minimumIOSVersion : String
112
111
113
112
/// The minimum macOS Version to build for.
114
- @Option ( default: " 10.12 " ,
115
- help: ArgumentHelp ( " The minimum supported macOS version. " ) )
116
- var minimumMACOSVersion : String
113
+ @Option ( default: " 10.12 " , help: ArgumentHelp ( " The minimum supported macOS version. " ) )
114
+ var minimumMacOSVersion : String
117
115
118
116
/// The minimum tvOS Version to build for.
119
- @Option ( default: " 10.0 " ,
120
- help: ArgumentHelp ( " The minimum supported tvOS version. " ) )
117
+ @Option ( default: " 10.0 " , help: ArgumentHelp ( " The minimum supported tvOS version. " ) )
121
118
var minimumTVOSVersion : String
122
119
123
120
/// The list of platforms to build for.
@@ -235,11 +232,11 @@ struct ZipBuilderTool: ParsableCommand {
235
232
236
233
// Set the platform minimum versions.
237
234
PlatformMinimum . initialize ( ios: minimumIOSVersion,
238
- macos: minimumMACOSVersion ,
235
+ macos: minimumMacOSVersion ,
239
236
tvos: minimumTVOSVersion)
240
237
241
- // Update iOS target platforms if `--skip -catalyst` was specified.
242
- if skipCatalyst {
238
+ // Update iOS target platforms if `--include -catalyst` was specified.
239
+ if !includeCatalyst {
243
240
SkipCatalyst . set ( )
244
241
}
245
242
@@ -315,7 +312,7 @@ struct ZipBuilderTool: ParsableCommand {
315
312
}
316
313
317
314
if !keepBuildArtifacts {
318
- let tempDir = FileManager . default. temporaryDirectory ( withName: " random " )
315
+ let tempDir = FileManager . default. temporaryDirectory ( withName: " placeholder " )
319
316
FileManager . default. removeIfExists ( at: tempDir. deletingLastPathComponent ( ) )
320
317
}
321
318
0 commit comments