mapbox / mapbox-gl-native-ios

Interactive, thoroughly customizable maps for iOS powered by vector tiles and OpenGL
https://www.mapbox.com/mobile/
Other
210 stars 122 forks source link

Mapbox.framework too large for iOS 14 App Clips #380

Open jpeckner opened 4 years ago

jpeckner commented 4 years ago

I used Xcode's app size report feature to measure sizes on an iOS 14 app clip- first without Mapbox.framework embedded, and again with it embedded. The end result was that embedding Mapbox grows the uncompressed size of the thinned app clip grew by about 9mb. This essentially means that it's impossible to include Mapbox while also keeping the total size under Apple's uncompressed 10mb limit.

Are there any plans to release a slimmed-down version of Mapbox.framework, say in the realm of 3-4mb after thinning?

Configuration

Mapbox SDK versions: 6.0.0 iOS/macOS versions: iOS 14.0 beta Device/simulator models: all Xcode version: Xcode 12 beta 4

alextechtai commented 3 years ago

@jpeckner Have you been able to use MapKit instead for the App Clip purposes?

Shockah commented 3 years ago

Is this being looked into?

marchy commented 2 years ago

MapKit works without any framework embedding whatsover – leverages the underlying OS one. The entire spirit of App Clips / Instant Apps is to eliminate download size by stripping out everything – so solutions like Mapbox are going to need to significantly strip down their download size if they are to transition into the new app-store-less paradigm.

knov commented 2 years ago

Thanks for sharing your use case. Have you considered using the Mapbox Static Images API for these scenarios?