title: Cocoapods dependency and "Library not loaded ... image not found"
body: <p>I am building a command line project, via XCode 7.2.1, that uses Cocoapods for its dependencies. The framework it depends on is generated in the 'DerivedData' folder and the main project builds, but when I come to run the application I get the error:</p>
  
  <pre><code>dyld: Library not loaded: @rpath/Alamofire.framework/Versions/A/Alamofire
    Referenced from: /Users/myuser/Library/Developer/Xcode/DerivedData/myproject-aidrwlylcmipvrckcfcztpjjkxab/Build/Products/Debug/myproject
    Reason: image not found
  </code></pre>
  
  <p>Files tree under versions/A of the framework:</p>
  
  <pre><code>_CodeSignature
     CodeDirectory
     CodeRequirements
     CodeResources
     CodeSignature
  Frameworks
  Headers
     Pods-avsubtitleswriter-umbrella.h
  Modules
     module.modulemap
  Pods_avsubtitleswriter
  Resources
     Info.plist
  </code></pre>
  
  <p>Have tried with Cocoapods 0.39.0 and 1.0.0beta, and in XCode I am using the .xcworkspace.</p>
  
  <p>Looking at Pods project, under products I see Alamofire.framework in red and Pods_myproject.framework in black, in case that indicates anything?</p>
  
  <p>Additionally, do we need to sign libraries we depend on?</p>