Post

Replies

Boosts

Views

Activity

Reply to Xcode 14 Beta 5: [<_UINavigationBarContentViewLayout valueForUndefinedKey:]: this class is not key value coding-compliant for the key inlineTitleView.
#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...
Aug ’22