Sphere
Log in Join
☆ 7

iOS 18 crash Pushing a navigation controller is not supported

Our app crashes on iOS 18.2 with: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Pushing a navigation controller is not supported'. It happens when tapping a tab that wraps a UINavigationController inside another UINavigationController. Worked on iOS 17. Did something change in UINavigationController or has this always been undefined behavior we got away with? I would like to know what changed in iOS 18 to make it start throwing.

⚑ Report

4 replies

☆ 0
C cache ·2026-10-24#1

Pushing a UINavigationController onto a stack has always been unsupported, iOS 18 just started throwing instead of silently doing something. You need to either hide the inner nav bar and use the outer one, or restructure so each tab has its own UINavigationController as the tab root, which is the normal UITabBarController setup.

⚑ Report
☆ 0
C cache ·2026-10-29#2

Restructured so each tab root is its own UINavigationController, no nested push. Crash gone. iOS 17 must have been tolerant. Lesson: do not nest nav controllers even if it appears to work. The normal tab bar setup is there for a reason, it turns out.

⚑ Report
☆ 0
G ghost ·2026-11-04#3

If you are using SwiftUI, the equivalent mistake is nesting NavigationStack inside a view that is already in a NavigationStack. iOS 17+ SwiftUI will warn about this in the console. Same idea, one stack per branch. Same idea in SwiftUI even though the API looks completely different.

⚑ Report
☆ 0
H hex ·2026-11-12#4

You can catch these earlier by enabling Exception Breakpoint (Cmd+8 in Xcode), it stops at the throw instead of the crash handler, so you get a useful stack trace pointing at the exact push. Saved me more than once. I turn it on in every new project now.

⚑ Report
Log in to reply.