Maximum size for iOS app

I read the manual in apple dev, where there is a size limit on the application for iOS, but I do not understand this. It says the following:

IOS applications can be up to 2 GB in size, but the executable cannot exceed 60 MB.

Is the entire application an executable? I donโ€™t understand the difference between a 2 GB limit and a 60 MB limit.

+8
ios app-store filesize
source share
4 answers

The main part of the application is, without a doubt, an executable file. The executable file is usually not very large, because it is just compiled code that the machine runs. In small, trivial applications, this is usually only a few kilobytes (KB). In more complex applications, it can be up to several megabytes (MB). When compiling for multiple architectures, the size of your application will inevitably increase (see my question about the size of the application when compiling for 64-bit iOS devices ).

In general (not always) the main part of your application size consists of interface files, images, videos, sounds, resources, etc. In other words, no, the executable is not the whole application .

Open any application (in some kind of file viewing mode) and look at its contents, it has four folders:

  • Package - with executable file and resources
  • Document folder, which can also take up significant space
  • Cache and Temp Directories

Many games are very large, Infinity Blade, for example, is around 1.2 GB for bootstrapping. But the size of the Infinity Blade is due to the large number of images / graphics, and not the executable.

I think Apple is trying to prevent malware and iOS / device restrictions. Honestly, I think it would be very difficult to get an executable file above 60 MB. As I said, the bulk of the size of the application is made up of resources.

You can also turn to the iTunes Connect Guide here .


IOS 8 update

The application file structure and sandbox system has changed in iOS 8 (slightly). Therefore, some information about the structure of the application package (above) may be incorrect for iOS 8.0+. However, iOS will still calculate the size of each of these elements and consider them the size of your application.

For example, in iOS 8, your application documents may not be stored in your application package, but they still take into account the total storage space used by your application.

+12
source share

February 12, 2015

The application package size limit sent via iTunes Connect has increased from 2 GB to 4 GB, so you can add more media to your application and provide a more complete, rich user interface during installation. Keep in mind that this change does not affect the 100 Mb limit on cellular network delivery.

+1
source share

No, you can add data to the installation of the application. For example, an application can simply display material from a database, for example, reset Wikipedia. The space in which the application will run will be small, but you can reach the limit of 2 GB using a database.

0
source share

The size of your IPA file should not exceed more than 60 MB. If it exceeds 60 MB, you need special permission from Apple. Apple believes that the core logic of your code cannot exceed 60 MB, and resource packs can also be uploaded as needed if your application supports multiple languages.

On the air (via cellular rather than Wi-Fi), the network limit is 50 MB. If your application exceeds 50 MB, you will receive a warning about the need for a Wi-Fi connection to download the application.

The maximum IPA file size can be 2 GB, but Apple recommends keeping the file size no more than 50 MB due to OTA loading.

https://developer.apple.com/library/mac/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/18_BestPractices/BestPractices.html

-6
source share

All Articles