iDevGames Forums
questions on submitting an app - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: iPhone, iPad & iPod Game Development (/forum-11.html)
+--- Thread: questions on submitting an app (/thread-8985.html)



questions on submitting an app - Bommbomm - May 21, 2011 07:35 AM

Hi guys,

I'm ready to submit my first app but still have a few questions that i'm not too sure of and would like to get some advises from you.

1) should i remove all the comments from my code
2) should i remove all the NSLog from my code
3) do i need to run a released build and archive it

Thanks in advance.


RE: questions on submitting an app - kenan - May 21, 2011 09:02 AM

1) Why should you remove your comments? Comments are ignored by compiler and they does not increase size of your binary file.
2) It is a nice practice to use NSLog only in Debug mode. Define a global constant:
#define kDebugMode YES (or NO)

Then do something like this:

if(kDebugMode == YES) NSLog(@"What ever");

3) You need to make a copy of your "Relase" build and to call it "Distribution". You need also new provisioning certificates for this build. Go to Apple "iOS Provisioning Portal" and read the documentation about how to distribute an app on the App Store. https://developer.apple.com/ios/manage/overview/index.action

- Kenan


RE: questions on submitting an app - OneSadCookie - May 21, 2011 12:09 PM

That's not a good way to disable logging. That *does* decrease performance and increase code size. If you really want to disable all logging, put #define NSLog(...) /* nothing */ into your prefix header (after foundation include).


RE: questions on submitting an app - kenan - May 21, 2011 01:01 PM

I meant comments, not logging. He asked in question 1 should he delete his comments. And if someone talks about comments, I think, it is a kind of:

// Hi, I am a comment!

And such comments does NOT increase size of binary file.

Smile

But yes, you're right about question 2...
#define NSLog(...); /* nothing */
is definitely better way to remove NSLog-s.

- Kenan


RE: questions on submitting an app - OneSadCookie - May 21, 2011 07:09 PM

I wasn't talking about question one, and your define to remove NSLog is broken.