File tree Expand file tree Collapse file tree 3 files changed +12
-15
lines changed Expand file tree Collapse file tree 3 files changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -163,11 +163,6 @@ function Install-AdditionalSimulatorRuntimes {
163163 [string ]$Version
164164 )
165165
166- if ($Version.Split (" ." )[0 ] -lt 14 ) {
167- # Additional simulator runtimes are included by default for Xcode < 14
168- return
169- }
170-
171166 Write-Host " Installing Simulator Runtimes for Xcode $Version ..."
172167 $xcodebuildPath = Get-XcodeToolPath - Version $Version - ToolName " xcodebuild"
173168 Invoke-ValidateCommand " $xcodebuildPath -downloadAllPlatforms | xcpretty"
Original file line number Diff line number Diff line change @@ -8,12 +8,6 @@ echo "Installing Homebrew..."
88HOMEBREW_INSTALL_URL=" https://raw.githubusercontent.com/Homebrew/install/master/install.sh"
99/bin/bash -c " $( curl -fsSL ${HOMEBREW_INSTALL_URL} ) "
1010
11- git clone https://github.com/Homebrew/homebrew-cask $( brew --repository) /Library/Taps/homebrew/homebrew-cask --origin=origin --template= --config core.fsmonitor=false --depth 1
12- git clone https://github.com/Homebrew/homebrew-core $( brew --repository) /Library/Taps/homebrew/homebrew-core --origin=origin --template= --config core.fsmonitor=false --depth 1
13-
14- brew tap homebrew/cask
15- brew tap homebrew/core
16-
1711if [[ $arch == " arm64" ]]; then
1812 /opt/homebrew/bin/brew update
1913 /opt/homebrew/bin/brew upgrade
@@ -22,6 +16,12 @@ if [[ $arch == "arm64" ]]; then
2216 eval " $( /opt/homebrew/bin/brew shellenv) "
2317fi
2418
19+ git clone https://github.com/Homebrew/homebrew-cask $( brew --repository) /Library/Taps/homebrew/homebrew-cask --origin=origin --template= --config core.fsmonitor=false --depth 1
20+ git clone https://github.com/Homebrew/homebrew-core $( brew --repository) /Library/Taps/homebrew/homebrew-core --origin=origin --template= --config core.fsmonitor=false --depth 1
21+
22+ brew tap homebrew/cask
23+ brew tap homebrew/core
24+
2525echo " Disabling Homebrew analytics..."
2626brew analytics off
2727
Original file line number Diff line number Diff line change @@ -30,11 +30,13 @@ Write-Host "Configuring Xcode versions..."
3030$xcodeVersions | ForEach-Object {
3131 Write-Host " Configuring Xcode $ ( $_.link ) ..."
3232 Invoke-XcodeRunFirstLaunch - Version $_.link
33- }
3433
35- $latestVersion = $xcodeVersions | Sort-Object - Property link - Descending | Select-Object - First 1 - ExpandProperty link
36- Write-Host " Installing simulators for version $latestVersion ..."
37- Install-AdditionalSimulatorRuntimes - Version $latestVersion
34+ if ($_.link.Split (" ." )[0 ] -ge 14 ) {
35+ # Additional simulator runtimes are included by default for Xcode < 14
36+ Install-AdditionalSimulatorRuntimes - Version $_.link
37+ }
38+
39+ }
3840
3941Invoke-XcodeRunFirstLaunch - Version $defaultXcode
4042
You can’t perform that action at this time.
0 commit comments