title: OS X Framework Library not loaded: 'Image not found'
body: <p>I am trying to create a basic OS X Framework, right now I just have a test framework created: <code>TestMacFramework.framework</code> and I'm trying to import it into a brand new OS X Application project.</p>
  
  <p>I have built the .framework file and imported it into the new project, The framework appears to link okay, and I can reference the public header file I added to the framework build phases section.</p>
  
  <p>However, when I try to run the container Application I get the following Error:</p>
  
  <pre><code>dyld: Library not loaded: /Library/Frameworks/TestMacFramework.framework/Versions/A/TestMacFramework
    Referenced from: /Users/samharman/Library/Developer/Xcode/DerivedData/TestMacContainer-dzabuelobzfknafuhmgooqhqrgzl/Build/Products/Debug/TestMacContainer.app/Contents/MacOS/TestMacContainer
    Reason: image not found
  </code></pre>
  
  <p>After a bit of googling I realised I needed to add a <code>Copy Files</code> section to my container application build phases, so I have done this and set it up like so...</p>
  
  <p><img src="https://i.stack.imgur.com/CmGGY.png" alt="enter image description here"></p>
  
  <p>However, I am still getting the runtime error. I'm obviously doing something wrong here, but the Apple developer library resource for this references Xcode 2, so isn't very helpful!</p>
  
  <p>What have I missed?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>I can see in the build log that my <code>TestMacFramework.framework</code> is being copied into the .app contents/frameworks directory, but it isn't being installed to the Library/Frameworks directory on the HD</p>
  
  <p><img src="https://i.stack.imgur.com/KuVbd.png" alt="enter image description here"></p>
  
  <p><strong>UPDATE 2:</strong></p>
  
  <p>The build links correctly if I manually copy the <code>TestMacFramework.framework</code> into the <code>Library/Frameworks</code> directory</p>