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

Xcode 15未显示模拟器列表求助:已手动安装iOS 17.0运行时

解决Xcode 15手动安装iOS 17.0运行时后模拟器列表不显示的问题

以下是针对性的排查和解决步骤,按顺序尝试:

  • 检查运行时路径匹配
    先通过xcrun simctl runtime list获取已安装iOS 17.0运行时的路径(通常为/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.0.simruntime)。打开Xcode偏好设置→「平台」,若能看到iOS 17.0条目,右键选择「在访达中显示」,对比两个路径是否一致。若不一致,将手动安装的运行时文件复制到Xcode默认扫描目录:

    cp -r /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ 17.0.simruntime /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/
    

    复制后重启Xcode。

  • 彻底重置CoreSimulator服务
    终端执行以下命令清空模拟器缓存并重启服务:

    killall -9 com.apple.CoreSimulator.CoreSimulatorService
    xcrun simctl shutdown all
    xcrun simctl erase all
    rm -rf ~/Library/Developer/CoreSimulator/Devices
    rm -rf ~/Library/Developer/CoreSimulator/Profiles
    

    完成后重启Mac,再打开Xcode查看模拟器列表。

  • 重新关联命令行工具
    打开Xcode→设置→「Locations」,确认「Command Line Tools」选中Xcode 15。若已选中,先切换到其他版本(如有)再切回Xcode 15;也可直接在终端执行:

    sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
    

    执行后重启Xcode。

  • 修复运行时配置文件(极端情况)
    找到iOS 17.0运行时的simruntime文件,右键选择「显示包内容」,打开Contents/Info.plist,检查以下字段:

    • CFBundleIdentifier:需为com.apple.CoreSimulator.SimRuntime.iOS-17-0
    • DTPlatformVersion:需为17.0
    • DTSDKName:需为iphoneos17.0
      若字段值错误,修改后保存,再执行重置CoreSimulator服务的命令,重启Xcode。
  • 重新初始化Xcode组件
    终端执行命令让Xcode重新加载所有组件:

    xcodebuild -runFirstLaunch
    

    完成后打开Xcode,再次检查模拟器列表。

内容的提问来源于stack exchange,提问作者avisrapāx

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.25 13:53:16