Many leaks showing in Instruments caused by Array

2019-09-05 15:28发布

问题:

I was testing my app using Instruments checking for any leaks and to my surprise it's showing many leaks caused mainly by:

_ContiguousArrayStorage<String>
_ContiguousArrayStorage<Int>
_ContiguousArrayStorage<NSLayoutConstraint>

_NativeDictionaryStorageOwner<Int, CGFloat>
_NativeDictionaryStorageOwner<String, AnyObject>

The tests are done on an iPhone 5s, iPhone 6s and iPad Pro. All of the devices are running iOS 10.


What can I do about these leaks?