I am developing an IOS application and i will submit it the next week the Apple store. but i am not very good in memory management.
I wo开发者_StackOverflowuld like to know what are the all tools that you use to remove all the memory erros ( leaks,...).
should i remove all the NSLogs before submit it to the store ?
- What are the other things to take care before submit it to the store ?
thanks for your answers
Before submitting to the app store..
Detect all leaks, you can use
a) Leaks (xcode->instruments->leaks).
b) Static analyzer tools, if you are using newer versions of xcode (Build-> build and analyze).
c) Above all , make a thorough check yourselves, that you arereleasing all memory that you are allocing/retaining..
What the need of NSLog in a distribution build. NSLog helps in debug..Remove them all..
Run your app in whatever iphone device you get..Never submit an iphone app to store without checking on device itself.
If your app crashed during review, then it is surely rejected. Resolve all bugs/crashes before submitting. A good QC on device is a must.
This checklist might be helpful..
The static analyzer and the instruments will help you detect the leaks. Find and resolve them. Have a look at Memory management it will help to resolve leaks.
In Xcode , Instruments
-> Leaks
, is used basically to find out memory leaks.
Hope this helps you.
精彩评论