Generating Distribution provision profile for APNS (Confusing in Two certificate) - iphone

I am facing problem in generating the distribution provision profile for APNS.
Currently What i am doing
Creating App id and configuring this id for APNS
Generating certificate (using "App store and Ad Hoc " option)
Now i have Two certificates in Certificates list (APNs production ios & ios Distribution)
Finally generating Provision profile using app id and Certificate(ios distribution certificate)
The above steps i am doing for Distribution
Now my Questions are
1. I have two certificate. which one is to use to create .pem file ?
2. Do I need to install both certificate in keyChain ?
Please help me

Yes you need to install both certificates.
Each certificate is needed for that particular provision profile to be valid.
Appstore provision profile can be used for uploading the binary to iTunes connect.
Adhoc you can use for generating binary that could be installed in certain devices that you added in the provision profile.Both the cases APNs will work.

Related

Do I need to update distribution certificate and provisioning profile right after generating and installing APNS production certificate?

I am working on one app and its uses the Apple push notification. For that there is one apple push services production certificate created by other user/previous developer. I am not able to contact my previous developer for the push certificate p12 along with its private key.
That is why I am trying to generate my own apple push production certificate from the developer site.
But my doubt is if I generate and install that new APNs Production certificate to my keychain , will it affect my existing provision profile and iOS distribution certificate(which is already installed in my keychain)?
Do I have to update them both after installing APNS production certificate ? If yes plz guide me with the procedure.

Can I use production certificate and distribution profile without goping for development .cer and profiles

Can I use production certificate and distribution profile without goping for development .cer and profiles, as i am running out of time.
Any help is appreciated ?? Thanks
You can use production certificate and distribution provisioning profile to submit your app to the App Store.
You cannot run application using distribution profile because apple not gives option to add device.
If your are making development provisioning profile then
developerSite will gives option to select developer certificate,
there is not any option for distribution certificate.
If your are making distribution provisioning profile then
developerSite will gives option to select distribution certificate,
there is not any option for development certificate.
check screen shot.

Distribution Certificate in xCode Organizer

Can I have more than one Distribution Certificate? I am developing an app but the current certificate was not created by me and is for another app. That app and cert was done by someone else who is no longer here.
I downloaded the vert, but in the organizer it tells me, Valid signing identity not found.
What am I to do?
Thanks for the help.
The error is shown, because a valid Signing Identity is not found. The Apple Documentation clearly describes how to export/import it. You should ask the certificate's creator to export his own copy of the certificate (because it can't be re-downloaded from the iOS Dev Center), then you can import and use it.
There's a difference between certificates and provisioning profiles.
Certificates are associated per account while provisioning profiles are for individual apps under each account.
If you are working with multiple iTunes / Apple Developer accounts, then yes you should have a certificate for each of those accounts installed in your keychain.
And assuming your app has it's own application (bundle) ID, you need to have a provisioning profile for each of the apps you're developing under that account. There are different provisioning profiles for distributing ADHOC builds and the Store build that gets uploaded for review by Apple.
It sounds like you need to start with just getting the certificate for the account you want to work with, then the provisioning profile.

Can there be only one Distribution Certificate per App Developer?

I experience big trouble with the iOS provisioning / certification.
Recently I submitted an app to App Store with a normal App Store Distribution Certificate. And then I wanted to create a AdHoc Beta Test for another app, and I am not sure what happened next but now the Provisioning Portal doesn't list my App Store Distribution Certificate anymore. Instead it only lists my AdHoc BetaTest Certificate.
Also, the Provisioning Portal has no way to create a new Certificate.
Recently I renewed my developer account so maybe everything expired causing the trouble?
My Keychain has an entry "iPhone Distribution: Mikhalo Ivanokov", with green checkmark "This certificate is valid", expiring in Nov 10, 2012.
But Provisioning Portal doesn't list this Distribution Certificate. Only the AdHoc BetaTest certificate.
How can I fix this? Does anyone know what might have happened? Did Xcode replace my App Store Distribution Certificate with my AdHoc Distribution Certificate? Can I have two, or must I somehow delete the AdHoc Distribution Certificate first?
You can only have one distribution and development certificate. However you can have multiple distribution profiles. So in your case, you can use the same distribution certificate to create an adhoc distribution profile and an app store distribution distribution profile. Remember that a profile is created by combining your certificate (either your dev or distribution one), an app id and optionally a list of devices.
It seems to me that you had a distribution certificate and by mistake modified it to an Ad Hoc certificate (it easily can be done in Distribution tab of Provisioning Portal). You just need to make one more distribution certificate and sign your application with it if you want to update it in App Store.
You don't need to delete your Ad Hoc certificate, you just can maintain both distribution and Ad Hoc certificates on your developer Mac. You just need sign your application with right kind of certificate for publishing in App Store and Ad Hoc distribution.
IOS distribution certificate personal account can only apply for three

iPhone App Store. Client submitting question

I am writing an application which will be submitted by my client.
I don't want to give them my source code, what must I do?
You just need to provide them the binary output as described in the docs on the iPhone Program Portal. They then upload this binary file along with the meta data on iTunes Connect (also detailed in that doc).
The binaries must be compiled using the app store distribution certificate that was obtained from the program portal. If your client has not provided these then your application will not be accepted.
Goto
build/distribution-iphoneos/ inside that you have .app file compress it and that compressed file is to be sent to the client.
hope it helps u.
These are the following steps needed to build an iPhone app under an Apple Distribution License and upload it to the App Store.
Create A CSR from Keychain Access in a Mac machine.
Access Keychain Access as Finder>>Applications>>Utilities>>Keychain Access.
Upload this CSR while creating a Distribution Certificate.
An Apple License can have only one Apple Distribution Certificate.
Download Distribution Certificate.
Open Keychain Access.
Access Keychain Access as Finder>>Applications>>Utilities>>Keychain Access.
Install the downloaded Distribution Certificate.
Right Click on the Distribution Certificate and select "Export Certificate" and save as Personal Interchange Certificate (.p12) format in destination Library>>Keychains.
For every new application we need to create new Provisioning Profiles under one Apple Distribution Certificate.
For each new Provisioning Profile, we need to create a new App Id.
So we need to create a Adhoc and Appstore Provisioning Profile.
Adhoc Provisioning Profile is for testing the app in apple devices.
*Appstore* Provisioining Profile is for uploading the app to appstore.
Download the respective Provisioning Profile and double click on the profile to install it.
Delete all the previous profiles and just retain the newly installed profile.
Build the application by selecting the Code Signing Entity as the newly installed Provisioning Profile.
6 Upload the ApplicationName.app.zip file as the binary file in Application loader while uploading the application to appstore.
Reference: https://developer.apple.com
I believe this would be of some help to you.