iOS xxx has conflicting provisioning settings. xxx is automatically signed for development, but a...

xxx has conflicting  settings. xxx is automatically signed for development, but a conflicting code signing identity iPhone Distribution has been manually specified. Set the code signing identity value to "iPhone Developer" in the build settings editor, or switch to manual signing in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.2'

解决方案:

证书有问题!!!
打包需使用线上Distribution证书,调试使用Developer 证书,检查一下对应证书存在不。


屏幕快照 2017-03-16 19.11.16.png

还有可能是自动识别证书,Set the code signing identity value to "iPhone Developer" in the build settings editor, or switch to manual signing in the project editor.
build setting --> code signing -->iPhone Developer

success!

Your account already has a signing certificate for this machine but it is not present in your keychain. To create a new one, you must first revoke the existing certificate.

解决方案:

iOS xxx has conflicting provisioning settings. xxx is automatically signed for development, but a..._第1张图片
codeSignBug01.png
iOS xxx has conflicting provisioning settings. xxx is automatically signed for development, but a..._第2张图片
codeSignBug02.png
"xxx" has n distaibution certificates but their private key are not installed,

首先是清理一下缓存,彻底关闭xcode,退出模拟器,大部分的原因是缓存。如果还是不行的话, 那么就需要:重新创建一个证书,上传本机钥匙串访问的cer请求认证文件(证书助理生成)

Xcode清除缓存、清理多余证书 
1、删除Xcode中多余的证书provisioning profile 
手动删除: 
Xcode6 provisioning profile path: 
~/Library/MobileDevice/Provisioning Profiles

2、清理Xcode编译项目产生的缓存垃圾 
(Xcode永久了,会产生很多项目编译缓存,占用一大堆硬盘空间,此时需要对该目录进行清理) 
手动删除: 
Xcode编译项目缓存垃圾的目录: 
~/Library/Developer/Xcode/DerivedData

使用Xcode - Account - Distribution auto创建证书的时候,报错

you already have a current iOS distribution certificate or a pending certificate request.

可能是mac中有别人mac上创建的证书和描述文件,自己的mac不是申请 mobileprovision 的电脑,所以需要重新申请证书 - 描述文件

你可能感兴趣的:(iOS xxx has conflicting provisioning settings. xxx is automatically signed for development, but a...)