在多台计算机上进行iOS开发,在单个设备上测试,建议? [英] Developing for iOS on multiple computers, testing on a single device, advice?

查看:195
本文介绍了在多台计算机上进行iOS开发,在单个设备上测试,建议?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一些关于配置配置文件/证书等的建议...我使用iMac工作进行开发,我有时发现自己检查我的代码从git到我的MacBook Pro在家里,但我总是运行



显然,设备上的配置文件与从我的iMac发出的证书匹配,所以从我的笔记本电脑,我无法在设备上测试,因为配置概要文件与证书不匹配。因此我收到代码标志错误。



我该如何绕过这个?



解决方案

Apple提供了在多台机器上工作的简单解决方案。



您可以在以下评论,您可能需要: p>


打开Keychain Access,然后在我的桌面上找到[您的] iPhone开发人员证书,并将其导出。然后将其导入您的[第二个机器]。如果您在一台计算机上看到下拉菜单和相关的私钥,但没有看到其他计算机,则需要将其显式导出。


希望Topher的洞察力将帮助任何使用Xcode进行此操作的人。


I was looking for some advice on provisioning profiles / certificates etc... I use an iMac at work to develop on, and I also sometimes find myself checking out my code from git onto my MacBook Pro at home but I always run into issues when I want to test on my iPhone from another computer.

Obviously my provisioning profiles on the device match the certificate issued to my iMac from work, so from my laptop, I can't test on the device because the provisioning profile doesn't match a certificate. so I get a code sign error.

What can I do to bypass this ?

Thanks in advance.

解决方案

Apple provides an easy solution to working on multiple machines.

You can export your developer profile from your work iMac and move it onto your Macbook Pro.

  1. In Xcode 4, bring up the Organizer. Click on "Devices"/

  2. Now, click on "Developer Profiles" in the sidebar.

  3. Then, on the bottom of the screen you will see a button called "Export" and a button called "Import". On the computer with the original certificates click "export" and save the profile. You may be prompted to enter a password.

  4. On the second computer, use "import" to install the certificates.

You should be able to develop and test seamlessly between the two machines now.

Edit:

According to Topher Fangio in the comments below, you may need to:

open Keychain Access, then find [your] iPhone Developer Certificate on my desktop, and export it. Then import it on your [second machine]. If you see the dropdown and associated private key on one machine, but not the other, then you need to export it apparently.

Hopefully Topher's insight will help anyone who has trouble with using Xcode to do this.

这篇关于在多台计算机上进行iOS开发,在单个设备上测试,建议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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