真機(jī)調(diào)試報(bào)The executable was signed with invalid entitlements.錯(cuò)誤

真機(jī)運(yùn)行時(shí),提示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.)錯(cuò)誤

解決方案:

1.在工程中添加文件new file,選擇plist文件,添加后名稱為Entitlements.plist。

2.點(diǎn)擊Entitlements.plist進(jìn)行編輯,刪除所有Root下的Key,然后添加一個(gè)Boolean類型,名稱為get-task-allow的Key,Value為YES。

3.在Targets中的Build Setting選項(xiàng)卡中的Code Signing Entitlements的值設(shè)為Entitlements.plist,重新Build即可解決。

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容