-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Stop deploying the static framework #12841
Comments
This document will need to be updated to be even less optimistic about the static framework. |
Not sure if it’s a problem, but mapbox-gl-native/platform/ios/scripts/package.sh Lines 105 to 109 in 06ff49d
|
As a newcomer frustrated with the size of the Mapbox iOS framework this is very confusing. The first comment states:
and the document linked above states
Yet this is the size of the latest release
and unzipped:
This will bloat the size of any repository it is added to, without an additional step to strip the 256M of dSYM debug symbol. Why are these distributed anyway? That's not exactly common practice… Also, there's significant additional bloat between v4.3.0 and 4.4.1 (90MB vs 338MB!):
|
@js You are indeed solely downloading/using the dynamic framework (and so this particular issue isn’t strictly relevant, as it’s about the static framework). The root cause of the extra size in all flavors of 4.4.x is #12672, which enabled the inclusion of extra debug symbols in Release builds — the static framework was significantly more affected by that change, but the dynamic framework also grew. For GitHub releases we upload a variety of zips, some of which include both static and dynamic frameworks; stopping deployment of the static framework to GitHub is the primary goal of this issue.
I do tend to agree that shipping a dSYM is something we should reconsider, but stopping doing so would not make the dynamic framework smaller — it would become larger still, as all of the debug symbols (necessary for crash symbolication, breakpoints, etc.) would remain in the main binary (instead of most of them being stripped out into the dSYM). Though inconvenient, there are ways to work around size limits in git(hub) repositories. In particular, removing bitcode can significantly reduce size (if that’s something you can live without). |
Working on addressing regular dynamic framework size issues in #12947. |
In light of:
... we should stop including the static framework in our release deployments. Interested developers will still be able to build it themselves.
/cc @mapbox/maps-ios
The text was updated successfully, but these errors were encountered: