错误:The executable was signed with invalid entitlements.

来源:互联网 发布:360网络修复工具 编辑:程序博客网 时间:2024/04/28 07:03

错误:

真机测试过程中,更换Provisioning Profile之后,出现错误:
The executable was signed with invalid entitlements.
The entitlements specified in your application’s Code Signing Entitlements file do not match those specified in your provisioning profile.

解决方法:

1.检查Build Setting->Product Bundle Identifiter 的BundleID是否正确。
这里写图片描述
2.若BundleID无误,再打开项目文件删除相关的PROVISIONING_PROFILE
打开方法:右击”XXX.xcodeproj“的文件,选择”显示包内容“,再打开的文件夹中打开”project.pbxproj“文件夹,搜PROVISIONING_PROFILE 这个关键字 我总共搜到了四个,将那四行删除,重新运行即可解决问题。

0 0