Code Sign error: The identity 'iPhone Developer' doesn't mat

來源:互聯網
上載者:User

編譯別人的工程出現如下錯誤:Code Sign error: The identity 'iPhone Developer' doesn't match any valid, non-expired certificate/private key pair in the default keychain
1)看錯誤大概可以猜到:該工程原來在真機下編譯,需要認證認證,再看該工程的scheme,確實是iOS Device
2)  修改scheme為iPhone X.0 Simulator,如下操作
   


中的Destination只有一個iOS Device,根本沒有模擬器選項
3)有網友說在Project的Build Settings中設定don't code sign,如下

該工程預設設定就是don't code sign,所以也不起作用。
4)其實,最簡單的設定如下
首先,所示iOS DeploymentTarget選擇你的Simulator對應的版本。

這時候編輯Scheme就可以選中模擬器了,如下還不行的話,請繼續往下看
將中iphoneos刪除,scheme的目標會自動選中iPhone 5.0 Simulator,編譯成功後再把iphoneos加上即可。

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.