xcode解決xxx has conflicting provisioning settings.

xcode連真機測試報錯:

xxx has conflicting provisioning settings.xxx is automatically signed, but provisioning profile b9c32186-a5ad-43dd-a910-1c639b1ad5c3 has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor, or switch to manual signing in the project editor.
Code signing is required for product type 'Unit Test Bundle' in SDK 'iOS 11.2'

根據報錯信息在build setting中 查看sign配置,發現也是都配置好automatically了,但是還是報這個錯,雖然勾選了自動管理證書和描述文件,但實際上描述文件被指定爲b9c32186-a5ad-43dd-a910-1c639b1ad5c3,導致衝突。
Code signing is required for product type 'Unit Test Bundle' in SDK 'iOS 11.2'這個應該是因爲第一個錯誤產生的,可以不管,把第一個錯誤fix即可。
解決辦法:
打開項目的project.pbxproj文件,全局搜索b9c32186-a5ad-43dd-a910-1c639b1ad5c3,把指定行刪除然後保存即可。ps:project.pbxproj這個怎麼找呢?在finder中找到項目文件xx.xcodeproj,右擊顯示包內容,就找到project.pbxproj

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章