You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm on Sequoia 15.1 Beta (24B5024e) and if I open and launch the On This Day sample code from 03-adding-menus-and-toolbars/final, it somehow crashes when I choose File > New Window .
Any idea why that might be happening? It doesn't seem to happen in Sonoma, but on the Sequoia beta it crashes with some complaint about a duplicate toolbar menu item. I took a brief look on Sonoma and it didn't seem to happen there so perhaps this is a Sequoia bug.
FAULT: NSInternalInconsistencyException: NSToolbar 0x60000356fc30 already contains an item with the identifier com.apple.SwiftUI.navigationSplitView.toggleSidebar. Duplicate items of this type are not allowed.; {
This looks to be an internal error since the duplicate identifier is com.apple.SwiftUI.navigationSplitView.toggleSidebar.
It would appear to be related to the toggle sidebar toolbar button that NavigationSplitView adds automatically.
Steve did some further tests and found two solutions:
Change CustomizableToolbarContent to ToolbarContent. This removes the ability to customise the toolbar, but it stops the crash.
Move the .toolbar modifier up so it is applied to the detail view instead of to the NavigationSplitView. Toolbar modifiers can go almost anywhere and you can have multiples. The toolbar items will only appear if the view they are attached to is visible. In this case, the detail view will always appear whenever the NavigationSplitView appears, so it doesn’t matter.
To my surprise, removing the automatic sidebar toggle didn't work. It must still be there but just not visible.
I still think this is a bug in Sequoia and when I get back to my beta Mac, I will do some more tests, but for now, these workarounds should help.
Many thanks to Steve for reporting the bug and working out these two options.
Report from Steve Hayman:
I'm on Sequoia 15.1 Beta (24B5024e) and if I open and launch the On This Day sample code from 03-adding-menus-and-toolbars/final, it somehow crashes when I choose File > New Window .
Any idea why that might be happening? It doesn't seem to happen in Sonoma, but on the Sequoia beta it crashes with some complaint about a duplicate toolbar menu item. I took a brief look on Sonoma and it didn't seem to happen there so perhaps this is a Sequoia bug.
FAULT: NSInternalInconsistencyException: NSToolbar 0x60000356fc30 already contains an item with the identifier com.apple.SwiftUI.navigationSplitView.toggleSidebar. Duplicate items of this type are not allowed.; {
Crash log attached:
crash_log.txt
The text was updated successfully, but these errors were encountered: