当前位置: 首页 > news >正文

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 *)titlemessage:(NSString *)messagedelegate:(id<UIAlertViewDelegate>)delegateadditionalButtonTitle:(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

http://www.lryc.cn/news/337897.html

相关文章:

  • 【心路历程】初次参加蓝桥杯实况
  • 微信小程序全屏开屏广告
  • 记录day1
  • stm32GPio的开发基础
  • DataSource
  • Linux防止暴力破解密码脚本
  • Unity 遮罩
  • jmeter实验 模拟:从CSV数据到加密请求到解密返回数据再到跨越线程组访问解密后的数据
  • 设计模式——外观(门面)模式10
  • 第七周周一人工智能导论预告
  • npm install 的不同选项:--save、--save-dev、-S、-D 的区别
  • 设计模式详解(十四)——策略模式
  • 【牛客SQL快速入门】SQL基础(二)
  • 利用Java代码调用Lua脚本改造分布式锁
  • 7/8电源连接器航空插头端子
  • 华为OD-C卷-游戏分组[100分]
  • 【c++】优先级队列|反向迭代器(vector|list)
  • gocron定时任务管理
  • JCYZ H3CNE-RS+
  • 太阳光光照试验耐久性老化试验使用太阳光模拟器系统
  • Centos 7.9.2009 下 Gitlab 完全卸载
  • Navicat Premium 16 for Mac/Win:数据库管理的全能之选
  • 使用腾讯云服务器如何搭建网站?新手建站教程
  • 抖音快手直播整蛊软件插件工具合集(多啦咪/梦歌)
  • 探究C++20协程(2)——取值、传值、销毁与序列生成器实现
  • 【前端面试3+1】12 toktn验证过程、面向对象特性、webpack和vite的区别、【字符串中的第一个唯一字符】
  • 机器人瓶胚检测工作站(H3U脉冲轴控制)
  • 数字货币:未来金融的崭新篇章
  • USACO18DEC部分题 补题报告
  • 聊一聊一些关于npm、pnpm、yarn的事