After updating Xcode I see the message in console:
[Assert] UINavigationBar decoded as unlocked for UINavigationController, or navigationBar delegate set up incorrectly. Inconsistent configuration may cause problems.
And all the data I have in the Navigation Controller scenes are not displays.
I tried to place this to the SceneDelegate, but it wasn’t helpful:
self.window?.rootViewController = navigationVC
self.window?.makeKeyAndVisible()
What should I do to fix this?
4
Answers
I’m working on this bug too. I will update here if there is any progress. I’m also facing another exception:
It should be a bug in iOS 16, not related to the Xcode version.
There are many others who have also encountered this problem: https://developer.apple.com/forums/thread/714278
A temporary solution is to use code rather than storyboards to create the navigation controller.
Restart Your Mac
And remove unnecessary functions on main class
I also find that problem.
How I fix it
If you use storyboards.
Take the arrow( in Attribute inspector-> is initial view controller) from Navigation View Controller in the storyboard and put it in your next View Controller.
Simplify change, initial view controller, in storyboard
I create a blank app from template (for iOS). Embed the default view controller in UINavigationController. I have Xcode 14.2 & iOS 16.2 and then this appear in console:
The root view controller display black or hidden maybe.
I solve with this steps:
In LoadingVC add this code:
Note: The log don’t disappear but at least root view controller display correctly.