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.
Related
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..
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 ..
We're one step away from our first AppStore deployment. Unfortunately we have to deploy under our customer's account (to show the correct company name)
At the moment we do not have access to the account's provisioning portal. My question is:
I could ask my customer to generate a distribution provisioning profile and send the *.mobileprovision file to me. Then I would ask them to create an iTunes connect developer account for me. Would this be sufficient for me to build the App on my box and to deploy it in the AppStore?
Or do I need my customer's Distribution Cetrificate (especially the private key - which he might not want to give away)?
Thanks four your help
Yes you will need the certificate, private key as well as the mobileprovision file for deployment.
hmm.. i m pretty new to.. But i think to deploy ur app on appstore u need to have ur clients submission certificate and a distribution provisioning profile.
hope it helps somehow... regards.
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 :).
I have registered for Apple Developer Program. I have installed my provisioning profile and other certificates successfully. But still, I am getting error while installing the app for ad-hoc distribution.
I am not sure about this, but I am getting my company name as "CXXXXXXXXX.abc-xyz.com" in mobileProvision certificate. Although I have entered my company name as "abcxyz" in developer profile.
Now, in info.plist, I have tried many options like com.abc-xyz., com.com.abc-xyz., com.abc-xyz.com.* but none of them works.
Here's the error that I am getting while installing:
Provisioning profile specifies the Application Identifier 'abc-xyz.com' which doesn't match the current setting 'com.abc-xyz.ApplicationName'
As far as I know, I think the problem may be in my company name as it contains '-', '.' and 'com'. But I have never entered name like abc-xyz.com anywhere apart from my email address. i.e. xxx#abc-xyz.com
I don't know if I am missing something. Is there any solution for this? Plz help if you have any suggestions.
Thank you.
The bundle identifier in your info.plist should match the App ID of the provisioning profile. If your provisioning profile has an App ID of "CXXXXXXXXX.abc-xyz.com" then it will only sign apps with a bundle identifier of "abc-xyz.com", not "com.abc-xyz.ApplicationName".
You need to make the provisioning profile's App ID and the bundle identifier match. One way to do this is to set the App ID in the provisioning profile to "CXXXXXXXXX.com.abc-xyz.ApplicationName".
You can make the provisioning profile work for any app for your company by using a wildcard. "CXXXXXXXXX.com.abc-xyz.*" will match any bundle identifier that starts with "com.abc-xyz.".
For simplicity, I tend to wildcard the whole string ("CXXXXXXXXX.*") for Ad Hoc and Development profiles.
I lost 1 hour messing around with the Code Signing Identity in my Project configurations with no luck. After I made the same changes to the Target everything worked.