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

升级Xcode 16后无法向Apple TV构建项目,DDI兼容问题求助

Xcode 16 无法向 tvOS 设备构建项目的 DDI 兼容问题

从Xcode 15升级至Xcode 16后,无法通过USB-C向运行tvOS 17.7的旧款Apple TV构建项目(已排除网络连接问题),在「设备与模拟器」窗口中遇到如下错误:

前期准备错误:无法找到可用于在设备上启用DDI服务的DDI。通常表示为该平台找到的最佳DDI不具备兼容的CoreDevice内容。请从命令行运行‘devicectl list preferredDDI’以获取无有效DDI的详细原因。

执行xcrun devicectl list preferredDDI命令后得到以下输出:

WARNING: No usable DDI found for the tvOS platform (The DDI's CoreDevice content is too old.). Best (unusable) DDI found is:
• hostDDI: file:///Library/Developer/DeveloperDiskImages/tvOS_DDI.dmg
▿ ddiMetadata:
    • buildUpdate: 15F31d
    • contentIsCompatible: false
    • coreDeviceVersionChecksIncludeDevelopmentRevision: true
    • developmentRevision: 0
    • enforcingCoreDeviceVersionChecks: true
    • platform: tvOS
    ▿ projectMetadata:
        • Citrine-25.1.1
        • CoreDevice-355.28
        • DTDeveloperDiskImageSupport-14.0.0
        • DTOCMock-22600
        • GPUToolsDevice_DDI-270.8
        • JetsamProperties-1925.120.11
        • LiveExecutionResultsLogger-19506
        • Mercury-49
        • XCTest-22720
    • incompatibleContentReason: The DDI's CoreDevice content is too old.
    • isUsable: false
    • variant: external

已尝试以下解决方案,但均未奏效:

  • 确保macOS为最新版本(当前使用14.x Sonoma)
  • 执行xcode-select --switch /path/to/new/Xcode命令切换Xcode路径
  • 通过Xcode > 设置 > 组件安装最新平台和模拟器组件
  • 将tvOS从17.7升级至18
  • 禁用为Xcode 15启用的defaults write com.apple.dt.Xcode DVTEnableCoreDevice disable设置
  • 删除/Library/Developer/DeveloperDiskImages/目录以重新触发DDI安装
  • 确保已安装最新Xcode命令行工具
  • 重启Xcode及电脑

额外情况:升级至macOS 14.7时,收到「需要软件更新才能连接」的提示,但安装失败,提示「无法安装该软件,因为当前无法从软件更新服务器获取」,设备为公司管理的笔记本电脑。

寻求解决该问题的有效方案。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.17 23:52:04