MLeaksFinder
MLeaksFinder copied to clipboard
Find memory leaks in your iOS app at develop time.
发现 UISheetPresentationController 用手指拖动不完全退出页面,会触发dismissViewControllerAnimated方法,但页面其实没有销毁,这个方法被hook时就报memory leak
在用Swift实现的UIViewController子类里,使用**ivar_getTypeEncoding**无法获取属性类型,返回是空字串"", 某些情况还会返回NULL导致crash, 看来在swift下要另外寻找方案了
Cannot initialize a parameter of type 'id _Nonnull' with an rvalue of type 'Class'
想咨询一下为啥MLeaksFinder突然间要下架停运了?可以说明一下原因吗?
1. __strong id strongSelf = weakSelf;的意义是什么? 2. __strong id strongSelf = weakSelf;和__strong typeof(weakSelf) self = weakSelf;还不太一样,后者在GCD之后对weakSelf解除强引用,前者在GCD之前就不对weakSelf进行强引用了。
Whenever an alert comes up showing a memory leak in a view or viewController. post clicking on retain cycle button, it always shows the error of failing to find retain...
看commit以及podspec里面都是写了已经去掉了FBRetainCycleDetector库,为什么我新装MLeaksFinder的时候还是会安装依赖一样安装FBRetainCycleDetector。 是提到线上库的podspec和github里的podspec不一致么?如果不是的话我应该怎么操作才能避免?