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

macOS 15中NavigationSplitView使用.searchable()触发NSToolbar重复项错误

macOS 15 + Xcode 16下NavigationSplitView使用.searchable()触发重复搜索栏错误
  • 升级至macOS 15后,在NavigationSplitView上调用.searchable()会触发以下错误:

NSToolbar 0x60000244b8d0 already contains an item with the identifier com.apple.SwiftUI.search. Duplicate items of this type are not allowed.

  • 升级Xcode 16并重新编译应用后,该问题仍然无法解决
  • 此问题已在开发者社区被提及,但目前暂无官方修复方案

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.17 21:42:01