title: The bundle “MyProjectUITests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle
body: <p>I'm willing to add unit and UI tests to my app.</p>
  
  <p>I first configured unit tests with success, I tried to do the same with UI tests. Here is my Podfile, after adding a new UI Testing Bundle target :</p>
  
  <pre><code>platform :ios, '8.0'
  use_frameworks!
  inhibit_all_warnings!
  
  def shared_pods
  pod 'Bolts'
  pod 'Branch'
  pod 'FBSDKCoreKit'
  pod 'FBSDKLoginKit'
  pod 'FBSDKShareKit'
  pod 'GoogleAnalytics'
  pod 'GooglePlaces'
  pod 'Parse'
  pod 'Toast-Swift'
  end
  
  target 'MyTarget' do
  shared_pods
  end
  
  target 'MyTargetUITests' do
  shared_pods
  end
  
  target 'MyTargetUnitTests' do
  shared_pods
  end
  </code></pre>
  
  <p>However, when I try to run the automatically created <code>MyProjectUITests</code> test case, which only contains the basic setup and without even a <code>@testable import MyProject</code>:</p>
  
  <pre><code>import XCTest
  
  class MyProjectUITests: XCTestCase {
  
      override func setUp() {
          continueAfterFailure = false
          XCUIApplication().launch()
      }
  }
  </code></pre>
  
  <p>I'm getting this error: </p>
  
  <blockquote>
    <p>Running tests...
    The bundle “MyProjectUITests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.</p>
    
    <p>(dlopen_preflight(/var/containers/Bundle/Application/5A1FE39F-E675-4A47-9BF4-FBCDB96F5821/MyProjectUITests-Runner.app/PlugIns/MyProjectUITests.xctest/MyProjectUITests): Library not loaded: @rpath/libswiftSwiftOnoneSupport.dylib</p>
    
    <p>Referenced from: /private/var/containers/Bundle/Application/5A1FE39F-E675-4A47-9BF4-FBCDB96F5821/MyProjectUITests-Runner.app/PlugIns/MyProjectUITests.xctest/Frameworks/Toast_Swift.framework/Toast_Swift</p>
    
    <p>Reason: image not found)</p>
  </blockquote>
  
  <p>What is wrong? Thanks for your help.</p>
  
  <p><strong>EDIT</strong> : for information, it works fine when I remove that <code>Toast_swift</code> pod from my UI test target and let it only in my app and unit test targets.</p>