Error: Can't add App Target to Target to be Tested.

Oscar de la Hera Gomez
Three flowers that represent Swift, Swift Testing and XCode side by side. Beneath them sits the text "No Target to be Tested".

Make sure you select the "Multiplatform" tab when adding a UI Testing Bundle Target or Unit Testing Bundle Target that requires a testing Target.

A screenshot of the modal that appears when you attempt to add a UI Testing Bundle or a Unit Testing Bundle. Highlighted in red is how you cannot add a target to be tested.

To resolve a scenario similar to the one above, select the Multiplatform tab in the Target template modal.

A screenshot of XCode showing the modal that appears when you attempt to add a new target. Highlighted are how we have selected the "Multiplatform" tab, how we have searched for "tests", the UI Testing Bundle and the Unit Testing Bundle, as well as the next button on the bottom right.

Looking to learn more about SwiftUI, Swift, Swift Testing, Design and Technology?

Search our blog to learn more about Swift, SwiftUI, Swift Testing, design and technology.

Any Questions?

We are actively looking for feedback on how to improve this resource. Please send us a note to inquiries@delasign.com with any thoughts or feedback you may have.
delasign logo

Book a Free Consultation.

An icon of an email.

Click here to email us.

Fill in the details below to book a free consultation or to let us know about something else. Whatever it is, we are here to help.

How can we help you ?

Contact Details