Skip to content

Commit

Permalink
[siminstaller] Don't try old-style dvtdownloadableindex anymore.
Browse files Browse the repository at this point in the history
It doesn't work because Xcode doesn't contain the information required to
compute the old-style url.
  • Loading branch information
rolfbjarne committed Feb 13, 2024
1 parent ea1f556 commit 16a18fd
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tools/siminstaller/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,19 +126,13 @@ public static int Main (string [] args)
return 1;
xcodeVersion = xcodeVersion.Trim ();

if (!TryExecuteAndCapture ("/usr/libexec/PlistBuddy", $"-c 'Print :DVTPlugInCompatibilityUUID' '{plist}'", out var xcodeUuid))
return 1;
xcodeUuid = xcodeUuid.Trim ();

xcodeVersion = xcodeVersion.Insert (xcodeVersion.Length - 2, ".");
xcodeVersion = xcodeVersion.Insert (xcodeVersion.Length - 1, ".");

var indexName = $"index-{xcodeVersion}-{xcodeUuid}.dvtdownloadableindex";
var indexName = $"index2-{xcodeVersion}.dvtdownloadableindex";
var tmpfile = Path.Combine (TempDirectory, indexName);
if (!File.Exists (tmpfile)) {
// Try multiple urls
var urls = new string [] {
$"https://devimages-cdn.apple.com/downloads/xcode/simulators/{indexName}",
/*
* The following url was found while debugging Xcode, the "index2" part is actually hardcoded:
*
Expand Down

0 comments on commit 16a18fd

Please sign in to comment.