I have xamarin.ios app on app store and it was uploaded a 7 months ago.Now I am trying to create an update to existing app. The mac machine used for developing the app was changed now.I logged in the apple account in xcode and try to download the certificates using "Manage certificate button".It will download all certificates.
But I am getting an error in xcode says :
Provisioning profile "XXXXX" doesn't include signing certificate
"Apple distribution: XXXXXXX"
I try to re download all certificates from xcode.But it didn't solved.
When I logged in my apple developer account under Profiles sections.It shows like this
I saw in some articles says that we can revoke and extend the expiration. But when I try to edit,it shows like this.
What Should I do exactly to resolve this issue? I need to update the existing app.Please help me to resolve the issue.
First , you need to check whether use the self-created Distribution Certificates in Mac .You can not use other people generated CSR file or Development generated CSR file to generate a Distribution Certificates .
Second , if certificates is in System Group , you can copy it to Login Group . Then it will show private keys . A private keys will show valid in Visual Studio .
Have a look at this discussion : Xamarin iOS 16.5: certificate is "Not in Keychain"
Related
I've been using Xcode with a free Apple ID, and signing a App with a free provisioning profile.
However, after I signed the App with another Mac, the certificate on the first Mac I used to sign the App with does not work anymore.
I received this error message when I tried to run it on my iPhone:
Please verify that your device's clock is properly set, and that your signing certificate is not expired. (0xE8008018).
After generating a new certificate via Xcode > Preferences > View Details... > iOS Distribution > Create, I got this error instead:
The identity used to sign the executable is no longer valid.
After deleting the App from my iPhone, I tried to run the App again and received this error message instead. This also caused my phone to freeze for a while:
dyld: Library not loaded: #rpath/libswiftCore.dylib
Referenced from: /var/mobile/Containers/Bundle/Application/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/Test.app/Test
Reason: no suitable image found. Did find:
/private/var/mobile/Containers/Bundle/Application/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/Test.app/Frameworks/libswiftCore.dylib: mmap() errno=1 validating first page of '/private/var/mobile/Containers/Bundle/Application/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/Test.app/Frameworks/libswiftCore.dylib'
(lldb)
Update: I'm using Free Provisioning Profile, thus I don't have access to iTunes Connect. I also can't import the certificate from my 2nd Mac as it was it was reset.
Update 2: I've also visited Keychain App and found 2 certificates - one expired and one valid. I deleted the expired one and tried to run the App on my phone again, but the error persists.
Update 3: I've tried to revoke all my certificates in developer.apple.com, but there isn't a certificates management. Only 'Programs & Add-ons' and 'Your Account' sections are available in the nav, which allows me to enrol into Apple Developer Program.
Update 4: I've also restarted my Xcode to no avail.
The main problem is that I'm not sure why I cannot revoke and regenerate a new certificate.
How can I solve this problem?
Generate a New CSR from your Keychain and download new certificate using this CSR. Include this certificate in your provisional profile and download it. Make sure you remove all expired certificates from Keychain. Good luck.
You don't need iTunes Connect to manage your certificates, IDs and provisioning profiles. iTunes Connect is used for managing your app store releases, which as you know you can't do with a free account.
You need to go to developer.apple.com and log in with your free account to the member center. You will be able to see the certificates and provisioning profiles under your developer account.
Since you don't have anything in the store (you can't with a free account), I would go into the developer's member center, revoke and delete any certificates that are out there, and delete all provisioning profiles. Start from scratch and generate a new certificate using a brand new CSR. Then generate a new provisioning profile using the existing app ID and the newly created certificate. Download the profile update your project settings to use the new signing identity and profile, and you're back in business.
Also, this is assuming that you are not sharing this developer account. If you are, doing the above instructions will make it so other developers will not be able to build with the signing identity unless you give them the private key for the certificate.
I managed to fix this problem by renaming the App name, and recompiling the App. I think that by renaming the App, a new certificate is generated, thus it would work.
Even though, it's not really a great solution, but it solved my problem as I wanted to rename the App in the first place.
Thanks everyone for providing answers!
I had to create a new Apple ID and it worked. Not the ideal solution but without access to certificates its the only solution that worked for me.
'Your account already has a valid iOS distribution certificate'. I get this error every time I try to upload my archive. I don't have two dev accounts, nor did I use another mac before. Please help
This is a problem that appears after the updating to xCode 6. Just rename your provisioning profile in the developer portal, and then refresh the account info in xCode. Voila :-)
Your account already has a valid certificate
This dialog appears if the certificate already exists in Member Center.
Typically, this happens when you move from one Mac to another. If possible, export your certificates as a developer profile file on the other Mac, and then import them on your new Mac.
Have a look into Troubleshooting section of App Distribution Guide. It is described there how to solve this error.
I faced this error after Updating Xcode 6, to fix it
Revoke the IOS Distribution Certificate (from Member Centre ==> Certificates ==> Production).
Open Xcode project and re-login again to your account.
in the Account screen, click "View Details"
in the bottom left click the refresh button.
This will re-create the certificate automatically. and everything will work again.
In my case, the solution was to request a new dist cert, install it in my key chain, and also recreate the dist prov profile. Apparently, the cert I had in my keychain was old and was revoked and downloading the new cert from the dev center was not enough as it does not include private keys.
I seen similar question for earlier version Xcode, but advice not help me.
I need update ios app after fix issues for company of my client and had not publish first version app. Previous app publish another developer. I see many certification and provisioning profiles in developer.apple.com. I export certifications and profiles from account and built archive with parameters in Xcode: "Code signing Identify" IOS Distribution and Provisioning profile:* Ios Team Provisioning Profile.
Status on Itunes Connect is "waiting for upload".
When I try upload I see message: "the private key is not installed on this mac". What key is it? Need I file with previous private key for update or I can create new? I try download certificates and generate .p12 file and create new provisioning profile, but all of this not helped me.
Maybe in Xcode 5 there are additional steps necessary?
You'll need to have the original developer transfer the app to your account. You'll then be able to get the proper certificates and provisioning profiles for it.
The issue is, you have to generate the .p12 file from the keychain of your old developer machine or where it was generated. Because the certificate private key belonging to his system. Not yours.
I've recently attempted to transfer my apple dev certificate to a new mac, however, the provisioning profiles are appearing as valid signing identity not found.
I imported my developer account into Xcode5 and when I deploy a build, I get the option to fix the issue of not having a valid signing - this generates an iOS team provisioning profile for the bundle id.
So far have found this is fine for testing - we distribute ourselves not using the app store.
If anyone would be able to give me a heads up on whether this is an okay method, or whether I will need to generate a new certificate for distribution in case we do use the app store for distribution.
If you still have access to your previous computer, you can export as p12 the private key you used to generate the Apple certificate.
Go to keychain, select the iOS certificate and right click to export it. Then import it to your new computer and you do not need to generate new certificates.
what you need to do is to remake the developer and distribution certificates for your new mac and install it then, you update your provision profile with the new certificate, reinstall it and everything works
PS: for remake your developer and distribution certificates you have to go in the keychan
Certificate Assistant > Request a Certificate From a Certificate Authority..
then add your email and common Name, check Saved to disk. Finally Into the developer web site you remove your old certificates and create the new one with the new file that you have in the disk.
Did you export from Xcode → Preferences → Accounts like Apple's guide suggests?
Did you also export your private key from the keychain? I have seen this issue before, and that was resolved by exporting and importing the private key.
If you do want to distribute on App Store later on you will definitely need to import a valid certificate, yes.
here you can find a solution or ask your problem to a developers Apple support:
https://developer.apple.com/support/
Other way you can call the developer support center here:
https://developer.apple.com/contact/phone.php
I've search the web but couldn't find a solution exactly for my problem. I've created a Development Provisioning Profiles in iOS Provisioning Portal and added it to my iMac. I can successfully deploy applications to my iPhone.
Now I'm trying to deploy the same application from my MacBook Pro. I've installed the profile but gets an error:
XCode could not find a valid private certificate/valid key-pair for this profile in your keychain
I think that I need a private key from my iMac which I have to import to my MacBook Pro. Right? My question is, where can I find that private key?
When you have generated your certificate, Apple requires you to use Keychain Access for generating a certificate signing request (CSR). When you've done this, a private key has been generated in your keychain.
You got the error above because you don't have transfered this private key between your Macs.
Here is the guide to do so (the link is for mac, but it's the same manipulation). From your iMac :
Open Keychain Access in the /Applications/Utilities folder.
Select the signing certificates you want to export.
Choose File > Export items.
Choose Personal Information Exchange (.p12) as the file format and click Save.
Enter a password and click OK when done.
Transfer the p12 on your macbook, and :
Double-click the exported file that has a .p12 extension.
Extracted from :
http://developer.apple.com/library/mac/#documentation/ToolsLanguages/Conceptual/OSXWorkflowGuide/CodeSigning/CodeSigning.html#//apple_ref/doc/uid/TP40011201-CH7-SW17
Revoke the current certificate then follow the prompts regarding keychain Access when you go create new and then you should be fine.
You can still use your keychain to create the CSR, and then upload it on the new provisioning portal. Just did it the other day.