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

相关推荐
lzhlizihang5 天前
使用DolphinScheduler调度实现sqoop增量导入时遇到 Caused by:Class QueryResult not found 错误解决
hadoop·报错·sqoop·ds
lzhlizihang16 天前
使用sqoop将mysql数据导入到hive报错ClassNotFoundException、Zero date value prohibited等错误
hive·报错·sqoop
清园暖歌18 天前
Ubuntu 20.04 解决 nvidia-smi 出错问题
linux·运维·ubuntu·报错·nvidia-smi
故苏呦1 个月前
ConfigMap
容器·kubernetes·k8s·pod
henan程序媛1 个月前
Kubernetes存储Volume
云原生·容器·kubernetes·k8s·pod
zheshijiuyue1 个月前
Kuberneters Pod调度基础
linux·运维·kubernetes·pod
珍珠是蚌的眼泪1 个月前
Kubernetes
kubernetes·k8s·node·container·pod
henan程序媛1 个月前
Kubernetes配置管理
云原生·容器·kubernetes·configmap·secret·pod
ladymorgana1 个月前
【日常总结】阿里云:windows server 过一段时间登录不进去,或提示:出现身份验证错误。 无法连接到本地安全机构
windows·安全·报错·身份验证·无法登录·sercer
故苏呦1 个月前
Pod基础使用
k8s·pod