• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

392
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!

about 3 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".

about 3 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 Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error