Xcode 14 Beta 5: [<_UINavigationBarContentViewLayout valueForUndefinedKey:]: this class is not key value coding-compliant for the key inlineTitleView.

Xcode 14 Beta 5 shows this exception:

[<_UINavigationBarContentViewLayout valueForUndefinedKey:]: this class is not key value coding-compliant for the key inlineTitleView.

I am getting this new exception in all my obj-c projects while using Xcode 14 Beta 5.

A few notes:

  • Exception appears on any simulator device (running iOS 16)
  • Exception appears right on the start inside int main(int argc, char * argv[])
  • No exception on real device running iOS 15
  • Exception can be ignored (no crash).

I wonder if anyone else encountered this.

same problem... my scene: Xcode13 build app running on iOS16 real advice.

same problem...

Same problem here. Make sure to report this issue to Apple so they can fix it.

#if DEBUG
@interface Xcode14Beta4Fixer : NSObject
@end

@implementation Xcode14Beta4Fixer

+ (void)load
{
    Class cls = NSClassFromString(@"_UINavigationBarContentViewLayout");
    SEL selector = @selector(valueForUndefinedKey:);
    Method impMethod = class_getInstanceMethod([self class], selector);

    if (impMethod) {
        class_addMethod(cls, selector, method_getImplementation(impMethod), method_getTypeEncoding(impMethod));
    }
}

- (id)valueForUndefinedKey:(NSString *)key
{
    return nil;
}

@end
#endif

Use for DEBUG only, until fixed by Apple. May cause unexpected problems...

Any solution for a SwiftUI app?

Ok, report the issue and disable Objective-C Breakpoints until fixed:

same problem

XCode 14 beta 6, ios 16 beta 7

Same problem, Xcode 14 RC. Now it's serious.

same problem ios 16 beta 7

Yes so I am also still getting this with Xcode 14 RC:

"[<_UINavigationBarContentViewLayout 0x104c0fcd0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key inlineTitleView."

coming from a UIWindow call to makeKeyAndVisible method. But only when I run the app from Xcode.

After the app has been installed on a device and ran separately from Xcode, there is no crash.

Is it safe to submit updates???? What are other people on this thread going to do?

They shipped Xcode 14 with this bug. I just reported it. Brrr... hitting exception breakpoints like crazy every time I set properties on UINavigationItem.

Still seeing in Xcode 14.0.1

Still seeing this on Xcode 14.1

Xcode 14 Beta 5: [&lt;_UINavigationBarContentViewLayout valueForUndefinedKey:]: this class is not key value coding-compliant for the key inlineTitleView.
 
 
Q