on what factors does the size of IPA depends? - ios

I am working on an App, that includes iphone(4,5 potarit only) and Ipad(Landscape as well Potarit). App includes 120 MB of IMAGES and the folder size of my project is 123 MB.
But I made its ipa, that goes to 185 MB . I am worried about the size of the build. How it happened to become 185 MB.
On what factors it is depending upon?
How Can I reduce the size of my build?
Will there be any problem uploading this app to the app store?
There are total of 15*3=45 NIB files in my project.

part (3) - "Will there be any problem uploading this app to the app store?" :
The maximum size of .ipa in AppStore depends on your internet connection.
For app to be downloaded over 3G, the maximum size should be 100MB. Over Wi-fi connection or iTunes the maximum size is 2GB.
part (2)
To reduce the iPA size you can reduce the size of the images. Generally in an application you do not require high resolution images (not more than what the device supports).
If there are images you can make the application download from some external server, that would be better. That way you can download the images the first time app is launched and save in the sandbox of the app and they can be used later in the app by fetching from the sandbox. This can reduce your iPA size considerably.
part(1)
Generally the binary size is less than the actual folder size. I could not see from where your iPA size is increasing.

As far as I know
1 . ipa file size mostly depends on the Images size.
2 . So try to ask your designers to reduce the image for saving the memory or try to use the .jpg files for images except for splash screens,icons. No need to worry about the xib files .
3 . There is no need to worry about the size while releasing the app . Only issue is takes some time to download from the iTunes.

The size of application mostly not depend on the code but on the resources you have added into your application like images, video and sound files.
Most time number of images to support the different display need to add more images cause large size of IPA but for that I think the best way is use stretchable images that decrease IPA size around upto 40 to 60 percent and very neat and clean. do not include over side video and mp3 just compress them at optimum level so user experience will be great. Size could be around 40 mb is best for general ios application

Another approach is to download necessary assets during the first launch.
Pro: user will only get images that compatible with his device
Con: there must be a stable internet connection to download the images. Wi-Fi is preferred, because 3G is not always free of charge for user.

Related

How do I reduce the download size of my universal iOS app made in Unity to less than 100MB?

I've been making an iOS game (Head of State) since the beginning of the year. I launched it with ARMv64 architecture and the download size was just over 30MB. I want to publish an update with Universal architecture and some more content but now I'm struggling to get the download size under Apple's 100MB limit for downloading over cellular networks.
I know universal architecture will nearly double the size of the build, and adding more images also increased it. Before optimising the unity build size was 70MB and the Apple download size was 108MB. So, only 8MB to cut down I thought. But, after I tried reducing the file size by compressing textures and audio (following this guide for reducing file size), the unity size was down to 53MB, but the Apple download size was only down to 102MB...
I can't compress the audio or images more without it becoming very noticeable in game, and I don't understand how I can have cut the Unity build size by 17MB, but the Apple download size by only 6MB. I would love for someone to explain this to me and give me some tips for how to reduce the Apple download size that extra bit to get under 100MB.
Here are my Unity build settings
I'm using Unity 5.4.1f1 and Xcode 8.0
The default image compression for iOS looks bad but with a custom atlas packing policy you can override the compression quality and make it more bearable.
Have you checked from unity build log what'a taking most of the space?
Also, where are you checking the download size and have you tested that the build actually does not download over cellular? AFAIK the displayed size in app store is some uncompressed version and doesn't need to fit exactly 100MB
As I mention in the comments above, I ended up switching to .NET 2.0 subset from .NET 2.0 and this brought the package size down well under 100MB

What can be the maximum size of iOS app?

I have some 1.5 GBs of images and videos in my app bundle. Will apple allow such a huge size app?
Can we optimize the app to bring the size down?
Yes, Apple will allow apps of any size on the App Store. As a point of reference, the game Infinity Blade III is 1.92GB.
But keep in mind that apps (or their updates) over 100MB cannot be downloaded over cellular, so if it's possible to structure the app in such a way to accommodate that (i.e., download the videos and images separately etc), then that will definitely help.

reducing my ios application size

I am developing my first app (iOS universal app), I want to reduce my app's size because it contains many images (png files) and sounds(mp3 files).
So my problem is:
How can I reduce the size of my app (images and sounds)?
Thanks!
Images:
Only include the basics in your app bundle (i.e. app icons, launch image, and possibly images for the first page)
Use Parse (or any other similar service) to download any additional images after the app is downloaded.
This approach will significantly decrease the size of your app but also let you pull down additional image files as needed.
Sounds:
What is the type of sounds files you're using? .caf files are incredibly large. Using .aifc files are just as good quality (to my untrained ear at least) and takes up significantly less space
Depends, compress png images to jpeg usually reduce app size, there are also image optimizers that compress pngs. If your images are part of the UI, tile them or stretch them really helps you in reduce app size and also memory usage. The image asset function in Xcode 5 helps in you in create resizable images.
For sounds the concept are pretty close to images, use compressed file audio as eckyzero said.
If your sounds and images aren't part of the UI but resources, you can make the app download them from the internet at first launch.

iOS app with preloaded images

I'm creating an iOS app with some preloaded data which includes images, it will have between 150 and 200 images. This images are not downloaded from a server, since the app won't connect to the internet.
I'm wondering about if saving the images locally can cause any problem, what is the max size that I can use to store them? Can this affect the app's performance? Anything else that I should be aware of?
Thanks in advance!
Over the air cellular maximum download is now 100MB since the iOS 7 launch.
Your maximum app size is 2GB with a maximum binary size of 60MB. With 200 images I don't think you'll hit the 2GB mark, so long as you use the proper compression techniques.
The only thing that would affect your app's performance is the way the images are presented. If they're really large images, 10+ MB you'll most likely hit memory problems in older devices and if you go larger, memory problems in newer devices. There's plenty of techniques like tiling in a scroll view to get around these problems but it requires you splice up your images and create multiple resolution versions of the image.
If your app is greater than 50MB (at the time of writing) because of the images being included then users will need WiFi to install it.
Other than that, your performance concerns should be around how many of the images you will have loaded into memory at any one time and how you can reduce that number.

phonegap IOS application size

I created phonegap app for both android and IOS using eclips and xcode4.5
The size of Andorid app is 650KB
The size of IOS app is 9MB!!!
I created empty phonegap app (just did create on terminal) and got the same size
How can I reduce the IOS application size ?
Thanks!
The standard iOS App includes lots of Artwork, e.g. for the CDVCapture plugin.
If you don't use the Capture API (which is likely), you could save 2.3MB by deleting the Capture.bundle in the Resources folder and removing CDVCapture from the Plugins list in the Cordova.plist.
Of course much of the filesize is caused by the various splash screens, icons and maybe artwork you use yourself. There is a very good way to minimize the cost of these. Get ImageOptim and drop your Xcode project folder on it. This will reduce the filesize of your images dramatically (without losing quality). One last step: Xcode recompresses all of the artwork, so they have a bigger filesize again (stupid, right?). Go to the Build Settings tab and type PNG into the search field. Set Compress PNG files to NO.
further reading on imageoptim & Xcode
The whole process should reduce your App by at least 50%, please report back how much you could achieve, thanks.
That would be the retina splash screen images.
10MB is a normal app size, don't worry about it.

Resources