I made a UI testing class in an Xcode swift application for iPhone that acts on the screen and presses a few buttons. However, the assembly fails because some of the libraries (SwiftyUserDefaults.swift and SwiftyJSON.swift) are not included in the target class Test - I get an error message:

When I included the SwiftyJSON.swift class in the compilation resources for the test class as follows:

I get another error, which essentially means that I included the same file twice :

What should I do? How to include library in target class for user interface?
source
share