iOS开发:真机调试提示XXX is automatically signed, but code signing identity Apple Development问题

最近从网上下载一个demo,然后想要运行真机,错误提示如下所示:

HiVideoPlayerDemo has conflicting provisioning settings.

HiVideoPlayerDemo is automatically signed, but code signing identity Apple Development: jiaang li (86PQ) 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.

iOS开发:真机调试提示XXX is automatically signed, but code signing identity Apple Development问题_第1张图片

以上错误提示意思是说,项目工程里面的签名是自动签名,但是code signing identity里面却是Apple Development。

简单来说,就是证书设置的一个冲突错误提示,需要手动去修改一下证书设置就可以了,进行证书设置有两种方式来设置,具体操作步骤如下所示。

方法一:在TARGETS下的build settings里面设置证书自动设置模式

1、打开项目工程,然后进入项目里面;

iOS开发:真机调试提示XXX is automatically signed, but code signing identity Apple Development问题_第2张图片

2、选择项目TARGETS下的工程,然后找到对应的Build Settings模块;

iOS开发:真机调试提示XXX is automatically signed, but code signing identity Apple Development问题_第3张图片

3、在build settings搜索框里面输入signing,然后打开Code Signing Identity模块下的设置;

iOS开发:真机调试提示XXX is automatically signed, but code signing identity Apple Development问题_第4张图片

4、选择手动配置证书的地方,全部修改为iOS Developer选项,包括下面的Code Signing Style 设置为Antomatic选项;

iOS开发:真机调试提示XXX is automatically signed, but code signing identity Apple Development问题_第5张图片

iOS开发:真机调试提示XXX is automatically signed, but code signing identity Apple Development问题_第6张图片

iOS开发:真机调试提示XXX is automatically signed, but code signing identity Apple Development问题_第7张图片

5、以上操作完成之后,返回到TARGETS下的Generals模块下,然后找到Singing目录,进行设置操作即可。

iOS开发:真机调试提示XXX is automatically signed, but code signing identity Apple Development问题_第8张图片

iOS开发:真机调试提示XXX is automatically signed, but code signing identity Apple Development问题_第9张图片

方法二:在PROJECT编辑器中切换手动设置证书模式

1、打开项目,选择PROJECT,找到PROJECT对应的Build Settings模块,在输入框里面输入code signing style;

iOS开发:真机调试提示XXX is automatically signed, but code signing identity Apple Development问题_第10张图片

iOS开发:真机调试提示XXX is automatically signed, but code signing identity Apple Development问题_第11张图片

2、打开Signing模块,对应的code signing style设置选项,把“Automatic”修改为“Manual”即可。

iOS开发:真机调试提示XXX is automatically signed, but code signing identity Apple Development问题_第12张图片

注意:但是进行手动证书设置的步骤有点繁琐,一般很少用,现在主流就是第一种方法,证书自动设置模式。

 

以上就是本章全部内容,欢迎关注三掌柜的微信公众号“iOS开发by三掌柜”,三掌柜的新浪微博“三掌柜666”,欢迎关注!

三掌柜的微信公众号:

iOS开发:真机调试提示XXX is automatically signed, but code signing identity Apple Development问题_第13张图片

三掌柜的新浪微博:

iOS开发:真机调试提示XXX is automatically signed, but code signing identity Apple Development问题_第14张图片

 

你可能感兴趣的:(iOS开发,iOS开发,真机调试报错)