Short answer:
Open Settings (Cmd + ,) -> Accounts and add your developer profile to it (I mean your login and password)
Long answer
As soon as I ran into this problem. I decided this: after I installed Xcode on my new Mac, created a new developer certificate on developer.apple.com, created a development profile for my application, and this error appears. It turned out that I forgot to put the developer account on the Settings -> Accounts tab.
fnc12
source share