mapbox-maps-ios icon indicating copy to clipboard operation
mapbox-maps-ios copied to clipboard

Sdk size

Open JenishKananiLime opened this issue 3 years ago • 11 comments

Environment

  • Xcode version:
  • iOS version:
  • Devices affected:
  • Maps SDK Version:

Observed behavior and steps to reproduce

On mapbox documentation its says the sdk takes 3-4 mb of app size, but the sdk in total is 11 mb, including size of mapbox common frame work, is this a known bug?

Expected behavior

Notes / preliminary analysis

Additional links and references

JenishKananiLime avatar Jun 13 '22 16:06 JenishKananiLime

Hi there, can you please link the documentation where it mentions that the sdk takes 3-4 mb of app size?

ZiZasaurus avatar Jun 15 '22 21:06 ZiZasaurus

https://docs.mapbox.com/help/troubleshooting/ios-framework-size/

JenishKananiLime avatar Jun 15 '22 23:06 JenishKananiLime

@JenishKananiLime, our binary size baselines can be found here, where the MapboxMaps_iphoneos_arm64 is just a little over 2 mb.

ZiZasaurus avatar Jun 16 '22 14:06 ZiZasaurus

yes but is the overall sdk size bigger? then 2mb

JenishKananiLime avatar Jun 16 '22 17:06 JenishKananiLime

The numbers that are mentioned in the documentation you are referencing are based on app thinning. The value associated with MapboxMaps_iphoneos_arm64 is what actually would be on the real device inside your application.

ZiZasaurus avatar Jun 21 '22 17:06 ZiZasaurus

Yes but we did a app thining report and the mapbox common framework is a very big library. More then 5mb

JenishKananiLime avatar Jun 21 '22 18:06 JenishKananiLime

@JenishKananiLime Can you share the numbers you got in the app thinning report, please?

OdNairy avatar Jun 22 '22 07:06 OdNairy

@OdNairy will add next week

JenishKananiLime avatar Jun 24 '22 19:06 JenishKananiLime

App Thinning Size Report for All Variants of LimebikeRelease

Variant: Lime-E7091CB4-80A8-4676-BCA3-E2B24F360DC4.ipa Supported variant descriptors: [device: iPhone14,3, os-version: 15.0], [device: iPhone10,3, os-version: 15.0], [device: iPhone13,2, os-version: 15.0], [device: iPhone11,4, os-version: 15.0], [device: iPhone14,5, os-version: 15.0], [device: iPhone13,1, os-version: 15.0], [device: iPhone10,5, os-version: 15.0], [device: iPhone14,4, os-version: 15.0], [device: iPhone12,3, os-version: 15.0], [device: iPhone13,4, os-version: 15.0], [device: iPhone14,2, os-version: 15.0], [device: iPhone10,6, os-version: 15.0], [device: iPhone11,6, os-version: 15.0], [device: iPhone11,2, os-version: 15.0], [device: iPhone9,2, os-version: 15.0], [device: iPhone10,2, os-version: 15.0], [device: iPhone13,3, os-version: 15.0], [device: iPhone9,4, os-version: 15.0], and [device: iPhone12,5, os-version: 15.0] App + On Demand Resources size: 57.5 MB compressed, 128 MB uncompressed App size: 120.9 MB uncompressed On Demand Resources size: 7.2 MB uncompressed

JenishKananiLime avatar Jul 01 '22 22:07 JenishKananiLime

Screen Shot 2022-07-01 at 6 14 55 PM Screen Shot 2022-07-01 at 6 15 01 PM

total size of Mapbox is 11.8 mb

JenishKananiLime avatar Jul 01 '22 22:07 JenishKananiLime

@OdNairy

JenishKananiLime avatar Jul 01 '22 22:07 JenishKananiLime