HBuilder runs the project to the IOS real machine device

Company project, develop multi-terminal application, record here the steps of real machine testing on ios end after development

Click Run in Hbuilder -> Run to Phone or Simulator -> Run to IOS App Dock

Connect to the ios device

        

         Here you need to set up the Apple certificate signature before it can be used, click "Use Apple certificate signature"

        

        

Here you need to fill in 4 items, we will explain how to fill in and select one by one

Before filling in, you need to have an Apple developer account, and log in to the developer account, address: Apple Developer

After logging in, click "Account"

 After clicking on the account, you can see the planned resources. The first two parts are mainly used here, App Store Connect and certificate, identifier and description file. Here we first click "Certificate (English)"

After entering, we need to create a certificate first, click the + sign to add the certificate

 

There are many types of certificates, and mobile devices usually use two

  1. Development version - for testing
  2. Release builds - for publishing to the App Store

which one needs to create which

 After selection, click Continue in the upper right corner, and then select the csr file

This file needs to be generated with a mac computer. If you don’t have a mac computer, you can generate it online. Here is an example of Banana Cloud Compilation, address: Banana Cloud Compilation-app packaging tool platform (yunedit.com) https://www.yunedit .com/

Reference: How to create an ios certificate without a mac computer - Baidu experience (baidu.com) https://jingyan.baidu.com/article/48b558e36457ff3e38c09aa6.html

If you have a mac computer, you can refer to: (35 messages) iOS development generates CSR (.certSigningRequest) file_ios crs file generation_Swift community blog-CSDN blog https://blog.csdn.net/qq_36478920/article/details/ 78415437

Then there is the identifier (Identifiers), open it and create it according to the prompt. After this is created, the Bundle ID will be instant

Then add the test device, the application needs to be tested on the device, it must be added here before it can be tested

Click on Devices

 Click the + sign to create

 UDID can be viewed through Aisi Assistant

click to copy

After adding the device, start adding the description file (Profiles), here you need to pay attention to the type, which is the same as the certificate, and you also need to choose the development version or the release version

 Click the + sign to add

 Choose what you need here, and click continue in the upper right corner after selection

Here you need to select the identifier (Builder ID), that is, the Identifiers created earlier, and then select according to the prompts.

It’s all created here, but it still doesn’t work if you want to run it on an ios device. Here you need to use a tool called

AppUploader can directly create and download the required files after logging in to the Apple developer account with this tool.

Download address: Appuploader official website--IOS ipa upload release tool, certificate creation tool Application Loader cross-platform version, windows, linux, mac release upload and submit Apple application http://www.applicationloader.net/

It should be noted that this tool is paid software and needs to be purchased

After purchasing, downloading and logging in, enter the main page

 Open Bundle ID management, click Add

 The first Bundle ID filled in HBuilder comes from here

Fill in the created Bundle ID here, be careful not to fill in the previous name, but fill in the Bundle ID in the middle

Second certificate private key password

This is custom filled in when creating the certificate

Click Certificate Management, click Add Certificate, pay attention to the type here, if you want to test, choose the development certificate, and release it, choose the release certificate

 After selection, the following password is the certificate private key password we want

 

Note that the password is created by yourself, and the password created by each certificate may be different, so be sure to keep the password well

After this is created, there will be a save as later, click to download the certificate.p12 file

The password certificate here must select the p12 file saved above

Finally, create a description file, click on the description file management, click on create

 

Because you need to select the Bundle ID and certificate when creating the description file, you must first create the Bundle ID and certificate

Similarly, when selecting the type here, it is also necessary to distinguish whether it is a development version or a release version.

 Then select the created Bundle ID, select the certificate, and select the device. If it is a test, you need to select the device. If it is put on the App Store, you do not need to select the device.

 After creation, you can click the download button to download the description file. After downloading, select the description file you just downloaded in HBuilder

After filling everything, click the start signature below, wait for the signature to be completed, and then connect to the mobile phone to start running

Note: The certificate and description file are divided into development version and distribution version. The development version is used for real machine testing, and the release version is used for App Store.

  •         app development version
  •                 Development version p12 certificate
  •                 Development version description file
    •         app release version
      •                 Release version p12 certificate
        •                 release description file

Guess you like

Origin blog.csdn.net/qq_30932471/article/details/129591184