From 16eddff5720f4bd2d8ca78fde869c877c1e27ac2 Mon Sep 17 00:00:00 2001 From: Fedor Korotkov Date: Tue, 6 Dec 2022 17:12:21 -0500 Subject: [PATCH] Download all available platforms for Xcode So tvOS and watchOS are available --- templates/xcode.pkr.hcl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/xcode.pkr.hcl b/templates/xcode.pkr.hcl index 84380ba..ad8cd4d 100644 --- a/templates/xcode.pkr.hcl +++ b/templates/xcode.pkr.hcl @@ -73,7 +73,8 @@ build { "xcodes install ${var.xcode_version} --experimental-unxip --path $PWD/Xcode_${var.xcode_version}.xip", "sudo rm -rf ~/.Trash/*", "xcodes select ${var.xcode_version}", - "sudo xcodebuild -runFirstLaunch", + "xcodebuild -downloadAllPlatforms", + "xcodebuild -runFirstLaunch", ] } provisioner "shell" {