Error building test bundle due to code sign

I code sign my mac app with "Mac Developer" and now I can not run my UT.

It fails on build with the message:

AAA.app: bundle format unrecognized, invalid, or unsuitable In subcomponent: AAATests.xctest


I make sure everything is codesign with the same certificate.

Any Idea?

BTW, this only happen in Xcode 7.3

In Xcode 7.2.1 all works perfectly.

Error building test bundle due to code sign
 
 
Q