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

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 !

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

APNs Certificates look different in login keychain

I'm working on generating some replacement APNs server certificates and I'm concerned because when I drag them into the keychain login they look different. Before the certificates looked like:
Apple Production IOS Push Services: com.mycompany.myproduct
But now they look like
Apple Production IOS Push Services: AB12C3DEF4;AB12C3DEF4
where "AB12C3DEF4" is the app prefix. Has anybody else seen this? If you've generated an APNs certificate lately, did it look like this?
This is the first time I've done this kind of generation since Apple changed their certificates interface...
I saw this also. It appears to be a bug; I filed a radar (also if you search you should see a post I created in the Apple Developer Forums).
In the meantime to make your certificates more findable, make sure to enter a unique name you want to search on in the "name" part of the "Request a certificate from a certificate authority" form that generates the request that creates the certificate. Whatever you enter in the name field will be what the private key is called, so search in keychain will still find your certificate and you'll be able to identify it from the private key name.

New Private Key and provisioning profile for an iphone app update

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.

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