Distribution Certificate not shown as an option when Generating a Provisioning Profile - ios

Background: trying to set up test-flight for IOS development as an individual.
Problem:
In the Apple developer website,
while I can see my distribution certificate and my developer certificate under the Certificates tab, when I try to generate a Provisioning Profile, it only shows the developer certificate as an option but not the distribution certificate (which to my understanding is what is needed to set up test-flight).
perhaps Apple is just taking a while to process the new distribution certificate as I created it just now...?
any ideas? what might have I missed?
Maybe I am supposed to delete the development certificate first?

Related

Signing Certificates and Provisioning Profile for iOS Development

I'm new to iOS development and I'm getting a bit confused with the usage of signing certificate and provisioning profile. Let's say there's an iOS project which involves multiple developers and each developer works on the development using their own MacBook. In this case, do all the developers need to use the same signing certificate and provisioning profile for the app? As I'm aware that the private key of the certificate is stored in the Keychain of the developer who created the CSR. Can multiple certificates tie to the same provisioning profile? Any clarification would be much appreciated. Thanks.

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

About distribution certificate (with private key) in keychain

I understand that in iOS app development, for team collaboration, the leaving developer should export the distribution certificate from his keychain app because only his Macbook has the private key used as code signing identity. (Please correct me if I am wrong here.)
My questions are:
1. Am I right that the distribution provisioning profile for app store & the provisioning profile for ad-hoc distribution using the same code signing identity?
2. Am I right that if we lost the contact of leaving developer who has distributed the app to Apple Store, I can just delete the distribution certificate & corresponding distribution provisioning profile in Apple Developer account , and create a new distribution certificate & profile on my Macbook so that I have the new signing identity in my keychain, I don't need the leaving developer to export his, because the distribution certificate & profile is only used to distribute the app to Apple store or do ad-hoc distribution? Is there any harmful consequence I missed if do so?
For question 1
Yes, distribution certificate is used for uploading app to apple store. And development for running on device or sending build.
For question 2
Yes, you can simply revoke his certificate. And create new one. That way your previous developer certificate are not required. Moreover, he wont be able to use them anymore and you can create new one and keep your certificate on apple developer account clean.
Hope it clears your doubt.

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.

iOS ad hoc distribution with .p12 from customer

I have an app developed and working with our company's profile and distribution cert. I just recieved the .p12 from the company that we are going to be distributing to, and am trying to rebuild the app with their certificate. However, when I select 'Archive' I receive
"No unexpired provisioning profiles found that contain any of the keychains signing certificates"
I believe I'm missing something here, but google and I can't figure it out. Do I need a new profile with that certificate in it? If so how do I go about uploading the .p12?
Thankyou very much.
With the p12 you are enabling your computer to make releases for the outside company but what you need right now is the provisioning profile associated with that app (it will be specific if you have in app purchases or push notification otherwise it will be the default developer profile) and that .p12
Check out your keychain, distribution certificate has key. If not then install right certificate.

Resources