MLeaksFinder icon indicating copy to clipboard operation
MLeaksFinder copied to clipboard

Swift下ivar_getTypeEncoding无法获取类型

Open KTechRick opened this issue 2 years ago • 2 comments

在用Swift实现的UIViewController子类里,使用ivar_getTypeEncoding无法获取属性类型,返回是空字串"", 某些情况还会返回NULL导致crash, 看来在swift下要另外寻找方案了

KTechRick avatar Aug 10 '23 08:08 KTechRick

看起来是Xcode15才有这个问题,并且,可以确定 URL 类型的属性,会返回 NULL,其他属性返回空字符串。

dourgulf avatar Dec 06 '23 07:12 dourgulf