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
I solve this by deleting all "PROVISIONING_PROFILE=..." and "PROVISIONING_PROFILE[sdk=iphoneos*]" = ... in project.pbxproj and restart Xcode and set provisioning profiles for the target again.
"PROVISIONING_PROFILE=..."
"PROVISIONING_PROFILE[sdk=iphoneos*]" = ...