首页 > 代码库 > IOS系统ipa软件包在线安装

IOS系统ipa软件包在线安装

如果iis不支持ipa和plist下载,可以添加memi类型。

  • ipa     application/x-plist
  • plist application/xml 

下载用普通链接即可:

<a href="http://www.mamicode.com/itms-services://?action=download-manifest&url=https://www.somedomain.com/appname.plist">AppName</a>

plist是一个xml文件,如下appname.plist文件:

<?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.somedomain.com/appname.ipa</string>                </dict>                <dict>                    <key>kind</key>                    <string>full-size-image</string>                    <key>needs-shine</key>                    <true/>                    <key>url</key>                    <string>https://www.somedomain.com/appname.jpg</string>                </dict>                <dict>                    <key>kind</key>                    <string>display-image</string>                    <key>needs-shine</key>                    <true/>                    <key>url</key>                    <string>https://www.somedomain.com/appname.jpg</string>                </dict>            </array>            <key>metadata</key>            <dict>                <key>bundle-identifier</key>                <string>com.somedomain.game</string>                <key>kind</key>                <string>software</string>                <key>subtitle</key>                <string>appname</string>                <key>title</key>                <string>appname</string>            </dict>        </dict>    </array></dict></plist>

链接地址千万不能写错,否则安装不了。

ipa文件和plist文件应该放在相应的位置。

IOS系统ipa软件包在线安装