From f7880705ec9b5f0670935603bca91cc1d28bdc5a Mon Sep 17 00:00:00 2001 From: Fedor Korotkov Date: Wed, 23 Jul 2025 13:44:14 -0700 Subject: [PATCH] All simulators for the last 3 versions of Xcode (#254) --- templates/xcode.pkr.hcl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/templates/xcode.pkr.hcl b/templates/xcode.pkr.hcl index 866381d..74000e1 100644 --- a/templates/xcode.pkr.hcl +++ b/templates/xcode.pkr.hcl @@ -167,6 +167,18 @@ build { } } + dynamic "provisioner" { + for_each = length(var.xcode_version) > 2 ? [2] : [] + labels = ["shell"] + content { + inline = [ + "source ~/.zprofile", + "sudo xcodes select '${var.xcode_version[2]}'", + "xcodebuild -downloadAllPlatforms", + ] + } + } + dynamic "provisioner" { for_each = length(var.xcode_version) > 1 ? [1] : [] labels = ["shell"]