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

相关推荐
LLLL961 个月前
docker pull 报错Get “https://registry-1.docker.io/v2/“: net/http: request canceled while waiting for c
docker·报错
handsomestWei1 个月前
k8s优雅操作pod容器组
运维·云原生·k8s·pod
于指尖飞舞2 个月前
在vue3中使用datav完整引入时卡在加载页面的解决方法
vue3·报错·datav
伊织code2 个月前
[报错] Dify - 踩坑笔记
flask·api·报错·踩坑·dify·poetry·opendal
dzj20212 个月前
Unity发布android Pico报错——CommandInvokationFailure: Gradle build failed踩坑记录
android·unity·gradle·报错·pico
浮梦终焉2 个月前
_使用CLion的Vcpkg安装SDL2,添加至CMakelists时报错,编译报错
报错·c/c++·sdl2
猿与禅3 个月前
jdk17用jmap -hea打印JVM堆信息报错Cannot connect to core dump or remote debug server
jvm·报错·jmap·堆信息
roshy3 个月前
POD 存储、PV、PVC
docker·k8s·pod
麻辣翅尖3 个月前
【解决】k8s使用flannel网络插件的问题整理
kubernetes·k8s·报错
Y编程小白3 个月前
SSM报错:表现层方法应该返回字符串,但是返回页面
java·ssm·报错