XCode 5.0.2 will not sign my app
I'm building an app for Mac App Store submission. I have a valid Team selected in "General", and in Build Settings "Mac Developer" is selected for the code signing identity. Code Signing Provisioning Profile is set to "Mac Team Provisioning Profile: <the app id>".
When I build, there are no errors.
When I attempt to run the app from finder, in Console I get an "unsigned app" error.
The same thing happens when I use the choose the Distribution profile for the app.
I do have two signed, embedded Frameworks, but they are signed with a different signature.
Should I be signing everything with the same signiture? If so, is it possible to have XCode do this automatically?
Exactly what profiles/signatures/whosits/whatsits do I need to sign my app with?
All this stuff seems to change with every XCode/OS version change and is very confusing. I've been writing Mac applications since 1989, and iOS apps for 5 years, so I'm not a complete idiot. But I sure feel like one!
Can someone make sense of this?
OS X Mavericks (10.9), XCode 5.0.2