简体   繁体   English

导入证书和配置文件时出现问题

[英]Problems importing certificates and provisioning profiles

So I started experimenting with iOS development on a borrowed Mac. 所以我开始在借来的Mac上试验iOS开发。 I kept all my certificates + provisioning files I created there. 我保留了我在那里创建的所有证书+配置文件。 I bought a Mac yesterday for development. 我昨天买了一台Mac进行开发。

I have imported my development + distribution certificated into keychain. 我已经将我的开发+发行版导入了钥匙串。 They are listed under "Keychain | login | Certificates" without errors. 它们在“Keychain | login | Certificates”下列出,没有错误。 (They are not listed in "Keychain | login | My Certificates). I have (它们没有列在“钥匙串|登录|我的证书”中。我有

  • Developer ID Certification Authority 开发者ID认证机构
  • IPhone Developer: My name (ID) iPhone开发者:我的名字(ID)
  • IPhone Distribution: My company (ID) iPhone发行:我的公司(ID)

So far so good, but XCode is somehow lost it seems. 到目前为止这么好,但XCode似乎在某种程度上失去了它。 I have the following: 我有以下内容:

Under "XCode : Teams" I have: My company: iOS Distribution My name: iOS Development In here I have following error at top: "Unable to code sign using identities in this eam: no valid certificated with private keys found) 在“XCode:团队”下我有:我的公司:iOS发布我的名字:iOS开发在这里我在顶部有以下错误:“无法使用此eam中的标识对代码进行编码:没有找到私钥的有效证书”

Under XCode : Provisioning Profiles I have: - DevelopmentMyCompanyApp - AppID - DistributionMyCompanyApp - AppOD - iOS Team Provisioing Profile All these have the "Status" : "Valid signing identify not found 在XCode:Provisioning Profiles下我有: - DevelopmentMyCompanyApp - AppID - DistributionMyCompanyApp - AppOD - iOS Team Provisioing Profile所有这些都有“Status”:“找不到有效的签名标识

Have I done something wrong? 我做错了什么吗? I kinda thought that if I kept certificates + provisioning files, I would be able to import it all? 我有点想,如果我保存证书+配置文件,我可以将其全部导入? (Maybe I made a small importing certificates after provisioning profiles, but a refresh does not solve it either) (也许我在配置配置文件后制作了一个小的导入证书,但刷新也没有解决它)

I also go with AmitApollo's answer, because that is some solutions. 我也接受AmitApollo的回答,因为这是一些解决方案。 But there is another solution with Xcode. 但Xcode还有另一种解决方案。 That is.. 那是..

You goto your Xcode's organizer and select team and export them with secure password. 您转到Xcode的组织者并选择团队并使用安全密码导出它们。 In the new Mac's Xcode you just import them then you will see it will get all the informations. 在新的Mac Xcode中你只需导入它们就可以看到它将获得所有信息。

You have to export your private key from your old Mac to your new one. 您必须将旧密钥从旧Mac导出到新Mac。 What you have to do if you can't get it is generate a new one. 如果你不能得到它你需要做的就是生成一个新的。 Go into your keychain and go to the Certificate Assistant and request from CA, and save it to disk. 进入您的钥匙串并转到证书助理并从CA请求,并将其保存到磁盘。 Upload it in Apple Developer, and generate your new certificate and install it. 在Apple Developer中上传,然后生成新证书并进行安装。

You can also create a new provisioning profile for Dev and Distro, and associate your newly generated cert with it. 您还可以为Dev和Distro创建新的配置文件,并将新生成的证书与其关联。 XCode should show everything green under organizer (i'm assuming now it shows all yellow). XCode应该在组织者下显示所有绿色(我现在假设它显示全部为黄色)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM