Wednesday, May 11, 2016

No More Logs for Missing NSAutoreleasePool

Uli Kusterer:

So apparently Apple removed the “object autoreleased with no pool in place” error message.

Chris Nebel:

Not removed, but disabled by default. Set OBJC_DEBUG_MISSING_POOLS=YES to get it back. (Set OBJC_HELP=YES for more options.)

See also: What does “Autoreleased with no pool in place” mean?.

Update (2016-05-12): Greg Parker:

Note that the environment variable also changes behavior: it introduces leaks anywhere that the implicit pool would have worked.

Comments RSS · Twitter

Leave a Comment