Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

549
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Asistente virtual