Error: Can't add App Target to 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.

Oscar de la Hera Gomez
Written by Oscar de la Hera Gomez
First published on 11/08/2024 at 15:55
Last Updated on 11/08/2024 at 16:01
<p>Three flowers that represent Swift, Swift Testing and XCode side by side. Beneath them sits the text "No Target to be Tested".</p>

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

SubscribeDownload Open Source SwiftUI project
<p>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.</p>

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

<p>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.</p>
How to setup Swift Testing in a Swift or SwiftUI project in Xcode

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.

Search our Blog

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.
SubscribeContact UsVisit our BlogView our ServicesView our Work

Partner with us

We would love to get to know you and see how we can help your organization with its goals and needs.
Let's Talk

Stay Informed

Get occasional updates about our company, research, and product launches.
Subscribe