Search code examples
iosapp-storeappstore-approval

Organization of iPhone app source code before submission to Apple


I am about to submit my iPhone app to the app store, and I am wondering: is there a standard for how I organize my source code (the directories, the naming of the directories, which file goes to which folder, etc.)? Actually, do I even submit the source code to Apple at all? Maybe I missed it, but I do not think source code was mentioned in the guideline.


Solution

    1. You do not submit your source code to Apple, only the binary application signed with your distribution certificate.
    2. Some static analysis of your binary is done when you submit it via the Application Loader app. In theory, undocumented API calls should be caught at this time. If nothing is caught, Apple will surely catch them and let you know.

    In general, undocumented API calls are prefixed with an underscore. Not all follow this convention, but you could search the source code for methods and functions that begin with _ or __. Google searching any questionable code symbols will likely yield at least some information about whether the method or function is supported and what it does. Good luck!