You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何修复.NET MAUI构建iOS模拟器时actool退出代码1错误

MAUI 构建iOS模拟器时出现三个错误(Android模拟器部署正常)

构建到iOS模拟器时出现以下错误:

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";
}

该问题出现在所有MAUI应用中——即使是创建的全新未修改应用,也会触发错误。

已尝试的解决方案

  • 参考过相关排查线程,但我未修改图标名称,因此这并非问题根源。
  • 尝试添加指定的PropertyGroup条件,但仍出现相同错误,尝试的配置如下:

尝试1:

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

尝试2:

<PropertyGroup Condition="'$(TargetFramework)'=='net8.0-ios'">
  <RuntimeIdentifier>iossimulator-x64</RuntimeIdentifier>
</PropertyGroup>

内容的提问来源于stack exchange,提问作者jess

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.22 02:47:39