MLeaksFinder报错

1.报错:FBClassStrongLayout.mm 文件:layoutCache[currentClass] = ivars;

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

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

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

原来indirect_symbol_bindings[i]=cur->rebindings[j].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

相关推荐
学易2 天前
第十五节.别人的工作流,如何使用和调试(上)?(2类必现报错/缺失节点/缺失模型/思路/实操/通用调试步骤)
人工智能·ai作画·stable diffusion·报错·comfyui·缺失节点
SunkingYang24 天前
QT编译报错:提示Qt::SkipEmptyParts在Qt命名空间中找不到成员
qt·报错·命名空间·编译报错·skipemptyparts·no member named·in namespace qt
SunkingYang24 天前
QT编译报错:使用Lambda表达式作为槽函数,报错‘xxx‘ in capture list does not name a variable
qt·list·报错·lambda表达式·槽函数·in capture list·does not name
深念Y1 个月前
夸克网盘 应用程序无法启动,因为应用程序的并行配置不正确。有关详细信息,请参阅应用程序事件日志,或使用命令行sxstrace.exe 工具。
windows·bug·报错·系统·更新·网盘·夸克
Zsr10231 个月前
K8s核心组件pod:进阶篇
云原生·容器·kubernetes·pod
小龙1 个月前
【Git 报错解决】 远程仓库 origin 已存在(`remote origin already exists`)
git·报错
小龙1 个月前
【Git 报错解决】本地无有效提交无法推送(`src refspec main does not match any`)
git·github·报错
he___H1 个月前
关于Amazon S3; Status Code: 403; Error Code: 403 Forbidden问题
java·报错·minio
我重来不说话2 个月前
ai模型输入<think>xx返回错误
ai·报错·ai截断
洒家肉山大魔王2 个月前
Kubernetes中Pod 处于 CrashLoopBackOff 状态(生产环境)
linux·容器·kubernetes·pod·pod循环重启