Had this warning when I forgot to enable code coverage:
Xcode 10+
Enable Code Coverage for Test scheme.
Cleaning my build folder eliminated the error for me. (Option-Shift-Command K.) I'm using Xcode Version 9.2 (9C40b). The error started when I added a set of images to my Assets.xcassets. After a full clean the error is gone.