diff --git a/ReleaseTooling/Sources/ZipBuilder/LaunchArgs.swift b/ReleaseTooling/Sources/ZipBuilder/LaunchArgs.swift index f18ab794d8e..80da2ecdf57 100644 --- a/ReleaseTooling/Sources/ZipBuilder/LaunchArgs.swift +++ b/ReleaseTooling/Sources/ZipBuilder/LaunchArgs.swift @@ -171,7 +171,7 @@ struct LaunchArgs { // Get the project repo directory, and fail if it doesn't exist and we're building Firebase. if let repoPath = defaults.string(forKey: Key.repoDir.rawValue) { repoDir = URL(fileURLWithPath: repoPath) - } else if defaults.string(forKey: Key.zipPods.rawValue) != nil { + } else if defaults.string(forKey: Key.zipPods.rawValue) == nil { LaunchArgs.exitWithUsageAndLog("Missing required key: `\(Key.repoDir)` for the folder " + "containing the repository from which we're building the zip.") } else { diff --git a/scripts/build_zip.sh b/scripts/build_zip.sh index ef9a3bbc31a..6b3df5d05a3 100755 --- a/scripts/build_zip.sh +++ b/scripts/build_zip.sh @@ -27,5 +27,5 @@ OUTPUT_DIR="$REPO/$1" cd ReleaseTooling swift run zip-builder -keepBuildArtifacts true -updatePodRepo true \ - -templateDir "${REPO}"/ReleaseTooling/Template -localPodspecPath "${REPO}" \ + -repoDir "${REPO}" -localPodspecPath "${REPO}" -carthageBuild true \ -outputDir "${OUTPUT_DIR}" -customSpecRepos https://github.com/firebase/SpecsStaging.git