It is always desirable to minimize the size of any binary distribution when developing an iOS application, due to App Store cellular download limits. The easiest way to inspect where your footprint is coming from is to inspect the package itself. Locate the built app, right-click on it, and choose “Show package contents”.
Look at the file sizes in the resulting directory, and particularly at the size of the compiled executable and your data files (models etc.)
Here is a checklist of things you should check when trying to reduce the size of the executable:
IOS_DEPLOYMENT_TARGET=4.3
in your application settings, and then set ARCHS=armv7
. This will eliminate the armv6 architecture from the file, potentially cutting its size roughly in half.ARCHS=armv6 only
. All iOS devices support the armv6 instruction set, and the performance loss may be very small.STRIP_INSTALLED_PRODUCT=YES
, STRIP_STYLE=all
). Also, make sure that any embedded debug symbols are removed from copied binaries (build setting COPY_PHASE_STRIP=YES
).DEAD_CODE_STRIPPING=YES
.If trying to reduce the size of data files included with your application, pay particular attention to model files and textures.