That should work, but I think you would have to remeber to add swift files to the main app target and that empty host target to make code available to the tests. It might also be more complicated if you have other frameworks you need to link with. I’m not sure if it was possible to use a separate host app when Jon’s original article was written. My article is a logical extension/update to his.

Written by

Independent and freelance software developer for iPhone, iPad and Mac

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store