XCode真機測試發布時產生The executable was signed with invalid entitlements.解決辦法


提示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.)錯誤,沒有發布成功。在網上查詢資料后,按照其中一個方法成功解決了此問題,具體如下:

 

第一步:在工程中添加文件new file,選擇Resource 中的Property List,添加后名稱為Entitlements.plist。

 

第二步:點擊Entitlements.plist進行編輯,刪除所有Root下的Key,然后添加一個Boolean類型,名稱為get-task-allow的Key,狀態為YES

 

第三步:在Targets中的Info中的Build Settings選項卡中的Code Signing Entitlements的值設為Entitlements.plist,重新Build即可解決


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM