1. 程式人生 > >xcode在真機除錯的時候出現"The identity used to sign the executable is no longer valid"

xcode在真機除錯的時候出現"The identity used to sign the executable is no longer valid"

換了新mac,使用在同學那邊拿到證書和provisioning檔案,在真機除錯的時候出現瞭如標題一樣的錯誤。開始以為是因為證書和provisioning檔案都需要重新搞過,然後才發現是因為在xcode中的Build Settings中沒有設定好Provisioning Profile,如圖