title: How to include SwiftyUserDefaults.swift in the target for UI Test class in Xcode?
body: <p>I have made a user interface testing class in Xcode swift application for iPhone, that acts on the screen and presses some buttons.
  However the build fails because some of the libraries (SwiftyUserDefaults.swift, and SwiftyJSON.swift) are not included in the target for Test class - I get the error:</p>
  
  <p><a href="https://i.stack.imgur.com/OGQtH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OGQtH.png" alt="enter image description here"></a></p>
  
  <p>When I included the class SwiftyJSON.swift in the compile resources for the test class like this:</p>
  
  <p><a href="https://i.stack.imgur.com/RBXh5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RBXh5.png" alt="enter image description here"></a> </p>
  
  <p>I get another error, that essentially means that I <a href="https://stackoverflow.com/questions/30377468/ambiguous-type-name-error">included the same file twice</a>:</p>
  
  <p><a href="https://i.stack.imgur.com/mK8xi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mK8xi.png" alt="enter image description here"></a></p>
  
  <p>What should I do? How to include the library in the target for UI Test class?</p>