开发者

certificate for provisioning profile not added to keychain access

开发者 https://www.devze.com 2023-03-17 09:52 出处:网络
I got a new Macbook Pro and I made a provisioning profile for my new app, which I added to Organizer, and then downloa开发者_如何学编程ded the certificate.

I got a new Macbook Pro and I made a provisioning profile for my new app, which I added to Organizer, and then downloa开发者_如何学编程ded the certificate. However, the .cer file does not seem to get added to keychain access's login key, which results in not being able to choose the provisioning profile on xcode...

What could've gone wrong?


I assume that you created the certificate using your old Mac.

In that case, the private key is still stored on your old machine. It was automatically created when you created the CSR which was used to make your current certificate and never sent to Apple. The .cer you download only contains the public key.

You need both for signing purposes.

To solve this problem, either import your private key from your old mac or create a new developer certificate (follow the steps outlined in the provisioning portal of creating and submitting a csr). Be aware that the second option will invalidate your old certificate as only one certificate is allowed per developer.


I think the previous answer solve your problem, but now I face same problem and the solution was different.

So, I want to share it if some one else need to it.
I do these steps:
1. download provision profile.
2. open Xcode>preferences>accounts.
3. I didn't add an account! So, I add my account in Apple developer program.
4. click "view details".
5. double click on provisioning profile and it will appear under "Provisioning Profiles".

Now, you can build your App ..

0

精彩评论

暂无评论...
验证码 换一张
取 消