1、制作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>【IPA所在的URL,要用HTTPS协议】</string> //ipa 在服务器上的路径
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>【APP的buildeId】</string> // 你的BuildeID 在你的Xcode info.plist里找
<key>bundle-version</key>
<string>【版本号】</string> // 版本号 例如 1.0
<key>kind</key>
<string>software</string>
<key>title</key>
<string>【APP名称】</string> // 这个就是你App的名字 例如:文件夹
</dict>
</dict>
</array>
</dict>
</plist>
2、 在你的网页中加入如下代码 或者 生成连接二维码
格式如下
<a href="itms-services://?action=download-manifest&url=【PLIST文件路径】">iphone安装</a>
例如
<a href="itms-services://?action=download-manifest&url=https://www.domain.com/app.plist">iphone安装</a>
iphone安装
注意: 这里的url连接到plist的地址必须是https, 而且是受信任的。
这步完成之后可以在iphone下打开这个网页 ,点击这个连接,就会提示安装APP了。