Question

I have encountered a problem where the size of iOS application file (IPA) is different between a file built using XCode-GUI archive action and the one created using a command-line build (xcodebuild command). The size matters because we're getting the following message from Apple:

The app binary listed below was 44.6 MB when you submitted it, but will be 51.2 MB once processed for the App Store. This exceeds the cellular network download size limit and would require your app to be downloaded over Wi-Fi

The IPA file built with Xcode is 7MB smaller than the one built with XCodeBuild command.

The command line I'm using: /usr/bin/xcodebuild -sdk iphoneos -configuration Release ARCHS=armv7 VALID_ARCHS=armv7

Was it helpful?

Solution

Problem solve by adding the following switches to the command line:

DEPLOYMENT_POSTPROCESSING=YES

STRIP_INSTALLED_PRODUCT=YES

SEPARATE_STRIP=YES

COPY_PHASE_STRIP=YES

I see those settings also in the XCode project file and in the GUI but - for some reason - running the 'Release' configuration do it without those settings.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top