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).

在直接运行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).

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

image.png

直接run release就会报错

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

image.png

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容