Code Sign error, How to switch an Xcode Project over to another Mac?

China☆狼群 提交于 2019-11-30 19:34:28

问题


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.


回答1:


(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.



来源:https://stackoverflow.com/questions/10965554/code-sign-error-how-to-switch-an-xcode-project-over-to-another-mac

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!