uni-app packs the ios test package and distributes the test through testFlight

uni-app development, ios application certificate and ios package

1. Apply for ios certificate (private key certificate) and description file (certificate profile)
through the introduction of uni-app, address: https://ask.dcloud.net.cn/article/152

2. When applying for a certificate, please keep in mind the relevant account password, as well as the relevant id and key values.

Log in to the relevant account through an Apple computer, and distribute to the test package through testFlight

Distribute after uni-app is packaged (xcode is operated on Apple computer)

1. Download the latest IOS SDK , which must be consistent with the version of HBuilderX.

2. After the download is complete, open in sequence: SDK / HBuilder-Hello, there is a HBuilder-Hello.xcodeproj file in the file HBuilder-Hello, run this file in xcode.

3. In xcode, open the HBuilder-Hello / HBuilder-Hello / Supporting Files / HBuil-Hello-Info.plist file in turn, find the dcloud_appkey option in the HBuil-Hello-Info.plist file and fill in the appkey value.

insert image description here

4. To obtain the appkey, you need to find my app in the dcloud developer backend (uni-app developer backend), find the corresponding project and click on it.

insert image description here

5. After opening, click to select the information of each platform, find the corresponding version, select the version corresponding to the iso here, and select the view in the back (you can create directly without viewing).

insert image description here

6. Click the view button, open the pop-up box and copy the appkey value corresponding to the iso, and put the appkey in the place of the dcloud_appkey attribute value in the xcode project.

insert image description here

7. Next, log in to Apple's App Store Connect, open the My App list, create an APP if there is no app, and open the corresponding app if there is one. Click App Store, open the App information, set the corresponding information, and fill in the Bundle Identifier value, which is the app's The package ID must be consistent with the ID associated with the profile configured when the app is published. (Here I think the so-called package ID is the Bundle ID (AppID) when hbuilder x packages ios, just keep the same with the AppID inside).

insert image description here
insert image description here

8. Open xcode and delete the __UNI__33C5XXX file under HBuilder-Hello\Pandora\apps.

9. Place the locally packaged files of HBuilder X under HBuilder-Hello\Pandora\apps, and copy the directory name to the appid of control.xml under HBuilder-Hello/Supporting Files.

insert image description here

10. Click the HBuilder-Hello main file name, under the left TARGETS menu, click the upper menu Siging & Capabilities, configure Bund Identifier (package id), and Provisioning Profile (certificate description file, debug configuration development certificate, release configuration release certificate )

insert image description here

11. When the above picture warning prompt appears, search for signing in Build Settings, find the Debug option under Code Signing Identity below, select the IPhone Developer version corresponding to the account in the Hbuilder option column, and select Any IOS SDK and Debug under Debug Similarly, select Apple Development for Release at the same level as Debug, and select Apple Development for Any IOS SDK at the lower level of Release.

insert image description here

12. After the selection is completed, go back to Signing & Capabilities and the warning will disappear. After completion, you can pack it. Click the option Product on the top menu bar to find Archive. If Archive can be clicked, click it directly. If you can’t click it, you can see the next step.

insert image description here

13. If the Archive in Product cannot be clicked, it is because of the problem of the operating environment of the device. Change the operating environment to IOS Device mode, or plug the Apple mobile phone into the computer if possible, and choose your own device.

insert image description here

14. In this way, you can click Archive, select the organization version, and then choose according to your own needs, and then go to the next step.

insert image description here

insert image description here

15. After the completion, keep clicking Next until it is completed.

16. After completion, open App Store Connect, find the corresponding APP in My APP, click to enter, select testFlight, and perform internal distribution test and external distribution test in it. The external distribution test needs to be reviewed, and the review time is about 1 day .

Guess you like

Origin blog.csdn.net/weixin_44244230/article/details/129063285