Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Investigate dSYM size decrease between v3.3.6 and v3.4.0 #7029

Closed

Description

@1ec5

Building the iOS SDK with Xcode 8 would decrease the framework size significantly. Unfortunately, #6842 is keeping us on Xcode 7.3.

Since it’s only the dynamic framework that’s giving Xcode 7.3 users problems, I’m wondering whether we could ship an unstripped dynamic framework and add code in strip-frameworks.sh to strip that framework (in addition to stripping out irrelevant architecture slices as it does now). As it is, you can’t submit to the App Store without having strip-frameworks.sh in a Run Script build phase, so this should cover anyone who needs to use the dynamic framework in a simulator that comes with Xcode 7.3.

Putting on the 3.4.0 milestone for consideration for a beta.

/cc @boundsj

Activity

  1. added
    iOS
    on Nov 11, 2016
  2. added this to the ios-v3.4.0 milestone on Nov 11, 2016
  3. self-assigned this
    on Nov 17, 2016
  4. boundsj commented on Nov 17, 2016

    @boundsj
    Contributor

    Here are some notes I took while investigating this a bit more yesterday

    • The 3.3.x series branch, when built with Xcode 7.3.1 produces a 50 MB symbol stripped dynamic framework and a 190 MB dSYM
    • The 3.3.x series branch when built with Xcode 8.0 produces a 38 MB symbol stripped dynamic framework and a 190 MB dSYM
    • The latest 3.4.0 beta, built with Xcode 7.3.1 has a 49 MB symbol stripped dynamic framework and a 34.5 MB dSYM
    • The latest 3.4.0 beta, built with Xcode 8.0 has a 37.5 MB symbol stripped dynamic framework and a 36.7 MB dSYM

    I think we should use Xcode 8.0+ for future builds. Although we are left with the issue for Xcode 7.3.1 users.

    @1ec5 I’m wondering whether we could ship an unstripped dynamic framework and add code in strip-frameworks.sh to strip that framework

    I'm not sure if I understand how to pull this off. We currently ship an unstripped (i.e. does not have strip -Sx run on it) mapbox-ios-sdk-#.#.#-symbols-dynamic.zip output that works fine in an Xcode 7.3.1 swift environment. But it would fail if we suggested stripping it in a build phase, I think. But I'm sure I'm missing something.

    I'd also like to investigate the large decrease in dSYM size on the 3.4.0 branch. We've gone from ~100 MB to close to 200 MB (in more recent 3.3.x version built with Xcode 7.3.1) to ~37 MB in the 3.4.0 branch using Xcode 8.0

  5. removed their assignment
    on Nov 30, 2016
  6. self-assigned this
    on Jan 8, 2017
  7. 1ec5 commented on Jan 11, 2017

    @1ec5
    ContributorAuthor

    We shipped v3.3.7 built in Xcode 8; there’s no going back to Xcode 7.3. ⏩ It’s too late in the game to try shipping an unstripped dynamic framework. Do we need to investigate the dSYM size decrease as part of this task for the v3.4.0 release?

  8. boundsj commented on Jan 11, 2017

    @boundsj
    Contributor

    Do we need to investigate the dSYM size decrease as part of this task for the v3.4.0 release?

    At this point I'd say no (at least I would not want to block the release on this investigation). A size decrease is a good thing and we seem to be getting nicely symbolicated crash reports from the latest version.

  9. changed the title [-]Build iOS SDK with Xcode 8[/-] [+]Investigate dSYM size decrease between v3.3.6 and v3.4.0[/+] on Jan 11, 2017
  10. modified the milestones: , ios-v3.4.0 on Jan 11, 2017
  11. added
    performance
    and removed on Jan 11, 2017
  12. 1ec5 commented on Jan 11, 2017

    @1ec5
    ContributorAuthor

    OK, I pushed this investigation to v3.4.1.

  13. removed this from the ios-v3.4.1 milestone on Jan 24, 2017
  14. 1ec5 commented on Jan 24, 2017

    @1ec5
    ContributorAuthor

    Closing; we can reopen if we see any issues related to the size decrease.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buildiOSperformance

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions