@@ -230,11 +230,6 @@ struct ZipBuilderTool: ParsableCommand {
230
230
fatalError ( " Missing template inside of the repo. \( templateDir) does not exist. " )
231
231
}
232
232
233
- // Set the platform minimum versions.
234
- PlatformMinimum . initialize ( ios: minimumIOSVersion,
235
- macos: minimumMacOSVersion,
236
- tvos: minimumTVOSVersion)
237
-
238
233
// Update iOS target platforms if `--include-catalyst` was specified.
239
234
if !includeCatalyst {
240
235
SkipCatalyst . set ( )
@@ -272,6 +267,11 @@ struct ZipBuilderTool: ParsableCommand {
272
267
}
273
268
274
269
if let podsToBuild = podsToBuild {
270
+ // Set the platform minimum versions.
271
+ PlatformMinimum . initialize ( ios: minimumIOSVersion,
272
+ macos: minimumMacOSVersion,
273
+ tvos: minimumTVOSVersion)
274
+
275
275
let ( installedPods, frameworks, _) =
276
276
builder. buildAndAssembleZip ( podsToInstall: podsToBuild,
277
277
includeDependencies: buildDependencies)
@@ -300,6 +300,12 @@ struct ZipBuilderTool: ParsableCommand {
300
300
}
301
301
} else {
302
302
// Do a Firebase Zip Release package build.
303
+
304
+ // For the Firebase zip distribution, we disable version checking at install time by
305
+ // setting a high version to install. The minimum versions are controlled by each individual
306
+ // pod's podspec options.
307
+ PlatformMinimum . useRecentVersions ( )
308
+
303
309
var carthageOptions : CarthageBuildOptions ?
304
310
if carthageBuild {
305
311
let jsonDir = paths. repoDir. appendingPathComponents ( [ " ReleaseTooling " , " CarthageJSON " ] )
0 commit comments