您的位置:首页 > 其它

错误:The executable was signed with invalid entitlements

2016-11-25 02:12 393 查看

错误

release模式下真机调试报错, debug模式下正常. 报错如下:



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

原因

错误提示的entitlements中只包含了远程推送的development环境的设置. 所以与capability中的设置有关. 网络上查找解决方案, 尝试过删除Build Setting -> Signing -> Code Signing Entitlements 选项, 尝试过修改各种provisioning file和各种distribution环境下匹配的方法, 但无法得到解决. 最后在stackoverflow上找到了解决方案: The executable gets signed with invalid entitlements in Xcode

总结

1.provisioning file 不匹配 ,

(1) provisioning file 中的 device未包含当前设备

(2) provisioning file 与 capability中的功能不匹配

2.项目的project中或者target中的Code Signing中, 在当前模式下(debug/release)下的匹配错误

3.release模式下, 当前项目的app id中没有包含inter-app-audio功能, 通过苹果开发者官网将当前项目的app id的inter-app-audio功能开启, 更新provisioning file. capability中的inter-app-audio功能开启与否没关系. clean下工程, 然后就可以在release模式下真机运行了.



相关问题解决方案:

1.IOS错误之—-”A valid provisioning profile for this executable was not found“解决方案

2.The entitlements specified in your application’s Code Signing Entitlements file do not match those specified in your provisioning profile. (0xE8008016).
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐