[macos] Utilise arch helper function (#8036)

This commit is contained in:
Shamil Mubarakshin
2023-08-03 18:20:16 +02:00
committed by GitHub
parent b762375cfc
commit ff6a3d4b29
2 changed files with 2 additions and 4 deletions

View File

@@ -7,8 +7,7 @@ Import-Module "$env:HOME/image-generation/helpers/Xcode.Installer.psm1" -Disable
# https://github.com/fastlane/fastlane/pull/18116
$env:SPACESHIP_SKIP_2FA_UPGRADE = 1
$ARCH = arch
if ($ARCH -ne "arm64") { $ARCH = "x64" }
$ARCH = Get-Architecture
[Array]$xcodeVersions = Get-ToolsetValue "xcode.$ARCH.versions"
write-host $xcodeVersions
$defaultXcode = Get-ToolsetValue "xcode.default"

View File

@@ -2,8 +2,7 @@ Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
Import-Module "$PSScriptRoot/../helpers/Xcode.Helpers.psm1"
Import-Module "$PSScriptRoot/../helpers/Tests.Helpers.psm1" -DisableNameChecking
$ARCH = arch
if ($ARCH -ne "arm64") { $ARCH = "x64" }
$ARCH = Get-Architecture
$xcodeVersions = Get-ToolsetValue "xcode.$ARCH.versions"
$defaultXcode = Get-ToolsetValue "xcode.default"
$latestXcodeVersion = $xcodeVersions | Select-Object -First 1