I got this error with Xcode 5 when I try to run the app on my device.
The executable was signed with invalid entitlement
It work
The answers here seem a bit inadequate so I'm adding my two cents:
The real solution is that there is generally a mismatch between what is stored in your provisioning profile (check at developer.apple.com -> members -> certificates -> the cert you're using [be sure to check if dev/production) and what is enabled in your app (double click project name), under horizontal menu select'Capabilities' (next to 'General').
If you've recently changed one of these, be sure to refresh your certificates under XCode -> Preferences -> Accounts -> Details -> Refresh Icon and restart XCode.