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

Xcode 16中Rosetta选项消失,非Rosetta模拟器架构问题求助

解决Xcode 16中Rosetta模拟器选项缺失及架构报错问题

替代开启Rosetta模拟器的方法

Xcode 16调整了Rosetta的设置入口,可按以下步骤开启:

  • 打开模拟器后,点击顶部菜单栏的 Simulator -> Settings
  • 在 General 标签页中,勾选 Open using Rosetta,重启模拟器即可生效

修复架构报错的额外配置

若开启Rosetta后仍出现could not find module 'module name' for target 'x86_64-apple-ios-simulator'报错,需检查项目配置:

  • 打开项目的 Build Settings,搜索 Architectures,设置为 Standard Architectures (arm64, x86_64),确保同时支持两种架构
  • 搜索 Build Active Architecture Only,将Debug模式下的该选项设为 NO,保证编译时生成全架构模块
  • 清理项目缓存:点击Xcode顶部菜单栏 Product -> Clean Build Folder,再重新编译

临时方案:命令行指定架构启动模拟器

如果图形界面方法无效,可通过命令行强制以x86_64架构启动模拟器:

arch -x86_64 /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.22 14:18:10