简体   繁体   中英

Memory leak in iOS Simulator?

I'm sorry if this is a dumb question but it's possible to have a memory leak in the Simulator?

i was trying to figure why my app keeps crashing and the Instruments detected a memory leak will I was running my app. But now, I've started to record after open my app and I've a leak as well.

Here's the image: 在此处输入图片说明

Is that normal? And how do I fix it?

UPDATE: I've closed the Xcode, open it without open any project, open Instruments and Simulator, record it and I've a memory leak without even touch the simulator. How is that possible?!

It could be your case: https://stackoverflow.com/a/19490482/944027

But I don't think that profiling simulator is a good idea. The question about difference in profiling iPhone 4 and simulator: Profiling memory leaks with Instruments- huge difference between iPhone 4 and iOS 5 Simulator . The problem in different architecture.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM