Xcode : One test target for multiple app targets Xcode : One test target for multiple app targets xcode xcode

Xcode : One test target for multiple app targets


You need to:

  • Select the target you want to test
  • Go to Test navigation tab
  • Right-click on test target you want to enable
  • Click on Enable [name_of_your_target]

enter image description here


No, at this point you can't. It's like the extensions, you have to create a new one for each project's targets you have.

It's not pretty usefull but if the code differes from one to another target, the tests can fail because of missing code, not failing code.
It's why it's not allowed.

Sorry for the negative answer.