Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

472
Views
Xcode Unable to add test target to existing swift project - Target to be tested is grayed out

I have an existing project that I am trying to add unit tests to. I'm on Xcode 10.1 and project is purely in Swift.

I start by clicking on "New Target..." In the first dialog I am able to choose the project but the dialog box for "Target to be tested" is grayed out.

I have tried to go ahead and add the test target without choosing and this results in my test bundle not being able to find my existing classes - "No such Module error"

Here is the dialog for adding the test bundle: Target to be tested grayed out

Not sure what I'm doing wrong to prevent the this selection

Thanks for any help!

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

In Xcode 10.2.1, with your project open, click on the diamond with a dash in it:

enter image description here

Then down at the bottom left of the project window click on the '+' and select "New Unit Test Target".

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!