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

相关推荐
autotian2 天前
2.8 群辉 黑群晖 意味断电 抱歉,您所指定的页面不存在。
报错·群辉·页面不存在
float_六七1 个月前
member access within null pointer of type ‘ListNode‘
c++·报错·空指针
南子大帅哥1 个月前
android studio导入外部项目
android·ide·android studio·报错
颜淡慕潇1 个月前
【K8S系列】Kubernetes pod节点Pending或CrashLoopBackOff 问题及解决方案详解【已解决】
网络·云原生·容器·kubernetes·pod
研究司马懿1 个月前
【云原生】Kubernetes部署Jenkins静动Slave
云原生·自动化·jenkins·cicd·pod·slave·动静slave
Leanfeng_K2 个月前
【报错】mac m1 gateway 报错
spring·macos·spring cloud·gateway·报错
lzhlizihang2 个月前
使用DolphinScheduler调度实现sqoop增量导入时遇到 Caused by:Class QueryResult not found 错误解决
hadoop·报错·sqoop·ds
lzhlizihang2 个月前
使用sqoop将mysql数据导入到hive报错ClassNotFoundException、Zero date value prohibited等错误
hive·报错·sqoop
清园暖歌2 个月前
Ubuntu 20.04 解决 nvidia-smi 出错问题
linux·运维·ubuntu·报错·nvidia-smi
故苏呦3 个月前
ConfigMap
容器·kubernetes·k8s·pod