MLeaksFinder报错

1.报错:FBClassStrongLayout.mm 文件:layoutCachecurrentClass = ivars;

解决:替换为layoutCache(id)currentClass = ivars;

2.编译正常但运行时出现crash

c 复制代码
indirect_symbol_bindings[i] = cur->rebinding FBRetainCycleDetector iOS15 fishhook c

原来indirect_symbol_bindingsi=cur->rebindingsj.replacement;

替换为:

c 复制代码
if (i < (sizeof(indirect_symbol_bindings) / sizeof(indirect_symbol_bindings[0]))) {
             indirect_symbol_bindings[i]=cur->rebindings[j].replacement;
             }

UIAlertView已被弃用>改用UIAlertController

objectivec 复制代码
+ (void)alertWithTitle:(NSString *)title
               message:(NSString *)message
              delegate:(id<UIAlertViewDelegate>)delegate
 additionalButtonTitle:(NSString *)additionalButtonTitle {
    [alertView dismissWithClickedButtonIndex:0 animated:NO];
    UIAlertController *alertController = [UIAlertController alertControllerWithTitle:title message:message preferredStyle:UIAlertControllerStyleAlert];
    UIAlertAction *okAction = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {

    }];
    [alertController addAction:okAction];
    [[UIApplication sharedApplication]
         .keyWindow.rootViewController presentViewController:alertController animated:NO completion:nil];
    NSLog(@"%@: %@", title, message);
}

pod 'MLeaksFinder', '~> 1.0.0',:configurations => 'Debug','Release'

终端重新pod install

相关推荐
炸炸鱼.14 天前
Kubernetes Pod 深度理解:从入门到实战
云原生·容器·kubernetes·pod
SunkingYang15 天前
鼠标双击打开PPT里插入的附件文件时,报错:Office已阻止访问以下嵌入对象,以便保护你的安全
powerpoint·报错·附件·office·打开·已阻止访问·嵌入对象
岳来18 天前
k8s pod 重启策略RestartPolicy 学习
容器·kubernetes·pod·restartpolicy
xifangge20252 个月前
【2026终极解法】彻底解决“由于找不到 msvcp140.dll,无法继续执行代码”报错(附微软运行库一键修复包)
windows·mysql·microsoft·报错·开发环境
恋红尘2 个月前
K8S Pod 基础解析-分篇-叩丁狼
云原生·容器·kubernetes·pod
识途老码4 个月前
5.k8s的pod介绍
k8s·pod
学易4 个月前
第十五节.别人的工作流,如何使用和调试(上)?(2类必现报错/缺失节点/缺失模型/思路/实操/通用调试步骤)
人工智能·ai作画·stable diffusion·报错·comfyui·缺失节点
SunkingYang4 个月前
QT编译报错:提示Qt::SkipEmptyParts在Qt命名空间中找不到成员
qt·报错·命名空间·编译报错·skipemptyparts·no member named·in namespace qt
SunkingYang4 个月前
QT编译报错:使用Lambda表达式作为槽函数,报错‘xxx‘ in capture list does not name a variable
qt·list·报错·lambda表达式·槽函数·in capture list·does not name