heremaps / here-ios-sdk-examples

Objective-C and Swift projects using the HERE SDK for iOS.
MIT License
60 stars 56 forks source link

Crazy archived .ipa file size #22

Closed hoangelec closed 3 years ago

hoangelec commented 7 years ago

Hello,

I'm having a problem with the .ipa file size. Previously I was using older version (v3.1, which I manually added to my project) and everything went fine, the archived .ipa file was around 60MB in size.

However just lately I've updated the framework to the latest version via Pod, and to my astonishment, the archived .ipa file went up to 280MB in size, which is absolutely not an reasonable number. I cannot submit my app in this condition.

Can anyone please check this? Or at least suggest a solution?

SirBif commented 7 years ago

Hi @AmbroseLi , do you know what happened here? I took a quick look, and the size of NMAKit went from 131 MB in version 3.3 to 549 MB in version 3.5. This would explain the increase in the ipa size

hoangelec commented 7 years ago

For those who's suffering the same issue, I managed to reduce the size by removing HEREMaps from my podfile, then I downloaded the framework from developer.here.com and add it to my project manually. The problem just magically went away

AmbroseLi commented 7 years ago

Hi @hoangelec , after you built your app, did you Export it to the target (e.g., Development, Enterprise, App Store, etc.)? The size of the app is bloated when built using the podspec but after the export, then it goes back to its smaller size.

hoangelec commented 7 years ago

Yes I did export it, it was the binary .ipa file for Appstore submission.

hoangelec commented 6 years ago

Any news yet?

AmbroseLi commented 6 years ago

Hi @hoangelec , sorry for the delay; we logged a ticket over here and it has been assigned to a developer to investigate.

AmbroseLi commented 6 years ago

We uploaded a number of combinations; manual embedding of NMAKit built with and without bitcode, NMAKit installed via CocoaPods (built with bitcode). Observed that the app (which uses map, guidance, ODML, traffic and routing services) download and install size on end user devices are the same in all cases. What steps are you using to get your numbers? We get the app store sizing info this way:

  1. Archive app in xcode
  2. Upload archive to app store
  3. Wait for App store to finish processing archive and view app details in iTunesConnect
  4. Click on "App Store File Sizes"
hoangelec commented 6 years ago

Sorry for the late response. I've checked and found that the size of my build after uploaded to Appstore is around 120MB, it's significantly smaller than 300MB of the original archived file by XCode.

lakersr8ers commented 4 years ago

Any updated recommendations here? The NMAKit.framework is 648MB from what i can tell (and this is the case even after stripping simulator architectures).