苹果允许用itms-services协议来直接在iphone/ipad上安装应用程序,创建安装流程如下:
1、打包一个ad_hoc ipa文件,
2、配置一个plist文件,plist文件配置如下
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
| <?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://****/**/tue_test.ipa(ipa文件的访问地址)</string> </dict> <dict> <key>kind</key> <string>display-image</string> <key>needs-shine</key> <true/> <key>url</key> <string>图片的地址</string> </dict> <dict> <key>kind</key> <string>full-size-image</string> <key>needs-shine</key> <true/> <key>url</key> <string>图片的地址</string> </dict> </array> <key>metadata</key> <dict> <key>bundle-identifier</key> <string>com.xx.xx(bundleID需要ipa中需要保持一致)</string> <key>bundle-version</key> <string>1.0(CFBundleVersion需要和ipa中的保持一致)</string> <key>kind</key> <string>software</string> <key>subtitle</key> <string></string> <key>title</key> <string>提示</string> </dict> </dict> </array> </dict> </plist>
|
3、保存app.plist文件并将其上传到HTTPS的Web服务器。
4、创建一个连接给用户下载
重要信息
链接如下: itms-services://?action = download-manifest&amp; url = 链接。 将链接 替换为位于Web服务器上的app.plist文件的URL。
5、生成二维码下载
下载模板