将 Xcode 项目移动到不同的计算机

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12608368/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 01:39:24  来源:igfitidea点击:

Moving Xcode Projects to different computer

iphonexcodeipad

提问by user717452

I got a new computer and downloaded Xcode and transferred all my old projects to it. What all do I need to do with keychain to submit apps from new computer, or do I just need to transfer the provisioning profiles from old computer as well?

我得到了一台新电脑并下载了 Xcode 并将我所有的旧项目转移到它。我需要用钥匙串做什么才能从新计算机提交应用程序,还是只需要从旧计算机传输配置文件?

回答by omz

You can export your profile from the "Devices" organizer. Click on your team name, then on export (at the bottom). You can then set a password that you'll need to import the profile on the new computer. It should contain all provisioning profiles, certificates and private keys that you need.

您可以从“设备”管理器中导出您的配置文件。单击您的团队名称,然后单击导出(底部)。然后,您可以设置在新计算机上导入配置文件所需的密码。它应该包含您需要的所有配置文件、证书和私钥。

Here's the relevant documentation page: Exporting Your Code Signing Assets to Your File System

这是相关的文档页面:将您的代码签名资产导出到您的文件系统

回答by Snips

Yep, it's quite straight-forward.

是的,这很直接。

You will indeed need to transfer your Developer Certificates over.

您确实需要转移您的开发人员证书。

To do this, use the Keychain Access tool, click on 'My Certificates', find your iPhone Developer certificate, select it, and then use 'Export Items...' in the file menu to export.

为此,请使用钥匙串访问工具,单击“我的证书”,找到您的 iPhone 开发人员证书,选择它,然后使用文件菜单中的“导出项目...”进行导出。

Then, transfer the exported certificates to your new machine. You can then just double-click on the files on the new machine to automagically add them to your local keychain.

然后,将导出的证书传输到您的新机器。然后您只需双击新机器上的文件即可自动将它们添加到您的本地钥匙串中。

You can also use Xcode Organiser (on your new machine) to sync your provisions with your iOS developer account.

您还可以使用 Xcode Organizer(在您的新机器上)将您的配置与您的 iOS 开发者帐户同步。

Xcode projects are themselves totally self-contained. So bundle (zip, or whatever) it up and transfer it over, and unzip.

Xcode 项目本身是完全独立的。所以捆绑(压缩,或其他)它并传输它,然后解压缩。

It should then all just work.

那么它应该一切正常。

It's a good idea to use GIT or Subversion to hold your Xcode projects if you're going to use multiple machines to develop the same project. I do this and it works very well.

如果您打算使用多台机器来开发同一个项目,最好使用 GIT 或 Subversion 来保存您的 Xcode 项目。我这样做并且效果很好。

Good luck!

祝你好运!