title: dylib : library not loaded : Reason : image not found in swift 5
body: <p>I want to use .dylib file into my project , .dylib file is created from go lang. same .dylib file in working fine in macOS command line project but giving error in macOS application project</p>
  
  <p>Steps followed for including file<br> 
  1)Created a macOS Application project<br> 
  2) Pasted .dylib file in project root directory<br>
  3) After pasting file inside root directory of project ,I have<br>
  added .dylib file to the project by using File >> Add file "project"<br> 
  4) changed library settings from  “Don’t Embed” to “Embed without signing” .<br></p>
  
  <p>Also tried to drag and drop .dylib file</p>
  
  <p>Error </p>
  
  <pre><code>dyld: Library not loaded:
  Reason: image not found
  </code></pre>
  
  <p>I was getting same error when I was trying to use same .dylib file with macOS command line application but after changing library setting from “Do not Embed to Embed without signing ”  error got resolved.</p>