How to fix .net maui actool exited with code 1 error when deploying to ios simulator?

Jess 25 Reputation points
2024-06-19T20:43:12.8533333+00:00

I'm getting the following 3 errors when I build my MAUI application to iOS simulator (no issues deploying to android simulator):

actool exited with code 1

arch exited with code 1

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

This is happening for any/all MAUI apps for me--I created a brand new app, made no changes, and it still happens.

What I've tried:

  • I saw this thread, however I have not changed the icon name, so this isn't the issue.
  • Added the following property groups to the csproj, but errors still showed up:

attempt 1:

 <PropertyGroup Condition="'$(TargetFramework)'=='net8.0-ios'">
    <ForceSimulatorX64ArchitectureInIDE>true</ForceSimulatorX64ArchitectureInIDE>
  </PropertyGroup>

attempt 2:

<PropertyGroup Condition="'$(TargetFramework)'=='net8.0-ios'">
    <RuntimeIdentifier>iossimulator-x64</RuntimeIdentifier>
  </PropertyGroup>
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,869 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,206 questions
0 comments No comments
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 29,046 Reputation points Microsoft Vendor
    2024-06-20T02:21:06.6866667+00:00

    Hello,

    Failed to locate any simulator runtime matching options:...VersionString = "17.5";

    This error means there are not iOS17.5 simulators downloaded on your Xcode. Please open Xcode, then check if there is the prompt to download the components. Also, please Open Xcode, go to Settings -> Platforms and install the missing simulator.

    If you are using VS on Windows machine and pair to Mac, please run the following command on your Mac:

    • Run killall -9 com.apple.CoreSimulator.CoreSimulatorService.
    • Run xcrun simctl list devices.

    See Remote iOS Simulator for Windows - .NET MAUI | Microsoft Learn

    (Note: new APIs in Xcode 15.3/4/5 are not available with MAUI, please follow the progress at [META] Xcode 15.3/4 Support for .NET 8 and MAUI · Issue #20257 · xamarin/xamarin-macios (github.com))

    Best Regards,

    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful