This can happen sometimes if Team is unset for your "Test" build target. Click your project in the XCode navigator, select "XTest" (where X is your project name), and make sure Team is set.