title: dyld: could not load inserted library
body: <p>When I try to run an UI and Unit tests, I get an exception:</p>
  
  <blockquote>
    <p>dyld: could not load inserted library
    '/private/var/containers/Bundle/Application//AutoTestingApp.app/Frameworks/IDEBundleInjection.framework/IDEBundleInjection'
    because no suitable image found.  Did find:</p>
    
    <p>dyld: Library not loaded: @rpath/XCTest.framework/XCTest</p>
  </blockquote>
  
  <p>App builds with success but fails when running a test.</p>
  
  <p>I already tried:</p>
  
  <ul>
  <li>reinstalling Xcode</li>
  <li>checking a provisioning profiles and a certificates</li>
  </ul>
  
  <p>What am I doing wrong?</p>