MLeaksFinder报错

1.报错:FBClassStrongLayout.mm 文件:layoutCache[currentClass] = ivars;
解决:替换为layoutCache[(id)currentClass] = ivars;
在这里插入图片描述
2.编译正常但运行时出现crash

indirect_symbol_bindings[i] = cur->rebinding FBRetainCycleDetector iOS15 fishhook c

原来indirect_symbol_bindings[i]=cur->rebindings[j].replacement;
替换为:

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

在这里插入图片描述
UIAlertView已被弃用>改用UIAlertController

+ (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

相关推荐

  1. IDEA

    2024-04-14 12:14:02       62 阅读
  2. sqoop运行

    2024-04-14 12:14:02       61 阅读
  3. yarn install

    2024-04-14 12:14:02       54 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-04-14 12:14:02       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-04-14 12:14:02       106 阅读
  3. 在Django里面运行非项目文件

    2024-04-14 12:14:02       87 阅读
  4. Python语言-面向对象

    2024-04-14 12:14:02       96 阅读

热门阅读

  1. Linux命令学习—linux 下的用户和组的管理(下)

    2024-04-14 12:14:02       42 阅读
  2. Python 字典组成的数组怎么进行去重?

    2024-04-14 12:14:02       47 阅读
  3. NLM、LLM、MLLM概述

    2024-04-14 12:14:02       116 阅读
  4. kafka_2.11-2.4.1单机安装

    2024-04-14 12:14:02       42 阅读
  5. Spark Kubernetes 的源码分析系列 - submit

    2024-04-14 12:14:02       28 阅读
  6. Python将传感器采集的数据写入Mysql

    2024-04-14 12:14:02       35 阅读
  7. 创建线程的方式

    2024-04-14 12:14:02       38 阅读
  8. gitee详细介绍

    2024-04-14 12:14:02       32 阅读
  9. opencv对图片更换背景图(底色)

    2024-04-14 12:14:02       38 阅读
  10. python私有函数和__XX__魔术方法

    2024-04-14 12:14:02       35 阅读
  11. 第六周学习笔记DAY.2

    2024-04-14 12:14:02       39 阅读
  12. photoshop2022增效工具ICOFormat.8bi(PS ico插件)

    2024-04-14 12:14:02       29 阅读