Use the -all\_load linker option to load all members of static
libraries. Or for a specific library, use -force\_load
path\_to\_archive.
\
In Xcode, you'll want to add these options under "Other Linker Flags"
for your executable (not your static library).
\
From
: http://gamedev.stackexchange.com/questions/37813/variables-in-static-library-are-never-initialized-why