title: How to add dylibs inside framework and add it to Xamarin.mac project?
body: <p>I have couple of dylibs that are thirdparty as well as libraries that I created myself.
  I have a <code>A.bindings</code> project in Xamarin that adds these binaries - one dylib (lets call it <code>x.dylib</code>) added as native reference as it contains symbols that will be used in the <code>A.bindings</code> project and other dylib references that this <code>x.dylib</code> uses.
  Now adding this x.dylib as <code>NativeReference</code> and other dylibs under <code>BundleResource</code> works fine, but I am trying to add these into a framework with the following structure -</p>
  <pre><code>Contents\Frameworks\MyFrameWorks\Versions\A\Resources\x.dylib
  Contents\Frameworks\MyFrameWorks\Versions\A\Resources\lib\&lt;other dylibs&gt;
  </code></pre>
  <p>I added the <code>lib</code> folder with binaries in the <code>Copy Bundle Resources</code> and embedded the <code>x.dylib</code> and added <code>x.dylib</code> in the <code>Link Binary with Libraries</code>.
  I build the framework and I see the structure above in the framework. However, when I try to add this as a NativeReference to the <code>A.binding</code> Xamarin.mac project, I see error - <code>Undefined symbols</code>, the symbols are in <code>x.dylib</code>.</p>
  <p>I checked the <code>Run Search Path</code>, it has the <code>@executable\..\Frameworks</code> and <code>@loaderPath\Frameworks</code>, but I don't know if this matters because this fails at build step.</p>
  <p>My questions are -</p>
  <ol>
  <li>how do I encompass all these dylibs into frameworks?</li>
  <li>how do I use these dylibs from frameworks in the Xamarin.mac project?</li>
  <li>Ideally which is the best place to put these libraries in the framework?</li>
  </ol>