错误:
真机测试过程中,更换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 这个关键字 我总共搜到了四个,将那四行删除,重新运行即可解决问题。