Clearly you either missed the rain dance or forgot to sacrifice a virgin.
Honestly, I have no idea why Code Signing is sofa king stupid. I can get it to work, but it always takes longer than it should, and never works the first time. It's gotten better, though, and it takes less futzing around to get a project's code signing working now, so I guess I can live with it, but I must say this Code Signing stuff is not up to Apple's typical standards...