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

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 :).

Related

testing App on device "valid signing identity not found"

I´m currently developing an app for my university. And I´d like to test it on my device. The problem is, my provisioning profile can´t find a valid signing identity. And in TEAMS it says: "Unable to code sign using identities in this team: no valid certificates with private keys found".
I have tried various solutions that I found here, but they didn´t work for me.
My special problem is: I don´t get an Apple developer account, or access too the apple developer website. I got an Apple Certifcate and an Provisioning Profile in an e-mail. I added the Certificate to the keychain and the profile in Xcode. Is it even possible to test it without access to the developer account? And how?
I´d be really grateful for any solution!
You must have the private key that is generated when you create the development certificate. (This private key is called p12 certificate)
To test on your device you need a valid provisioning profile with the related certificate and the iPhone must be provisioned in that provisioning profile
Do you have a new mac? in that case you have to copy the certificate reference from your old mac. I had this problem and it was work with the certificate, check them out in keys
The short answer is add private key(p12 certificate) to your keychanin. I think this link will solve your problem.As the author described it very nicely..
https://stackoverflow.com/a/8509545/1865424
still have issue.please let me know..
Enjoy..

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

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 ..

ios Provisioning for Development - Invalid Private-Key/ Certificate Pair

See update below.
This is driving me mad. I have followed all the instructions and also deleted everything and restarted multiple times but I still keep getting the message above.
I am wondering whether part of the problem is that I have switched from my previous Individual Developer Programme to my new Company One. I have read that I should use the Company Name in the Common Name field but that has not helped. It still creates a certificate with my name, not the Company Name.
I can see that I have a private key against my certificate.
I have tried with the provisioning assistant and manually, but to no avail.
Any ideas warmly welcomed.
Chris.
Update:
#Bastian - thanks - this is just for Development on my new Company Developer Programme. Once this is working, I'll then need to do similar for Ad hoc distribution. I have had both Development and Ad Hoc Distribution working on my personal Developer Programme working for some time.
I have deleted the certs and profile and followed your steps, but I still get the same error.
Within Keychain Access, under My Certificates, it looks like this...
....\/ [] iPhone Developer: Chris XXXX (xxxxxxxxx)........certificate
........P Chris XXXX........................................................private key
and under Keys, it looks like this...
..........P Chris XXXX........public key
....\/....P Chris XXXX........private key
............[] iPhone Developer: Chris XXXX (xxxxxxxxx)........certificate
the name you enter when creating the key is completely irrelevant. It's just for you to identify the key in your keychain.
What type of provisioning profile is you problem? development or distribution?
You should do in the following order:
create a certificate request
upload the request
--- in a company account the team leader has now to confirm your request
download the signed key
after that you should have a public/private key pair in your keychain which matches the one in the developer account.
now the team leader has to add you to the provisioning profiles of the apps in the account
after you have beed added you have to download the provisioning profiles from the developer site
now you should have a working key with working profiles.
It turns out I was simply dragging the provisioning profile to the device within xCode organiser, not the library. Simple once I realised. Hopefully, this will help someone else.