Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Xamarin.MacDev/AppleSdkSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Linq;

// Disable until we get around to enable + fix any issues.
#nullable disable
Expand Down Expand Up @@ -142,6 +143,10 @@ static AppleSdkSettings ()
break;
}

// If no existing settings file was found, default to the first candidate path.
if (SettingsPath is null)
SettingsPath = XcodeLocator.SettingsPathCandidates.First ();

Directory.CreateDirectory (Path.GetDirectoryName (SettingsPath));

Init ();
Expand Down
Loading