Happened to me after upgrading to Testflight SDK2.
In Build Settings, I looked into "Library Search Paths" and there was still a reference to the SDK1.
I did it for each Target (main and test), and build for main target and ran tests, and the error disappeared.