This answer already suggests:
Open workspace in Xcode Select Host app Target -> Edit Scheme -> Build
Enable test for all unit test suites showing in the list
Have a clean build and test