- Set "Enable Zombie Objects" means NSZombieEnabled. which helps to find cause sometime.  To set the same go to  Menubar>Product>Scheme>Edit Scheme. This optionwill provide a warning in logs when you try to access an object that has been deallocated. That is the cause for crash.
 2.Find memory leaks in your app. Use Leak instrument for to find  memory leaks
                             2.Find memory leaks in your app. Use Leak instrument for to find  memory leaks  - Open the Leaks instrument Menubar>Xcode>Open Developer tool>Instrument
- Choose your app from the Choose Target pop-up menu
- Click the Record button.
- Exercise your app to execute code, and click the Stop button when leaks are displayed.
- Click any leaked object that is identified in the Detail pane.
- Within the Extended Detail pane, double-click an instruction from your code.
- Click the Xcode icon in the Detail pane to open that code in Xcode.
4.Another way is comment part by part code and check which part of code is causing it
 
 
0 comments:
Post a Comment