Distribution Profile error: Valid signing identity not found - ios

When I create a Development Provisioning Profile (to distribute the app Ad-Hoc) the organizer in Xcode gives the following error: Valid signing identity not found.
I tried the steps below to solve my problem without any luck:
remove all keys and certificates in my Keychain.
revoked my Development Certificate in the iOS Provisioning Portal
created a new Development Certificate
edited the Development Provisioning Profile for my app and selected my Certificate.
Xcode says my profile is valid for de Development Provisiong Profile.
created the Distribution Provisioning Profile.
Xcode says there is no valid signing identity found for the Distribution Provisiong Profile.
What other solutions can I try? There is already an app in the App Store publish by my colleague.
I'm using Xcode 4.4.1

This happen when you miss the private key of the certificate signer. You must have the private key in your keychain.
Usually when you request certificate from a certificate authority, it created a private key in your keychain, which subsequently used for creating all the provisioning profiles.

I think you are missing one important step. 'Request a certificate from certificate authority'.
Please have a look at this.

Related

Provisioning profile doesn't include signing certificate when distribute app

I used A's signing certificate to distribute the app before.Then changed it to B's signing certificate
It was successfully archived. I was stuck at last step which showed "Provisioning profile doesn't include signing certificate"
I can't delete all certificates cause there are other people use mac
Tried following solutions which are not working
In accounts and downloaded manual profiles
delete B's certificate in key access
Do anyone know
how to solve it? or how to update the signing certificate in Provisioning profile?
Thank you so much

Distribution Provision Profile doesn't include signing certificate iPhone Developer xxxx xxxx

I am trying to create a distribution profile. From scratch I deleted every certificate at KeyChain. I removed all provision profile using terminal method. I closed my Xcode. Then I followed this link to create the distribution certificate and profiles. I followed the step correctly and I got the following results. I keep getting "No signing certificate"IOS development found" Please help.
Edited
I then created the Development certificate following this link and now I get different certificates name for Development and Distribution. My error is Distribution Provision Profile doesn't include signing certificate iPhone Developer xxxx xxxx
Please help, thanks.
After creating the development profile
Why is my certificate different name for development and distribution, I followed the steps to create certificate. Why is it different name?
FOR DISTRIBUTION CERTIFICATES
On BuildSettings make sure you pick "IOS Distribution" instead of "IOS DEVELOPER" in the "Code Signing Identity" dropdown:
You have the certificate and provisioning profile for iOS Distribution. You are trying to do a build for development (building to a test device), which will require you to generate a certificate and profile for iOS Development. Follow the steps you did, but when you need to specificy what the certificate is for, choose iOS Development. Also, when you create the provisioning profile, select iOS Development. It is actually the next article on the site you were using: http://lessons.livecode.com/m/4069/l/308242-how-do-i-create-a-development-profile-for-ios
The iOS Distribution certificate / profile will be used when you want to submit to Apple for testing through TestFlight, or for distribution in the App Store, so don't worry about deleting those.
I had the same problem and I solved it just checking the configuration of certificates and provisioning.
Check if they are using correct provisioning profiles
And check if they are using the correct reference in code signing
That's what worked for me...

Creating developer provisioning profile but showing ineligible

By mistake I removed the existing developer provisioning profile. So I am trying to create a new developer provisioning profile but each time it is showing ineligible.
Role of my user in the team is agent. App id, adhoc, and distribution provisioning profiles are created under that team with my ID which is working fine. I downloaded all developer and distribution certificates also. But in my keychain I found private key missing for the developer certificate but present for distribution certificate.
At the time of creation of the developer provisioning profile I am selecting all the available signing certificate and all the device ids. In my Xcode project when I am trying to select the developer provisioning profile, which is showing ineligible, I am getting the error message:
"Provisioning profile 'dev_provisioning_profile' doesn't include signing certificate 'iPhone Developer:'. No certificate matching 'iPhone Developer: ' for team 'team_name'.
What should I do to create valid developer provisioning profile?
Finally solved the issue. Just writing the steps. Not so sure that these are the exact steps but worked for me, may be helpful to others-
Delete the developer certificate that does not have a private key.
Then first check then uncheck the Automatically manage signing option in the project settings with selecting team.
Select provisioning profile in the project settings.
Delete the provisioning profile from machine.
Sign in developer account and edit the provisioning profile selecting all available developer certificates
Download the provisioning profile and add to XCODE.
By following these steps the provisioning profile becomes eligible and working fine.
You should delete the developer certificate that does not have a private key especially if there are multiple instances with the same identity. Also an easy way to solve this may be to uncheck then check the Automatically manage signing option in the project settings.

HealthKit: No matching provisioning profiles found error

I'm getting "No matching provisioning profile found" error when trying to integrate HealthKit. I've added HealthKit entitlement. I've regenerated the certificates and tried, and still gets the error. Both project and target has the same certificates chosen. I've developer account configured in Xcode. I've refreshed it once the certificate was generated.
Any ideas?
Thanks.
The issue got fixed.
Revoked a development certificate.
Generated a new development certificate.
Updated provisioning profile.
This error appears if you enable HealthKit service in https://developer.apple.com after creation of provision profiles.
In that case provision profiles becomes invalid.
Solution:
You have to recreate provision profiles again from Developer Center.

Trying to Upload iOS App, Can't Archive

I made an app and am trying to upload it to iTunes Connect. I have a certificate installed, development certificate and distribution certificate...see picture..
...But, somehow, when I am trying to archive the app in Xcode to binary, it reports an error:
All my certificates are valid, but it's still complaining about distribution certificates,
What am I missing?
You don't appear to have a distribution profile (only a developer profile -- in organizer). You appear to have a distribution certificate, but no profile. You must create a distribution profile for your app. You can do this in the portal.
Did you generate the certificate on your own Mac? The certificate must match a private key in the keychain. If not, revoke the existing certificate and create a new one. You will have to perform the signing from Apple again.

Resources