iOS ad hoc distribution with .p12 from customer - ios

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.

Related

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

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?

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.

Apple certificates CER file to CSR

I am a little lost in apple certificates and what I need. I created development certificate, some profiles and so (for my use). Now I am adding some features to existing app which creates someone else but it's my job now and for next I was asked for giving UDID and creating CSR file. UDID is clear but how can I create CSR file? I should give it and then I get provisioning profile from other person. I hope it's clear. So how can I get CSR for my development profile?
From what I understood you already have provisioning profile. Provisioning profile is something that connects certificate (developer) with UDID's (allowed devices) and bundle identifier (app identifier).
If you have valid provisioning profile (contains your device, correct app identifier etc.) you only need to set it to be used in xcode under build configuration.
If you really need CSR (certificate signing request), something that is used to generate new certificate - you use keychain for that (Keychain access -> Certificate assistant ...). You can find detailed information on CSR generation in memeber center of iOS developer program (Certificates, Identifiers & Profiles -> Certificates -> + ). From some time handling of provisioning profiles is almost automatically handled by Xcode when you try to build app for your device.

How about Apple’s enterprise distribution iOS apps

I have a iOS app use the account A.
My client gave me an enterprise account B for In-House distribution.
I'm not allowed to revoke their existing certificates and they do not provide .p12 and .developerprofile.
I called the apple center and they told me NO .P12 key can also publish procedures but did not told me how to do.
My E-mail have joined the team,
I create a new app id and a provisioning profiles but the provisioning profiles is error in my Xcode.
error message:The private key for "XXX" is not installed on this Mac.
My question:
I just want to release .ipa for in-house type how to do?
thx!
You will need to p12 (private key) form the client or revoke the current profile. There is not other option. Do not revoke any provisioning profiles for current apps since they may used.
Also explain to the client what you are doing and the consequences that it may have, if they are not able to provide you with the necessary certificates.
You generate a Certificate Sign Request (CSR) from your Keychain, login to your developer account and choose your client's team.
You then create an enterprise certificate which will have to be approved by your client's team manager. Once that is done you will be able to download it and install it on your keychain.
After that generate a provisioning profile for the app you want to distribute, download and install it on Xcode.
Build your app with this certificate and save the IPA for enterprise distribution.

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