Google Places iOS - App size is too large - ios

I want to integrate the google places autocomplete service, in an iOS app. The problem with Google Maps SDK for iOS is the size of library. After install Google Maps(include Places) the increased the size to 130MB (before only 25MB).
My question is: is there some way to reduce that size? if not, how is a better solution to looking for an address? (with autocomplete)
Regards

To check the file size of the app in Xcode 8 and up.
First go to
~/Library/Developer/CoreSimulator/Devices/
and delete complete folder and build the application. Now you only have two folders specifically related to your current app.
First folder is the one in which you should be interested.
[First folder]/data/Containers/Bundle/Application/[Application
ID]/[app Name]

I believe you are concerned with the application's size, not the project.
The 130MB is the size of your project, not your Product/App. You can check the size of the app in your iPhone settings or if you use simulator:
/Users/[username]/Library/Application Support/iPhone Simulator/[simulator version]/Applications/[appfolder]/[product name]
If you are concerned with the project's size you could use Swift solution instead of downloading the whole Google Places API:
https://github.com/watsonbox/ios_google_places_autocomplete

Related

FacebookSDK.a increasing installed app size dramatically on iOS with Unity

I have tried this with an empty project. Integrating the FacebookSDK.a lib which is linked by the official Unity Facebook plugin makes the size of the installed app (appname.app) jump from 8~9MB to 70MB.
Note that I am not talking about ipa size which stays normal, but really the installed app size.
I don't think this is normal and I am wondering if there is a way not to link the FacebookSDK.a and do it with the normal FBSDKCoreKit.framework instead ? or actually any other way that doesn't have such a huge impact on installed app size.

Trimming down skobbler map size & offering download alternatives

We're making offline road-trip planner.
We want to use skobbler maps but the main issue is that the framework is way too big.
Even with some trimming down options, it's still over 110Mb (only with skobbler framework).
Inside SKMaps.framework there is a document SKMaps with 95Mb is size.
No program can open this document (at least no program i have on my mac atm).
I was wondering what might be in this document and is it possible to 'open' it and remove unnecessary files from it.
I am asking this because when I launch my app with skobbler in it, there is a map of entire world available to explore.
I don't need that. I only need several states in the US and that's it. One state is roughly 30Mb in size, which is acceptable and download option for each state can be an asset, so a user downloads only what he needs.
IF there is no way of deleting entire world map from framework, what are my other options?
Can this file SKMaps, with 96Mb in size be downloaded after a user launches an app, so I don't have a huge app on the app store?
Can i write and launch my app without SKMaps in the app bundle from the start, and I make the user download it once he starts an app for the first time?
Edit the SkMaps.bundle and this will impact the .framework object.
Indeed, the unpacked size will be > 100 MB but when packing it (generating the .ipa file) it will only add ~20MB to the final app file (i.e. compiling the demo project without audio advices and only 1 style, targeting both armv7 and arm64 will generate a .ipa file of ~ 19.4)
By default the demo app does not "contain" any maps - it connects to the servers and downloads the map from there.
If you'd like to download "offline maps" - see the "Maps.json and downloads" example in the demo app.
If you're intent is to "prebundle" an offline map within your app see: http://sdkblog.skobbler.com/creating-an-app-with-a-pre-bundled-map/

How to reduce size of an iOS app built with kivy-ios?

We're building an iOS app using Kivy-iOS.
Our current app size is 397MB (as compared to 40MB for the same app deployed on Android using Buildozer).
We need to drastically reduce the size of this app but can't figure out how to do it.
Are there parts of the kivy-ios library that we could exclude to reduce the app size?
If so, how would we do it?
So far, we've gone one-by-one both within the tools folder of kivy-ios and within xCodes 'linked frameworks and libraries' but haven't been able to eliminate anything of substantial size while also successfully deploying the app.

size of iOS app in relation to project size

I'm making an iOS app on XCode and the project folder size was small, ~ 1MB. Then I needed a screen which showed some information and markers on a map, so I used Google Maps for iOS. This required me to add the Google maps framework into my project folder, so now the size is ~50MB. Will the size of the app be this huge? I have searched a LOT, and I can't find a way to check the size of my app without subscribing to the Apple Developer's Program (I am not ready to pay 99$ a year yet) and I do not have sudo privileges as well (I am trying out iOS app dev using a Mac in Cloud, it is not my own Mac).
I know it is a slightly stupid question, but I can't find solutions anywhere. If you feel compelled to downvote please at least leave a comment as to why you are doing so.
You can check the app size to following path:
/Users/saurav.nagpal(User)/Library/Application Support/iPhone Simulator/7.0/Applications/yourAppFolder/ProductName
It gives you exact size of your application.

IPA file size Flash Builder export

i'm going to build an IOS app for the IPad, and i made a quick test.api. My issue is that the size of the file is already 13 MB big. i added a video and a sound for testing (together like 9 MB) so i was wondering is there a minimum file size when making a ipa in Flash Builder?
Maybe around 4 MB?
13MB - 9MB = 4 MB?
and then 4MB is the standard ipa size.
Flex/AS3 mobile apps must include the SDK in the output in order to run. It is referred to as "Captive Runtime" and is an option on Android, but mandatory on iOS. Essentially, they are native apps that run as virtual machines that allow you to display your AS3/Flex apps on the device without a hint of Objective-C or Java. Those SDKs are far from small. If you look in %FlashBuilder Install Directory%/sdks/, you'll see that those SDKs can be close to 1GB in size. Obviously, that doesn't all get included, but from my experience, the smallest IPA I have ever created was around 8MB.
I don't have a solid answer for what the absolute minimum size of those SDKs are, and Google turned up nothing, but my guess would be somewhere between 4-8MB, depending on if you used Flex or not.

Resources