Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

483
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda