iOS16 xcode14 更新问题

2022-10-20  本文已影响0人  HeavenWong
问题截图
#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

补充

Message from debugger: Xcode has killed the LLDB RPC server to allow the debugger to detach from your process.  You may need to manually terminate your process.
上一篇 下一篇

猜你喜欢

热点阅读