Struggling to add a test target to an existing project in Xcode

Sorry if this question is too vague, however I've tried this multiple times and see the same result. I'm pretty sure I'm doing something wrong, but don't know what.

  1. I have a Multiplatform (iOS and macOS) project that builds, and runs
  2. I add a new target of type Unit Test Bundle
  3. I click the diamond in the margin beside the XCTestCase declaration at the top of the new Test file
  4. The target project builds, then Xcode says 'Testing...' and it stays like this forever.

I've also tried creating a new scheme that targets the target created in the above steps. attempting to run my tests behaves the same. The top status bar will get stuck saying 'Testing...' and never get anywhere.

I'm pretty sure this is something basic. thanks, in advance for any guidance. Mike

Struggling to add a test target to an existing project in Xcode
 
 
Q