views:

123

answers:

1

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 resulting binary is about 750Kb in release mode and slightly over 1Mb in debug mode. So far, so good.

However, ObjcWraper.a and PureCppLib.a are over 6Mb each in either mode. So the first question is why it is so. But more importantly, how can I ensure that those static libs do not include parts or all of the source code?

Thanks in advance!

A: 

You probably want to build your static library without debug symbols. Find the "Generate Debug Symbols" build setting for the static library target in the Configuration you distribute, and make sure it is unchecked.

cdespinosa