I have two computers. Both macs. When I have my app successfully tested and working and running from one machine, and then I push the new code and work from another, and try running the app, i get an email saying
我有两台电脑。两个mac。当我的应用程序成功测试并在一台计算机上运行和运行,然后我推送新代码并从另一台工作,并尝试运行应用程序,我收到一封电子邮件说
You have revoked your certificate, so it is no longer valid.
Certificate: iOS Development
And i cannot run my code. It takes a while to get things up and running again. How can I seamlessly run and edit my xcode project without these annoying certificate errors, etc?
我无法运行我的代码。需要一段时间才能重新启动并运行。如何在没有这些烦人的证书错误等情况下无缝运行和编辑我的xcode项目?
3 个解决方案
#1
1
You need to add brand new Certificate or let Xcode to handle this work for you.
您需要添加全新的证书或让Xcode为您处理这项工作。
Revoked means, that you Provisioning Profiles are no longer valid a they have to be removed/updated with new certificate(s) to get the signing operations work.
撤销意味着您的配置文件不再有效,必须使用新证书删除/更新它们才能使签名操作正常工作。
Once you are OK with your new certificate(s) and profiles in one of your macs, use Export/Import action and transfer everything by few clicks from one mac to the second one.
在您的某个mac中使用新证书和配置文件后,使用导出/导入操作,只需点击几下鼠标即可将所有内容转移到第二个mac。
Xcode -> Preferences -> Accounts:
Xcode - >首选项 - >帐户:
Profiles can be sent by email, for instance.
例如,可以通过电子邮件发送配置文件。
#2
1
I have a similar set up and there's a few things that you have to keep in mind:
我有一个类似的设置,你必须记住一些事情:
- You should have the develop certificate (p12) installed in both Macs. You can look up for it on your keychain
- 您应该在两台Mac上都安装了开发证书(p12)。您可以在钥匙串上查找它
- Never uses the
Fix Issue
button, it usually automatic revogue the certificate causing the problem you described - 永远不要使用Fix Issue按钮,它通常会自动复制导致您描述的问题的证书
-
Make sure you have the latest Provisioning Profile for the App you're building, it might be a problem if you have different profiles that was generate using different certificates
确保您拥有正在构建的应用程序的最新Provisioning Profile,如果您使用不同的证书生成不同的配置文件,则可能会出现问题
I also keep both xCode logged in on the same account because it helps me to control the Provisioning Profiles and keep it up to date.
我还保持两个xCode都登录到同一个帐户,因为它可以帮助我控制配置文件并使其保持最新。
By selecting
Automatic
on your building settings Xcode will look for the Provisioning Profile that matchs your bundle indetinfier and tries to access your certificate, so make sure you did all the steps above and you shouldn't have a problem.通过在您的建筑设置上选择自动,Xcode将查找与您的捆绑包不相关的配置文件,并尝试访问您的证书,因此请确保您执行了上述所有步骤,并且您应该没有问题。
#3
0
Which xCode version are you using? In xcode 8 when you set it as automatic profile sometime it revokes, otherwise it doesn't revoke unless you tap on reset.
您使用的是哪个xCode版本?在xcode 8中,当您将其设置为自动配置文件时,它会撤消,否则除非您点击重置,否则它不会撤消。
#1
1
You need to add brand new Certificate or let Xcode to handle this work for you.
您需要添加全新的证书或让Xcode为您处理这项工作。
Revoked means, that you Provisioning Profiles are no longer valid a they have to be removed/updated with new certificate(s) to get the signing operations work.
撤销意味着您的配置文件不再有效,必须使用新证书删除/更新它们才能使签名操作正常工作。
Once you are OK with your new certificate(s) and profiles in one of your macs, use Export/Import action and transfer everything by few clicks from one mac to the second one.
在您的某个mac中使用新证书和配置文件后,使用导出/导入操作,只需点击几下鼠标即可将所有内容转移到第二个mac。
Xcode -> Preferences -> Accounts:
Xcode - >首选项 - >帐户:
Profiles can be sent by email, for instance.
例如,可以通过电子邮件发送配置文件。
#2
1
I have a similar set up and there's a few things that you have to keep in mind:
我有一个类似的设置,你必须记住一些事情:
- You should have the develop certificate (p12) installed in both Macs. You can look up for it on your keychain
- 您应该在两台Mac上都安装了开发证书(p12)。您可以在钥匙串上查找它
- Never uses the
Fix Issue
button, it usually automatic revogue the certificate causing the problem you described - 永远不要使用Fix Issue按钮,它通常会自动复制导致您描述的问题的证书
-
Make sure you have the latest Provisioning Profile for the App you're building, it might be a problem if you have different profiles that was generate using different certificates
确保您拥有正在构建的应用程序的最新Provisioning Profile,如果您使用不同的证书生成不同的配置文件,则可能会出现问题
I also keep both xCode logged in on the same account because it helps me to control the Provisioning Profiles and keep it up to date.
我还保持两个xCode都登录到同一个帐户,因为它可以帮助我控制配置文件并使其保持最新。
By selecting
Automatic
on your building settings Xcode will look for the Provisioning Profile that matchs your bundle indetinfier and tries to access your certificate, so make sure you did all the steps above and you shouldn't have a problem.通过在您的建筑设置上选择自动,Xcode将查找与您的捆绑包不相关的配置文件,并尝试访问您的证书,因此请确保您执行了上述所有步骤,并且您应该没有问题。
#3
0
Which xCode version are you using? In xcode 8 when you set it as automatic profile sometime it revokes, otherwise it doesn't revoke unless you tap on reset.
您使用的是哪个xCode版本?在xcode 8中,当您将其设置为自动配置文件时,它会撤消,否则除非您点击重置,否则它不会撤消。