打開之前的程序,如果沒有證書是這樣的: 運行報錯:Signing for "XXXXXX" requires a development team. Select a development team in the project editor. Code signing is required for product type 'Application' in SDK 'iOS 10.0'
我們先把上面的對勾去掉,然後將所有Project和Targets下的Build Settings 下的Signing 全部選擇 iOS Developer
最後將工程clean一下,關閉Xcode再重新打開,點擊自動管理證書的那個對勾,team選擇自己的Apple ID(不需要是開發者賬號) ,系統會主動給你生成證書的。如果不行請多試幾次,改一下bundle identifier什麼的。