How to include SweetUserDefaults.swift in the target class for UI Test in Xcode?

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:

enter image description here

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

enter image description here

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

enter image description here

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

+4
source share
2 answers

, Swift "" → " ":

Target Membership

+1

JAL, , ( ), , : UI , . UI.

:

enter image description here

:

enter image description here

0

Source: https://habr.com/ru/post/1589241/


All Articles