HomeiOS Developmentswift - iOS app crashes constructed by Xcode 14.3: Can't manually set...

swift – iOS app crashes constructed by Xcode 14.3: Can’t manually set the delegate on a UINavigationBar


I’ve an iOS app. Not too long ago, I up to date my Xcode to ver 14.3. My iOS crashed proper in the beginning level. The next is the exception error message:

Can't manually set the delegate on a UINavigationBar managed by a controller.

This didn’t occur within the earlier Xcode 14.1.

I exploit storyboards to setup the app’s UI. Right here is the doorway outlined in my app:

enter image description here

In my app data plist file, I set the doorway of the storyboard as MainStoryboard:

enter image description here

On this approach, I need not specify which view controller to load because the preliminary begin level in AppDelegate class.

The foundation view controller in MainStoryboard.storyboard is a tab view controller with 3 tabs, pointing to different 3 storyboard references. The foundation view controller relies on a custom-made class:

class RootViewController: UITabBarController {
    ....
}

the place the three tabs are arrange with titles and pictures. I attempted to set a break level in viewLoaded occasion, however the crash occurred earlier than reaching my code.

I couldn’t discover anywhere in my iOS undertaking the place the delegate on a UINavigationBar is about manually on this storyboard or in my custom-made class. There is no such thing as a navigation controller within the root view controller in any respect.

There are not any any compiling warnings or errors in any respect. I’m not certain why the exception is raised earlier than reaching my iOS codes. Is there any property settings in my iOS undertaking, or any settings in my MainStoryboard.storyboard that triggered the error? Or are any main adjustments or guidelines in Xcode 14.3 I ought to comply?

The unusual factor is that if I roll again to Xcode 14.1, the earlier model, my app compiles and runs superb.

I vastly admire any assist or recommendation to resolve the difficulty.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments