Q8: Make a certificate request in iOS Dev Center and generate an IPA file for others to play

Source: Internet
Author: User

iOS Open Egg Pain collection under write by Iceana Team2.bie~~,app (Submit App to Store) 01. Preface

iOS True Machine Debug last episode review , if you have not seen please poke here. I would simply summarize the following:

    • After writing the code, select our iphone, ipad and other devices ( registered in the developer Account ), under Xcode you can do real-machine debugging.
    • The Project code , the developer Certificate , the **密钥** developer Account Package, transfer to another Mac, you can do a real machine debugging on another computer, of course, if the device must be registered.

Note that the development certificate and key, for some friends are unfamiliar, mentioned here. Because of the last focus we use Xcode to Certificate get the certificate () and the configuration file ( Provisioning Profile ). Secretly tell you, in fact 密钥 , you can view in the keychain.
So here's the problem:

    1. You don't want to send your code to someone because it involves some sort of secret.
    2. The test user does not have Xcode and has no programming experience at all.
    3. Test users have only one itunes to sync their devices.

So how to solve these problems, please look at the text.

02. Text

The first thing to mention is that your developer account allows you to register up to 100 devices to allow your app to be installed and run on these devices without downloading from the App Store. All you need to do is simply place the app code in Xcode and send it to the build test user to compress the file, which, of application bundle course Ad Hoc Distribution profile , must include: and. The user then drags the files into the itunes connection to iPhone、iPad synchronize.

Note:

    • application bundle
    • Ad Hoc Distribution profile。 The English translation is understood: ad hoc means temporarily, specifically (don't squirt me).
1. About Distribution Profile

Before we made it clear that we wanted to run the app on the device, we had to sign () with a certificate ( Certificate ) and a configuration file () Provisioning profile signed . In addition to the configuration file here you still have the impression that you Team provision can match anything App ID , but unfortunately it only works for development purposes only in Xcode.
Well... To the present, I hope you all go smoothly: You can use Xcode to the app in the real machine to run up. Next we start a new journey. Clear two words in English:

    • DevelopmentDevelopment, that is, you are still in the code debugging phase
    • DistributionRelease, application mature, can be released as a product for everyone to play

Next we change the way to create a new one profile just for distribution work.

2.ios Dev Center Content Explained

Open Safari, click URL http://developer.apple.com/ios/, after the user logs in, our destination is Certificates,Identifiers&Profiles .


Click to enter the following screen:

Here's what you're looking at right now:


    • Certificates
      • All
        Show All certificates
      • Development
        Show Development Certificate
      • Production
        Show Publishing Certificate as distribution
    • Identifiers
      • APP IDs
        App is an application, then you have to set it to a corresponding id!
    • Devices
      • All
        Show All Devices
    • Provisioning Profiles
      • All
        Show all configuration files
      • Development
        To display the development configuration file
      • Distribution
        Show Publish Profile
3. Certificate role and process

Select Identifier->App IDs , there is + a button under this page, click Select to add a new app ID.

  1. App ID DescriptionIt's Name just a description, after all, it's only Provisioning Portal useful.

  2. App ID PrefixRepresents the app ID prefix, which by default represents your team ID, whatever it is,

  3. App ID SuffixFor the app ID suffix, of course we have to choose the explicit app ID (explicit app ID), this is fastidious! When you open your app project in Xcode, do you remember the red arrow? For me it is necessary to fill in com.pmst.StoreSearch .

    Other uses the default configuration, press continue to continue to create the app ID (don't forget to submit ). Not surprisingly, this newly created portal will be added to the list.

    Notice that Name we fill in the description text, the PreFix prefix is uniquely identified 10 characters, usually we will call it bundle seed .

  4. So far, the work has been smooth, now see if you have a certificate issued ( distribution certificate ). Open Keychain Tool:

  5. Don't doubt, in the focus we use Xcode to the server request, automatically generated and downloaded! But how to make it by hand? Here to teach you. Same as first to Certificate->Production medium, press + to create new.

  6. Check App Store and Ad Hoc Create, if you look closely, the word will appear in the department, CSR regardless, click Continue, until then, you will find that you are stuck! Because it requires you to generate one CSR or a certificate signing request. Don't worry, it's simple, come on, follow me.

  7. Turn on keychain access, usually Application/Utilities under.

  8. In the Keychain menu bar, selectCertificate Assistant → Request a Certificate from a Certificate Authority...

    The following will pop up this box:

    Fill in the email address, name, select Save to disk, click Continue, save the file to the desktop!
    Back to just page, upload CertificateSigningRequest.certSigningRequest , click generate . Then press download download down, damn it! Finally have our own certificate (the name is generally called ios_distribution.cer ), reiterated that our certificate is a certificate issued , the original choice is App Store and Ad Hoc . Double-click Install! This adds a new one to my certificate in your keychain.

  9. An app needs to run, it must have a certificate and profile signature to run on the device, we've created a publishing certificate , and now we're creating a release profile . Provisioning Profiles->Distributionunder Click + to create a new one.


    Here are a few steps: 1. Select the app ID (app ID), we just created it, don't tell me you forgot; 2. Select Publish certificate, just create; 3. Select the device and emphasize that the device needs to be registered; 4. Fill provisioning profile in the name!


    Is it going to be OK? Still a little bit, insist, immediately end! Now click Generate Generate provisioning profile and click Download. Save it for the time StoreSearch_Ad_Hoc.mobileprovision being, then use it again.

  10. Now open Xcode, Preference->Accounts panel, click View Details... and you will see:

  11. Now we can finally take a breath, we have two certificates: Development certificate and Publishing certificate, and configuration file: Team provision profile and XXX Ad Hoc profile (this is your own name). We're going to start build app publishing now!

4.build and then bie~ out.

There are two modes of build:Debug and Release. The difference is that in release mode, some optimizations for the code are turned on for faster and better execution, while the optimizations are turned off under Debug. Detailed in the later my app is given.

    1. Connect your device to your Mac, open Xcode, select your device as the debug device (where you normally choose the simulator).

    2. In the Xcode menu bar Product->Archive , you may be prompted by the following message codesign wants to sign using key “Your Name” in your keychain. that Xcode is asking you to publish a certificate , so choose always! No accident you can see the following interface:

    3. Right Show in the finder -click, then right-select the. xcarchive file to display the package contents. Feel free to look!

    4. If you accidentally turn off that interface, don't worry, go Window->Organizer . Now select the three buttons on the right and Export select the middle option, why? Look at the explanation, you'll understand!

      It will ask which team is going to use it, and then look Ad Hoc provisioning profile for and sign it, and see the result is this:

      Choose Provisioning Profile to go export! if not found, then you can try a few more times again!
    5. Now an. IPA file has been generated! Don't forget our provisioning profile papers, no it is not!

    6. Pack your testers and send them to you! Remember to add the tester's device to your developer account, with 100 restrictions.
5. Test how the user uses the IPA file
    1. Open itunes and go to the application interface.
    2. Drag the Storesearch.ipad in!
    3. Drag the provision profile file in!
    4. Connect to your iphone IPad
    5. Synchronous
6. Finally

Have time to write down the app upload to the App Store article! Finally thank you, hope to pay attention to my next, or message encouragement under.

???

Q8: Make a certificate request in iOS Dev Center and generate an IPA file for others to play

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.