Post

Replies

Boosts

Views

Activity

Reply to Xcode 14: [Assert] UINavigationBar decoded as unlocked for UINavigationController
Having the same issue. My project has been created a long time ago using Storyboards (2018). App has been updated in 2020 and so far was running fine until iOS 16 (no errors in iOS 15 or lower). I am getting this error in the console but I don't see any visual issues: 2022-09-22 09:41:01.111985-0400 [Assert] UINavigationBar decoded as unlocked for UINavigationController, or navigationBar delegate set up incorrectly. Inconsistent configuration may cause problems. navigationController=<UINavigationController: 0x7fdf92826600>, navigationBar=<UINavigationBar: 0x7fdf9070b720; frame = (0 0; 0 50); autoresize = W; tintColor = UIExtendedGrayColorSpace 1 1; layer = <CALayer: 0x6000010907e0>> delegate=0x7fdf92826600 I also have a crash happening randomly which might be related (only under iOS 16 as well): libsystem_platform.dylib`os_unfair_lock_lock I have added the fix for the default transparent navigationBar under iOs 15+ which worked but did not get rid of the assert error:  //Fix Nav Bar tint issue in iOS 15.0 or later - is transparent w/o code below   if (@available(iOS 15, *)) {     UINavigationBarAppearance *navBarAppearance = [[UINavigationBarAppearance alloc] init];     [navBarAppearance configureWithDefaultBackground];     navBarAppearance.backgroundColor = [UIColor colorWithRed: 0.05 green: 0.09 blue: 0.20 alpha: 1.00];     [UINavigationBar appearance].standardAppearance = navBarAppearance;     [UINavigationBar appearance].compactAppearance = navBarAppearance;     [UINavigationBar appearance].scrollEdgeAppearance = navBarAppearance;   }
Sep ’22