Size of static libraries created by Xcode

I have a project tree in Xcode that looks like this: AppProject depends on ObjcWrapper, which in turn depends on PureCppLib. ObjcWrapper and PureCppLib are static library projects. Combined, all sources barely reach 15k lines of code, and, as expected, the size of the resulting binary file is about 750Kb in release mode and a little over 1Mb in debug mode. So far so good.

However, ObjcWraper.a and PureCppLib.a have more than 6 MB each in any mode. Therefore, the first question is why this is so. But more importantly, how can I guarantee that these static libraries do not include parts or all of the source code?

Thanks in advance!

+5
source share
1 answer

You probably want to create your own static library without debugging symbols. Locate the “Create debugging options” assembly setting for the target of the static library in the distributed configuration and make sure that it is not checked.

+10
source

All Articles