如何修复.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
相关产品推荐
相关产品推荐

