Saturday, October 14, 2023
HomeiOS Developmentswift - iOS app crashes constructed by Xcode 14.3: Can not manually...

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


I’ve an iOS app. Just lately, I up to date my Xcode to ver 14.3. My iOS crashed proper firstly level. The next is the exception error message:

Can not 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 needn’t 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 anyplace in my iOS challenge the place the delegate on a UINavigationBar is ready 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 challenge, or any settings in my MainStoryboard.storyboard that precipitated 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 tremendous.

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



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments