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

查看:20
本文介绍了代码签名错误,如何将 Xcode 项目切换到另一台 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天全站免登陆