月度存档: 6 月 2018

iOS网页安装app

1、使用企业证书打包ipa;
2、写plist,放到https站点上

<?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的URL,http即可</string>  
                </dict>  
                <dict>  
                    <key>kind</key>  
                    <string>full-size-image</string>  
                    <key>needs-shine</key>  
                    <true/>  
                    <key>url</key>  
                    <string>2x图标URL</string>  
                </dict>  
                <dict>  
                    <key>kind</key>  
                    <string>display-image</string>  
                    <key>needs-shine</key>  
                    <true/>  
                    <key>url</key>  
                    <string>图标URL</string>  
                </dict>  
            </array>  
            <key>metadata</key>  
            <dict>  
                <key>bundle-identifier</key>  
                <string>这里填bundle-id</string>  
                <key>bundle-version</key>  
                <string>这里是版本号</string>  
                <key>kind</key>  
                <string>software</string>  
                <key>title</key>  
                <string>标题</string>  
            </dict>  
        </dict>  
    </array>  
</dict>  
</plist>

3、填入下载链接:itms-services://?action=download-manifest&url=https://www.xx.com/download/xx.plist