Search code examples
visual-studiomaui.net-ios

Visual Studio build error: The operation couldn’t be completed. Failed to locate any simulator runtime matching options


After MacOS update Visual Studio stopped building .NET MAUI iOS project using paired Mac computer. The following error reported:

The operation couldn’t be completed. Failed to locate any simulator runtime matching options: {
    BuildVersionString = 21E210;
    Platforms =     (
        "com.apple.platform.iphonesimulator"
    );
    VersionString = "17.4";
}

How can I fix this issue?


Solution

  • The accepted answer may download simulators for platforms you don't need like WatchOS. A more refined approach is to load XCode to the XCode menu -> Settings -> Platforms and install the missing simulator(s).

    enter image description here

    I also removed about 20GB of simulators I didn't need which was a nice bonus.