Enterprise app ipa package deployed to its own server

Keywords: iOS xcode xml encoding

Preface:
Recently, it has started to march into the pit of uni app mixed development, which has been mined countless, and its strength can be improved a little every time it crosses a pit. Now you need to deploy the enterprise app ipa package to your own server to download.

All ipa packages deploy their own servers and finally have the following four files:
test.ipa, manifest.plist, test.mobileprovision (description file), index.html (download page)

1. There are many ways to generate test.ipa package, such as Xcode package generation, HbuilderX package, etc

2. There are many ways to generate manifest.plist Zone 8 plist file production , Xcode packaging will automatically generate plist files
plist file configuration view:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>items</key>
    <array>
        <dict>
            <key>assets</key>
            <array>
                <dict>
                    <key>kind</key>
                    <string>software-package</string>
                    <key>url</key>
                    <string>https://www.dapeis.com/apps/dpc.ipa</string>
                </dict>
                <dict>
                    <key>kind</key>
                    <string>display-image</string>
                    <key>url</key>
                    <string>https://www.dapeis.com/apps/icon57.png</string>
                </dict>
                <dict>
                    <key>kind</key>
                    <string>full-size-image</string>
                    <key>url</key>
                    <string>https://www.dapeis.com/apps/icon512.png</string>
                </dict>
            </array>
            <key>metadata</key>
            <dict>
                <key>bundle-identifier</key>
                <string>io.dcloud.dpc</string>
                <key>bundle-version</key>
                <string>1.0.0</string>
                <key>kind</key>
                <string>software</string>
                <key>title</key>
                <string>Matching wallet</string>
            </dict>
        </dict>
    </array>
</dict>
</plist>

3.index.html page address The code is as follows:

<!DOCTYPE html>
<html>

<head>
    <title>iosAPP download</title>
</head>

<body>
    <!-- ios app Download address -->
    <a href="itms-services://?action=download-manifest&url=https://www.dapeis.com/apps/manifest.plist">
        <img src="https://www.dapeis.com/apps/icon57.png">
    </a>
    <h1>IOS download</h1>
    <!-- ios Certificate trust method -->
    <a href="https://Www.dapeis.com/apps/dpcprofile.mobileprovision "> go to trust</a>
</body>

4. Test.mobileprovision (description file). This file needs to have a developer account to get. How to get it is easy to query by yourself, and you can't leave a message. The main function of this file is to use the index.html certificate trust. With this file, you can automatically jump to the mobile phone trust page without the user querying how to trust

Posted by iandotcom on Sun, 01 Dec 2019 13:11:54 -0800