Friday 20 March 2015

How to Install app on iOS Device & Publish over Applestore.


How to install app on iPhone and publish over Applestore.


  • Please find the following steps to upload any application to Apple store.
    1) Obtaining your own certificate
       -> Go to keychain Access
       -> Keychain Access -> preferences -> Cerificates ->Make Sure that ” Online Certificate Status Protocol (OCSP)” and ” Certificate Revocation List (CRL) ” OFF and Close the tab
       -> Then Go to ” KeyChain Access ” tab at very top & Select” Certificate Assistant” -> Request a certificate From a certificate Authority
       -> Then, Mention the Email id for which you want to request for a certificate like ” xyz@gmail.com “
       -> Mention a common name for which certificate is to be shown like ” firstName LastName”
       -> Select ” Saved to Disk “
       -> Select “Let me specify key pair information ” & then “Continue”
       -> Save as “Certificate Signing Request.certificateSigningRequest” & save to Desktop
       -> Keep ” Key Size ” to be  “2048” bits & Algorithm to be RSA &  “Continue”
           
    That will Show as a creating a certificate Request & go to Key Chain Access then. It will shows “First Name Last Name- public key” & “First Name Last Name- Private Key”
    2) In iTunes Connect :
    After going to iOS provisioning profile portal in Browser –
       -> Go to
           Certificates -> Distribution Tab -> Add Certificate -> Choose a file
       -> Now select  a file that we have already created from Key Chain access and then select submit
       -> message will be displayed saying “Certificate Request has been sent for approval”  
       -> Once request is being approved certificate is available for download     now with name ”distribution_Identity.cer “
       -> Once downloaded double click on ” distribution_Identity.cer ” file  and then click OK.
       -> It will show now “Apple World Wide Developer” certificate & ” iPhone Distribution: FirstName LastName” certificate
    3) How to create provisioning profile
       -> Create an app id from App Id section. It will in the form of com.companyName.projectName  
       ->Go to – http://developer.apple.com
       ->Log in with your account name
       ->Go to iOS provisioning portal
       ->then ‘provisioning’
       ->Create ‘new profile’ -> Select option As AppStore(for publishing to apple store)
       ->Enter the Profile Name
        It should be in the standard form. E.g AdHocProjectName
       ->SelectApp Id as in the form of com.companyName.projectName
       ->And finally add your devices which you would like to add
       ->Then Submit
    4) How to download provisioning profile
       -> Go to  – http://developer.apple.com
       -> Log in with your account name
       -> Go to iOS provisioning portal
       -> then ‘provisioning’ tab
       -> Go to Distribution & Download the respective provisioning profile.
       -> Double click on on downloaded profile and get it installed.    
    Note: Do feel all the information to the iTunes Connect for your application before starting next steps        
    5) Settings in Xcode
       ->Open the project in Xcode
       -> Find projectName-Info.plist in left hand side pane.
       -> include the bundle as if the app id which created in Step no. 3.
       ->Select the projectName option project Icon in left hand side Icon.
       ->Under “Project” tab – Select projectName and then select Build Settings.
       ->Go to row where there will be an option to select a code signing identity. Select the current, downloaded profile for projectName in all the modes like Debug, release.
       ->Same steps to be followed in the Target section also.
    6) Deploying to the Apple store
       -> In top left corner of Xcode, Select the device option.
       -> Now Select Product option from Main Menu of Xcode.
       -> Select clean.
       -> Select Build for Archiving.
       -> Select Archive.
       -> Then windows will come asking for submission to apple store.
       -> Select that option and hit submit.
    Feel free to get in touch with me if any queries.

No comments:

Post a Comment