1.創建 manifest.plist 文件
2.通過 itms-services://協議讓 Safari 進行下載
3.ipa 下載鏈接必須為 https 的
文件manifest.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://xxxx.com/down/ios/xxxx.ipa</string>
</dict>
<dict>
<key>kind</key>
<string>display-image</string>
<key>url</key>
<string>https://xxxx.com/down/ios/images/58.png</string>
</dict>
<dict>
<key>kind</key>
<string>full-size-image</string>
<key>url</key>
<string>https://xxxx.com/down/ios/images/640X960.png</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>.com.xxxx.xxxLo</string>
<key>bundle-version</key>
<string>1.4</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>xxxx網</string>
</dict>
</dict>
</array>
</dict>
</plist>
文件 index.html
<html lang="en">
<head>
<meta charset="UTF-8">
<title>xxxx網</title>
</head>
<body>
<a style="font-size: 5rem" href="itms-services://?action=download-manifest&url=https://xxxx.com/down/ios/manifest.plist">下載</a>
<h1>IOS下載</h1>
</body>
</html>
參考鏈接
https://www.jianshu.com/p/2f5ec1ab46f4