iOS10出來以后,推送要求增加一個*.entitlements文件。但是archive的時候,總提示none of the valid provisioning profiles allowed the specified entitlements aps-enviroment。如圖:
bug.png
網(wǎng)上查詢很久也沒個徹底的解決方案,最后通過更改對應(yīng)的*.entitlements文件的類型來解決。如圖:
error.png
但是這種方案有很大的弊端,每次archive得把值改為production,開發(fā)又得改回development。如果你有更好的方法,還麻煩告知一下。