I have a large existing Xcode project and now I want to add the armadillo library to it .
http://arma.sourceforge.net/
I have downloaded it (with macports)
Try to add libz.lib to your build target:
Add libz to your Link Binary With Libraries Build Phase
Source: https://testflightapp.com/sdk/doc/1.1/