I fixed the issue by deleting and re-adding the test scheme for one of my internal frameworks in the Schemes management screen. This resolved the problem with xcodebuild.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: