I\'m trying to build an extension project and Xcode keeps throwing the error in subject.
Try a Clean before the Build. This fixed the problem for me (Xcode 6b2).