aldorain
aldorain

Reputation: 790

XCTestCase does not se project classes

Somehow my XCtestCase class does not have access to classes in my project. Is there -and if yes, where to check it- a way to check whether the test files are linked with the project ?

Upvotes: 2

Views: 115

Answers (2)

Midhun MP
Midhun MP

Reputation: 107141

Select the file you want to import or use in your Test Case. On the Identity Inspector, Check the Target Membership section. Check whether your Tests target is selected there, else select it.

Identity Inspector

Upvotes: 2

Rajesh
Rajesh

Reputation: 10434

Look at the project settings whether you have Tests target

enter image description here

Upvotes: 0

Related Questions