title: Error when running UI Test w external test bundle in XCode on Device
body: <p>my testkit consits of two .swift files, which are placed in two different modules.
  The one which is running the tests, imports the other .swift file as a cocoatouch framework and "@testable import". (thanks to <a href="https://stackoverflow.com/questions/38277720/how-to-expose-xctestcases-to-external-test-bundles">How to expose XCTestCases to external test bundles?</a>).</p>
  
  <p>When i'm running the tests in the XCode simulator, everything seems to work out fine.
  However, if i want to run it on the device, i get the following error:</p>
  
  <pre><code>2017-02-27 16:13:18.555859 XCTRunner[17456:2201607] Running tests...
  2017-02-27 16:13:18.595556 XCTRunner[17456:2201607] The bundle “EBoxUITest” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
  2017-02-27 16:13:18.595703 XCTRunner[17456:2201607] (dlopen_preflight(/var/containers/Bundle/Application/5F467D62-3711-46BF-9593-876C29A69B20/EBoxUITest-Runner.app/PlugIns/EBoxUITest.xctest/EBoxUITest): Library not loaded: @rpath/DCFrontendTests.framework/DCFrontendTests
    Referenced from: /var/containers/Bundle/Application/5F467D62-3711-46BF-9593-876C29A69B20/EBoxUITest-Runner.app/PlugIns/EBoxUITest.xctest/EBoxUITest
    Reason: image not found)
  </code></pre>
  
  <p>Thanks!</p>