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

你可能感兴趣的:(xcode解决xxx has conflicting provisioning settings.)