Server builds ios download environment

Server builds ios download environment

Preparation conditions

  • First of all, the server needs to be https protocol. I have written how to build https in this article, Click here.
  • Prepare the apple package. In general, the ipa package that needs to build its own download environment should be signed by the enterprise account. Here, assume that it is an ipa package that has already signed its name
  • Prepare an html for the download page

step
1. You need a plist file to configure ipa. This plist can be the plist that you export with the ipa in xcode package. Just modify it a little

Open the plist and modify the download address and icon address

Complete plist code contribution

<?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>ipa Download address</string>  
                </dict>  
                <dict>  
                    <key>kind</key>  
                    <string>full-size-image</string>  
                    <key>needs-shine</key>  
                    <true/>  
                    <key>url</key>  
                    <string>icon address</string>  
                </dict>  
                <dict>  
                    <key>kind</key>  
                    <string>display-image</string>  
                    <key>needs-shine</key>
                    <true/>  
                    <key>url</key>  
                    <string>icon address</string>  
                </dict>  
            </array>  
            <key>metadata</key>  
            <dict>  
                <key>bundle-identifier</key>  
                <string>Your package name</string>  
                <key>bundle-version</key>  
                <string>Version number</string>  
                <key>kind</key>  
                <string>software</string>  
                <key>title</key>  
                <string>Your app name</string>  
            </dict>  
        </dict>  
    </array>  
</dict>  
</plist>
  1. Add plist address to html page
<a class="btndown" href="itms-services://? action = download manifest & url = HTTPS: / / your plist address "> install</a>

Click btndown and download it. The effect is as follows
Finish!

Tags: iOS xcode xml encoding

Posted on Sun, 10 Nov 2019 12:09:56 -0500 by powelly