Sadly, setting DEAD_CODE_STRIPPING to NO does not resolve the issue for me. I'm having the issue with a dynamic library, so perhaps that setting doesn't help in that situation.
I also tried setting PRESERVE_DEAD_CODE_INITS_AND_TERMS to YES. This didn't help either.
UPDATE:
It looks like linking against a dynamic lib from a swift package, the -dead_strip flag is added no matter what.
Topic:
App & System Services
SubTopic:
Core OS
Tags: