The executable was signed with invalid entitlements - 0xe8008016
Solution 1
If you are using Xcode 10 you need to change the build system in Workspace Settings to "Legacy Build System"
- File >> Workspace Settings..
- Set build system to "Legacy Build System"
More information can be found here: https://github.com/apache/cordova-ios/issues/407
Solution 2
It happened to me , because I had uploaded Distribution Provisioning Profile in Signing debug , once I replaced with Development Provisioning Profile all worked well to me .
Related videos on Youtube

Reza Ey
Updated on June 04, 2022Comments
-
Reza Ey 7 months
I trying to run my app on a device with xcode, it's an ionic app, with xcode 9, I had no problem but since I have updated to xcode 10 I keep getting this error message every time:
The entitlements specified in your application’s Code Signing Entitlements file are invalid, not permitted, or do not match those specified in your provisioning profile.(0xE8008016).
I have tried everything I found online
1.adding capabilities,
2.changing build settings,
3.config.xml.
-
Reza Ey about 4 yearsThank you so much.
-
Cacoon almost 4 yearsI dont see a legacy biuild system option
-
moreirapontocom almost 4 yearsTime saver. Thank you.
-
Khurshid Ansari over 3 yearsUpdate cordova cli version to [email protected]
-
clevertension about 3 yearsyou are saving my lifetime