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

相关推荐
无敌糖果18 天前
K8S的Pod之initC容器restartPolicy新特性
云原生·容器·kubernetes·pod·restartpolicy·容器重启
岚天start1 个月前
Kubernetes(k8s)中命令行查看Pod所属控制器之方法总结
kubernetes·k8s·pod·daemonset·deployment·statefulset
陈嘿萌2 个月前
probability tensor contains either `inf`, `nan` or element < 0
报错·模型下载·安装qwen大模型·校验错误
秋意零2 个月前
【排坑指南】MySQL初始化后,Nacos与微服务无法连接??
运维·数据库·mysql·微服务·nacos·报错
颜淡慕潇2 个月前
【K8S系列】Kubernetes 中 Pod(Java服务)启动缓慢的深度分析与解决方案
容器·kubernetes·pod
FelicityW4 个月前
报错:函数或变量 ‘calcmie‘ 无法识别。
matlab·报错
m0_564264184 个月前
springboot项目之websocket的坑:spring整合websocket后进行单元测试后报错的解决方案
java·经验分享·spring boot·websocket·spring·单元测试·报错
企鹅侠客4 个月前
简述删除一个Pod流程?
面试·kubernetes·pod·删除pod流程
企鹅侠客5 个月前
Prometheus operator怎么添加targets和告警规则
运维·云原生·kubernetes·prometheus·pod
云上艺旅5 个月前
K8S学习之基础六十二:helm部署memcached服务
学习·kubernetes·helm·memcached·pod