Breakpoint pointing out “objc_autoreleaseNoPool”

前端 未结 3 494
温柔的废话
温柔的废话 2021-01-31 11:36

So I\'m debugging an app in preperation for its app so release, and I enabled a universal breakpoint for "All Exceptions". Since then, everytime I run the app, the co

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-31 11:45

    It means you need to create an autorelease pool on the thread it happens. Otherwise, your allocated objects will not be destroyed (as suggested by the message). So, break/pause at the symbol, then walk up the stack to your thread (or program) entry and add an autorelease pool. That's all.

提交回复
热议问题