macOS 15中NavigationSplitView使用.searchable()触发NSToolbar重复项错误
- 升级至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
相关产品推荐
相关产品推荐

