New Private Key and provisioning profile for an iphone app update - iphone

I use an external developer for a new version of my iphone app. Now, as the release is approaching, in order to create the final appstore build, he asked me for an updated provisioning profile. The existing I had, was expired so I created a new one from Provisioning Portal - Provisioning - Development (Tab) and send it to him.
Problem is that now he informed me that I had to send him a new .p12 file because the newly attached provisioning profile no longer matches the private key he had on file. I've read this tutorial and I have some questions.
From the Certificates- Distribution tab, I have a certificate ready for download, which must have been created same day with the new provisioning profile and it expires next year so I guess I don't have anything to do here.
So I want to ask how to create this private key file. I opened keychain access and I see that there is an iphone distribution keychain which is expiring in one year but it has a red color sentence saying "This certificate was signed by an unknown authority". If I export this and give it to the developer, is it ok ?
Thanks
Kostas

The p12 file is used to create the Certificate Signing Request, which is what you uploaded to the developer portal when you requested your distribution certificate. If you have not changed systems or deleted things it should be in your keychain.
Open Keychain Access, navigate to My Certificates, find your distribution certificate, expand the arrow to show the private key attached to it. Then right click on the private key and choose export, this is the file your developer needs.
Here is a screenshot showing what it should look like.

Related

Do I have to use a new certificate to update my app?

I'm going to update an iphone app but I cannot Testing it on the itunes portal.
I made the update in itunes portal, I build it, and When I want to validate it, it doesn't runing because of certificate so I'm asking if I don't have to make a new certificate?
When I use the certificate that I used for the first submission:
Application failed codesign verification. The signature was invalid, or ti was signed with an Apple submission certificate.
The status of the certificate on the Portal is Active.
I put All the line of "Code signing" to iPhone Distribution and edit scheme>Archive>Release :
printscreen.
I re-sign the app with the same certificate when I try to validate it on iTunes...
Thanks to help me
EDIT : I make that but I still have the same problem:
Download certificate
Import it and deletete old one
set the new certificate overall ^^
Get the error xD
Please help me I need to do that before monday
If your old certificate has expired you need to create a new one to be able to update your app.
Are you using the certificate on the computer that generated it in the first place? If not, your public key doesn't match and you'll have to request a new one even if the current one hasn't expired.
It looks as if your code signing build settings are automatically detecting which certificate/profile to use. The image is cut off so I can't see what certificate/profile combo is being used, but it sounds as if it is selecting your Ad-Hoc combo and not your App Store combo. Try changing the code signing build settings for the target(s) you are using to build for the App Store manually to your App Store profile. If this makes no difference, can you please show the rest of your code signing settings (not chopped off on the right)?
I followed indications to make Ad-Hoc on the official portal : http://developer.apple.com/ios/manage/distribution/index.action. It says that we have to make a new entry on entitlements (get-task-allow at true) and I didn't delete the row in the entitlements file!!
Now all sounds OK, sumbitted !

Can't get Xcode to see my distribution certification? Code sign error: The identify 'iPhone Distribution' doesn't match any identity in any profile?

I can't seem to get Xcode to see my distribution certification? Code sign error: The identify 'iPhone Distribution' doesn't match any identity in any profile?
So:
In IOS Provisioning Portal
have a distribution certificate that is NOT expired
have a Team Provisioning Profile (not really sure of how this is used)
Have downloaded the distribution cert and double clicked on it and imported it to keychain
Goto Xcode - created a distribution profile
Under Product / BuildSettings / Distribution line item => If I click on "iPhone Distribution" there is no matches that occur....
If I can see the distribution certificate in KeyLink shouldn't this be the trigger for Xcode to be able to see this?
Am I missing something / how could I fix so I can press ahead with uploading app...
thanks
I ran into this problem. I have created a list of step by step instructions on how to fix it. Hope it helps.
iPhone app signing: A valid signing identity matching this profile could not be found in your keychain
Just having the certificate on its own wont help. You need to check if you also have the private key associated with it.
Click on Keychain access on your Mac, and go to the Certificates part and check if your certificate comes with your private key. If it doesnt, then you might have to get your private key.
You can have a look at this tutorial:
http://seventhsoulmountain.blogspot.com/2013/09/ios-code-sign-in-complete-walkthrough.html

Cannot find Apple's step by step guide for setting up the provision profiles?

When I set up my provision profiles for my old computer Apple had a step by step guide on the provision portal. I do not see it there. There are how to's but not a step by step guide and nothing for setting up a distribution profile.
Does this document still exist? Are there any other step by step guides?
First question is do you have a distribution certificate installed on your machine? If the answer is YES move on to App ID section below
Distribution Certificate
If the answer to the above question is no, and you have no backup of your existing certificate, you will need to revoke the existing one in the iOS provisioning section at http://developer.apple.com and then click on "Request certificate"
Open keychain, request certificate from certificate authority, enter your name and email. Save it to disk.
Back to provisioning portal, click select file and choose the file you just saved. Give it a few seconds, refresh the screen and download the distribution certificate. Double click it to install it on Xcode.
At this point you should have a valid distribution certificate.
App ID
If you are creating an ad hoc distribution profile, you can create a wildcard app ID here. Enter any name you like and * for the build ID. This means you can use the same app ID for any adhocs build you create.
If it's for the app store, you need to name the bundle and this will need to match whatever you have setup on Xcode.
Distribution provisioning
Click provisioning then distribution, new profile. Choose if it is for App Store or Ad Hoc (see points above re: App ID), give the profile a name and in case of ad hoc ones, selected which devices you want to grant access to this distribution.
Once done, click submit, wait a few seconds and refresh the screen. Click download and double click to install the dist certificate on Xcode.
At this point you should have a valid distribution provisioning profila that matches your distribution certificate.
Go to Xcode, select your project, choose build settings and assign the distribution profile to your chosen configuration (usually release if for app store).
This was all off the top of my head so I may have missed a step or two, but hopefully you get the gist. If not feel free to ask any questions.
If I remember correctly, you go to where you would create a provisioning profile, and there is a "How to" tab.

certificate for provisioning profile not added to keychain access

I got a new Macbook Pro and I made a provisioning profile for my new app,
which I added to Organizer, and then downloaded 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 ..

Valid signing identity matching this profile could not found in key chain

I have downloaded a provisioning profile from my id, but when I drag into Xcode, and then in the provisioning profile section it says
a valid signing identity matching this profile could not found in key chain
I am trying to download the existing profile and drag into Xcode, but this gives me the problem that how could I deploy my application to the device?
Delete all your private and public keys. Create one new one by using the assistant to request a certificate...
Before you do anything else name the key by double clicking on it and typign a name that identifies it as the one key you will keep.
Delete all others.
See this question which you might have found with a quick search, from earlier today.
For the error:
Valid signing identity not found
see Apple's published steps to resolve this problem.
I had the same problem yesterday and solved it successfully. It took me almost a week to figure out the process.
I think your keychain does not possess a valid developer certificate or Apple WWDRCa certificate. To solve this download your developer certificate and drop it into your keychain. Then download the Apple WWDRCA certificate and again drop it into your keychain.
Remember that you must have your private key along with your developer certificate. By now, your keychain will have a matching profile. Now drop your provisioning profile in your Xcode and see. It should work.
I faced the same problem yesterday.For some reason i deleted my keys,because of that my provisioning profiles were with warning "valid signing identity not found".
As i worked on push notification previously i have saved "X.p12"file from private key .if u saved that then u have to double click on that and give that password that u given while saving it. that's it my provision profiles are valid now :).