代码标志错误,如何切换Xcode项目到另一台Mac? [英] Code Sign error, How to switch an Xcode Project over to another Mac?

查看:481
本文介绍了代码标志错误,如何切换Xcode项目到另一台Mac?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何使用Xcode和一切,但这是一个初学者的问题。我刚刚得到一个新的MacBook Pro,我专门为iPhone开发。我将我的主要应用程序项目从我的Mac Mini转移到我的MacBook Pro,以便我可以在两者上工作。到目前为止所有的工作进展顺利,但每当我插入我的实际iPhone测试,我收到一个错误与代码签名。我花了几个小时研究这个问题,甚至重新下载每个证书,我有和Provisioning Profile,但仍然没有。在组织者一切都是有效的。我已经确保一切是正确的KeyChain访问,并确保它在登录部分。我已经重新启动Xcode和我的MacBook Pro,但仍然没有。我甚至将我的整个开发人员配置文件的副本从我的Mac mini转移到我的MacBook Pro。现在出现错误



代码签名错误:未找到包含任何钥匙串签名证书的未过期配置配置文件



我该怎么办?

解决方案

(在旧的mac上)打开钥匙串访问,选择类别我的证书 ,找到一个说iPhone开发人员:您的名字,单击它旁边的三角形,它应该展开,以显示您的私钥。选择证书和私钥,右键单击(按住Control键并单击),选择导出2个项目(或文件 - >导出项目)。将它们保存在某个位置,将文件复制到新的mac,然后双击该文件以将其导入。





I know how to use Xcode and everything but this is a beginner question. I just got a new MacBook Pro and I specifically got it for iPhone development. I transferred my main app project from my Mac Mini to my MacBook Pro so that I could work on both. It has all worked out well so far, but whenever I plug in my actual iPhone to test on, I receive an error with Code Signing. I spent hours researching the issue and even re-downloaded every certificate I had and Provisioning Profile but still nothing. In the Organizer everything is valid. I have made sure everything was correct in the KeyChain Access and made sure it was in the login section. I have restarted Xcode and my MacBook Pro, but still nothing. I have even transferred a copy of my whole Developers Profile from my Mac mini to my MacBook Pro. Now I'm getting an error

Code Sign error: No unexpired provisioning profiles found that contain any of the keychain's signing certificates

What do I do? I've tried EVERYTHING.

解决方案

(on the old mac) open "Keychain Access", select the category "My certificates", find the one that says "iPhone Developer: Your Name", click the triangle next to it and it should expand to show you your private key. Select both the certificate and private key, right click (control-click), select "Export 2 items" (or File->Export Items). Save them somewhere, copy the file over to the new mac, and double-click on the file to import it.

这篇关于代码标志错误,如何切换Xcode项目到另一台Mac?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆