title: Call Function in Main Target From Test Target in Xcode(swift)
body: <p>I am writing UITest for my app. In some parts of the UITest, I should call functions from Main target. When I create an Object from the Class(that has the implementation of the function), I get the error "use of undeclared of type CLASSNAME". I added the Class to the Compile Source of the test target.Then I get the same error but this time for the super class.
  I added Classes to the compile source again and again, till I get this error  "use of undeclared of UITextField, UIColor."
  UITextField and UIColor are part of UIkit, then I import UIkit to my test Class , but did not work.
  Any idea how to solve it?
  In generell, How should we call functions in main target from test target?
  Thanks a lot.</p>