iOS 12.2 detected memory leaks by Instrument in Xcode 10

I make a new project by xcode 10,then I run a Instrument memory leak test for this in a iPhone 8 Plus(iOS 12.2) directly.About 1 minute later,the Instrument shows some memory leaks.But when I run the same project on a iPhone 4s(iOS 9.3.5),the memory was no leak at all.


I am confuse with that situation,I want to know how can I fix this problem??

Replies

I start profile mem leaks on some project using iPhone SE 12.3.1 , and there are tons of "mem leaks". But they are not mem leaks.

I do same on iPad Wi-Fi 5th 12.1.1, there are just few minor mem leaks.

I think we have an OS bug.

It looks like there are a few similar questions on this. I am seeing that the Leaks instrument is giving leaks as of iOS 12.2. Same code on 12.1.2 will give no leaks. Here is a link to the other discussion thread: https://forums.developer.apple.com/message/360147#360147