Generally, there are two ways to download and install iOS apps: App Store and TestFlight

But the above two ways are not today’s introduction…

Today we introduce the third way: download and install iOS App from your own server!

The configuration mode is as follows:

1. IOS client developers use the Xcode tool Archive Enterprise IPA package. This step generates an xxx.ipa file and a manifest.plist file. (There are other files, of course, and I won’t go into too much about them in this article.)

2. Upload the IPA package generated in the first step and the corresponding App icon with 57×57 and 512×512 resolution to the server, and generate the download link of the corresponding file.

3. Configure the manifest. Plist file whitelist generated in the first step and open the plist file.

4. After the manifest.plist file is configured, upload the file to the server, and then generate a download link for the file, and inform the iOS client developer of the link.

5. IOS developers take the link to download the plist file and splice it into ITMs-services ://? Action = download – manifest&url = https://xxxxxxx/manifest.plist, this link is the App install download link.

6. Access the link generated in Step 5 in the Safari browser on iOS to install the App.

Note:

1. The App installation link can only be accessed in Safari browser of iOS, otherwise the installation will fail!

2, if the iOS client needs to cooperate with the upgrade policy, you need to configure this link into the project code! Scenario example: After the App is opened, there is an upgrade pop-up. You can add the following code to the click event of clicking the “upgrade” button:

NSUrl *openUrl = [NSURL URLWithString:@"itms-services://?action=download-manifest&url=https://xxxxxxx/manifest.plist"];
BOOL canOpen = [[UIApplication sharedApplication] canOpenURL:openUrl];
if (canOpen) {    
     [[UIApplication sharedApplication] openURL:openUrl];  
}
Copy the code

This is how to download and install the APP from your own server. Thank you very much!

IOS development advanced QQ communication group: 980777783.

IOS development advanced wechat official account: