前言
因為沒有加入iOS開發者計划,使用個人ID登錄Xcode進行真機調試。
某天突然提示Build Failed,仔細檢查報錯顯示Provisioning Profile Expires需要renew
解決
確保Mac已連接到網絡
打開Xcode 項目選擇左側頂端project在右邊找到TARGET里面的APP名稱
選擇Signing & Capabilities即可看到Team信息和Provisioning Profile過期時間
從申請日起有效期為6天,如離線使用記得定期聯網renew一下
通過修改Bundle Identifier也可以實現手動刷新Profile為6天后過期