真机调试报The executable was signed w

2020-01-21  本文已影响0人  i个O人S发

真机运行时,提示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.在工程中添加文件new file,选择plist文件,添加后名称为Entitlements.plist。

2.点击Entitlements.plist进行编辑,删除所有Root下的Key,然后添加一个Boolean类型,名称为get-task-allow的Key,Value为YES。

3.在Targets中的Build Setting选项卡中的Code Signing Entitlements的值设为Entitlements.plist,重新Build即可解决。

上一篇 下一篇

猜你喜欢

热点阅读