The executable was signed with invalid entitlements.
The entitlements specified in your application’s Code Signing Entitlements file do not match those specif
I was having same issue on Xcode 7.3 with iPad Air 2 with iOS 9.3.4! Then I tried many options.
Finally I deleted profile from device, changed bundle identifier in project settings, and whola! It worked for me.
P.S. I was using free provision profile using free Apple ID.
This happened to me when I was trying to build an App-store ipa exported file on my device, I had to export ad-hoc instead.
Had this issue with a cordova / ionic3 app, was caused by forking a main app and not selected again the legacy system in project settings. I selected legacy and the entitlements bs went away.
Had the same problem, nothing was helping, but I looked in Info.plist
and found out that bundle ID was changed to other name (I don't know how it happened), so when I changed it to correct one everything was fine again.
for me, just press cmd+, then go to account ,chose your developer account refresh(XCODE6) OR download all (XCODE7) will fix.
I have also this problem when I do with XCode project what is exported from cordova framework. Resolution : You have to create Apple-ID and Provisioining-profile by yourself. Because Xcode seems to be unable to create it for you.