planetary-social / planetary-ios

Social for humans, not algorithms.
https://planetary.social/
Mozilla Public License 2.0
197 stars 19 forks source link

Strip binary symbols to reduce app size #1030

Open mplorentz opened 1 year ago

mplorentz commented 1 year ago

We can likely get a significant reduction in app size by stripping binary symbols from our release builds. Inspiration: https://www.emergetools.com/blog/posts/how-xcode14-unintentionally-increases-app-size?utm_campaign=iOS%2BDev%2BWeekly&utm_medium=email&utm_source=iOS%2BDev%2BWeekly%2BIssue%2B585

rabble commented 1 year ago

Oh yeah, I added them so that we could see the full trace logs in bugsnag. We could setup debug symbols in testflight releases and only in pronduction if it's big. but this is a good idea for most users.

mplorentz commented 1 year ago

Ah ok. We should be able to fully symbolicate stack traces in Bugsnag without shipping the binary symbols I think. You just need to upload dSYM files to Bugsnag as part of the release process. We have or had a build script that would do this automatically on release builds in Xcode. We should check that it's still working when we do this ticket.