ios – Why is stripping symbols not the default? How to do it?

I am in the rabbit hole of finding out how to properly strip my application to make it smaller and more secure. Previously I read that BitCode can strip applications, but that is deprecated.

Now my questions are:

  1. Why does Apple not strip symbols by default?
  2. How to do it correctly? The internet is spread over with different answers. Some of these are:
"Deployment Postprocessing" = "Yes"
"Strip Linked Product" to "Yes"
"Additional Strip Flags" to -rSTx
All other stripping settings to their defaults

I don’t want to change settings which are not needed. Is there any general solution I can use without changing settings and possibly break my app in production?

Latest articles


Related articles

Leave a reply

Please enter your comment!
Please enter your name here