The executable was signed with invalid entitlements. The entitlements specified in your application’s Code Signing Entitlements file are invalid, not permitted, or do not match those specified in your

在直接运行release时报错,


The executable was signed with invalid entitlements. 
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).

在网上找了很多都没解,后面发现,我的场景还有点特别根本不用处理好像。
如果我是不自动处理

The executable was signed with invalid entitlements. The entitlements specified in your application’s Code Signing Entitlements file are invalid, not permitted, or do not match those specified in your_第1张图片
image.png

直接 run release就会报错

但是要是打上钩再run release就不会报错,然后就成功运行起来。
所以手动导出release包时看了下正确的entitlements文件

The executable was signed with invalid entitlements. The entitlements specified in your application’s Code Signing Entitlements file are invalid, not permitted, or do not match those specified in your_第2张图片
image.png

然后照抄进项目的文件里去,结果还是报错,这貌似就无解了,下次如果要 run release的解决方案就是让系统自动管理签名,这个也不麻烦,或者探索下手动处理这些签名,具体要变更哪些位置

你可能感兴趣的:(The executable was signed with invalid entitlements. The entitlements specified in your application’s Code Signing Entitlements file are invalid, not permitted, or do not match those specified in your)