It's been almost 10 years since hbuilderx appeared, and now more and more companies are starting to use uniapp, which has better cross-platform properties, to develop ios apps.
Development of ios apps, packaging needs Apple's private key certificate and certificate profile file, while these two files generated by Anzhao hbuilderx official website tutorials but more troublesome, because you also need to use the Apple computer.
So, our this tutorial will talk about how to use a windows computer and also generate Apple private key certificate and certificate profile file.
To generate Apple certificates, you first need to have an Apple developer account, and the Apple developer account needs to go to the Apple Developer Center to apply, if you or your company does not have an Apple developer account, you can refer to this tutorial to apply for an Apple developer account first:
/xueyuan/jx/applereg
Once you have an Apple developer account, it's time to get to the point and officially start creating certificate packages:
First, we first start to generate the Apple private key certificate: p12 certificate:
1, log in to the Apple Developer Center, enter the backstage, and then enter the Certificates module, tap the plus sign on the right to start creating cer type certificates, as shown below:
After tapping the plus sign, it will ask us to choose the type of certificate, here we choose to enter the iOS Distribution (App Store Connect and Ad hoc) type in the figure below, this type already includes the on-shelf (APP store) and real test (Ad hoc), so you can use this type of certificate regardless of the official on-shelf or real test. This type already includes both App store and Ad hoc, so you can use this type of certificate for both official store and Ad hoc testing.
Then tap on next, it will ask us to upload a csr file as shown below:
2, here, this csr file we because of the use of windows computer, no mac computer software, so here we use banana cloud editor to generate:
/createcert
3, go to Banana Cloud Editor, as shown below, to generate a csr file, and then download it to your computer:
4, in the banana cloud editor to generate and download a good csr file, back to the Apple Developer Center, continue just now the interface, complete the creation of cer certificate.
5. In Apple Developer Center, download the generated cer certificate to your computer.
6, return to the banana cloud editor, the following chart, upload the cer file just now, you can use the function of generating p12 files to generate p12 files, the process of generating p12 files need to enter the password of the p12 certificate, this password enter more than 6 no special characters can be.
Here, the p12 private key certificate has been generated.
Second, the process of generating a certificate profile file:
1, into the Apple Developer Center identifiers, modules, first create the appId, here the appId needs to be entered in the hbuilderx package fill in the package name (appId), such as that.
2. Click on the profile module to start creating the profile file:
3, point to the right of the plus sign, select the type of profile, if you choose the app store is the type of shelves, if you choose the ad hoc, is the type of real test, if you choose the ad hoc also need to provide the udid of the test equipment, test the udid of the equipment can be used to banana cloud editing the upper right corner of the udid of the tool to scan the code to obtain.
Then the generation process, it also needs us to select the appId and cer certificate, if you have more than one appId and more than one certificate, don't choose the wrong one here, as shown below:
Well, through the above process, you can complete the creation of the certificate, if it is the app store type profile packaged app, you need to shelve to install in the app store, if it is the ad hoc type of prifile file played out of the ipa package, you can upload the ipa file to the banana cloud compiled by the application of the internal test, to generate the installation of the two-dimensional code for the scanning code! Installation test.