uniapp-ios package installation test

When we do uniapp and need to open the ios package for testing, there will be three required items: certificate private key password, certificate profile file, and private key certificate. This is a three-piece set for Apple and must have. It is shown in the figure below

 Here's how to get it:

1. Apply for an account 

1. Apply for an Apple ID 

Login:  https://appleid.apple.com/account 

Click Create Apple ID

 

2. Log in to the developer center for basic operations

Register successfully or already have an Apple account, log in to the Apple Developer Center: https://developer.apple.com/account/

Log in to the Apple Developer Center for the first time, an agreement will pop up, check the agreement, and click Submit to submit. After agreeing to the agreement, you can apply for the ios test certificate. 

2. Apply for an ios test certificate (.p12 file)

1. Install Appuploader 

Official website download: https://www.applicationloader.net/ 

Open Appuploader, log in the registered Apple id account, the unpaid account needs to be checked before logging in 

 

2. Make a certificate 

After logging in, click to enter the certificate management, click on the upper right corner to create a certificate  

 

Type select ios development certificate, enter the name (cannot contain Chinese) and password (need to remember, it will be used later when packaging 

 

3. Click Save As to download the .p12 file 

Note : A free developer account can only apply for one .p12 development certificate 

3. Apply for a Bundle ID 

Click the left menu to enter Bundle ID Enter the Bundle ID management page, click the Add button in the upper left corner 

 

Note : 1. The name cannot contain special characters, such as: @, $

           2. Bundle ID: Three-segment format. If the app name is Taobao, it can be written as com.app.taobao, which cannot be repeated and is unique

4. Add an Apple phone for testing

1. Obtain the UDID of the mobile phone 

Download Aisi Mobile Assistant on the computer, connect the mobile phone to the computer with a data cable, and the device identification in the device information is UDID. (There are also many other ways to obtain UDID on the Internet) 

2. Click Device Management on the left side of Appuploader to enter this page, click Add in the upper left corner 

 

3. Copy the obtained UDID to the UDID box, and enter the device name (optional, no Chinese)

5. Create a description file

1. Click on the description file management on the left to enter the page, click Create

 

Type select IOS application development, select the Bundle ID just created, check the associated ios certificate created in the first step, select to add the device to be tested, and enter the name (do not Chinese, do not repeat the previous one). Click Add to create.

2. Click Download to save the .mobileprovision description file.

Note: The description file for an Apple account application without paid 688 is only valid for 7 days, and the certificate for a paid Apple developer account is valid for 1 year, and you can re-apply for packaging when it expires. 

6. Package ipa 

 

Select the certificate, description file, password, and Bundle ID applied for above to pack. 

Bundle ID: Enter the Bundle ID applied in Appuploader

Certificate private key password: Enter the password filled in when applying for the ios development certificate

Certificate profile file : Select the downloaded ios test certificate (.p12 certificate)

Private key certificate : Select the downloaded .mobileprovision description file 

After the packaging is successful, download and save the ipa, and the ipa package can be installed on the previously added mobile phone for testing 

Seven, install ipa 

Note: Apps packaged with free developer accounts can only be installed through Aisi Assistant 

Download address: https://www.i4.cn/ 

Aisi Assistant connects to the mobile phone, clicks the application game, clicks import and installs, selects the newly packaged ipa package, or directly selects the ipa package and right-clicks to install it through Aisi Assistant.

 

The above are all the steps~ 

Guess you like

Origin blog.csdn.net/m0_51431448/article/details/131141858