I did some investigation for this issue and found that there was an issue with a dependency I was using for mocking the unit tests called SwiftyMocky. So after updating it the tests started working fine.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: