title: Building a distributable static library that uses cocoapods
body: <p>I'm building a static library to be distributed to other iOS developers and having some trouble configuring the linker to allow the static library to be used in another app.  I have used <a href="http://longtrieuquang.wordpress.com/2013/04/29/how-to-build-custom-ios-framework-with-xcode/">this guide</a> to create a MyStaticLibrary.framework bundle containing the lib itself, and other assets such as images.  This builds successfully and uses cocoapods to source the required dependencies (AFNetworking, etc.).  So far, so good.</p>
  
  <p>But when I import MyStaticLibrary.framework into a new Xcode project to test build an app with the library, I get tons of linker errors (Undefined symbols for architecture i386, _OBJC_CLASS_$_CLASSNAME) indicating that I'm doing something very wrong here.</p>
  
  <p>So my question is, how can I build MyStaticLibrary.framework with the dependencies sourced from cocoapods, such that I can provide a 3rd party with just my framework file and allow them access to all functions specified in the public headers?</p>