1
我想追踪NSString获取释放的位置。我为我的应用程序启用了GuardMalloc,NSZombie和Log Malloc Stack(如here所述)。当我在控制台中运行info malloc-history 0x29d39fe0
,我得到以下错误:XCode 4.2:追踪释放的NSString
warning: MallocStackLoggingNoCompact not set in target's environment so the malloc history will not be available.
这是导致我相信错误是我的图书馆项目之一。我怎样才能启用上述图书馆项目?
你可以运行在探查器中寻找僵尸(ctrl-I,然后选择僵尸)?可能比手工更简单。我假设结果是一样的。 – 2012-03-28 22:19:50
@AdamShiemke这很简单。 – 2012-03-29 16:13:06