title: How to link CocoaImageHashing pod with Swift project (dyld: Library not loaded)
body: <p>I'm trying to use the CocoaImageHashing pod from a Swift project so that I can do some perceptual hashing for image duplicate detection.</p>
  
  <p>I setup the workspace following the CocoaPods instructions and attempted to run the default Hello World swift file. </p>
  
  <p><code>dyld: Library not loaded: @rpath/CocoaImageHashing.framework/Versions/A/CocoaImageHashing
    Referenced from: /Users/sarge/Library/Developer/Xcode/DerivedData/PHashTest-cdongczzcrynrfclysczwalanrlq/Build/Products/Debug/PHashTest
    Reason: image not found
  (lldb)</code></p>
  
  <p>My Podfile is:</p>
  
  <pre><code>platform :osx, '10.12'
  target 'PHashTest' do
      use_frameworks!
      pod 'CocoaImageHashing', :git =&gt; 'https://github.com/ameingast/cocoaimagehashing.git'```
  end
  </code></pre>
  
  <p>I tried commenting out the use_frameworks! line in case this was some kind of dynamic library problem. I then get a build error.</p>
  
  <pre><code>Framework not found CocoaImageHashing
  </code></pre>
  
  <p>My <strong>General > Linked Frameworks and Libraries</strong> does include the CocoaImageHashing framework. I see Xcode building files from it during a build.</p>
  
  <p>Is there something I have to do to get the CocoaImageHashing pod to build the dynamic library that Swift expects? Or do I need to not use Swift because CocoaImageHashing has to be included dynamically.</p>
  
  <p>(I'm very unfamiliar with Swift so I don't know what to look for)</p>