我们需要准备三个文件一个xml文件,一个html文件,一个ipa文件。
xml文件结构如下:
<?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>http://10.12.51.32:8000/WantuClient.ipa</string> </dict> </array> <key>metadata</key> <dict> <key>bundle-identifier</key> <string>com.taobao.wantu</string> <key>bundle-version</key> <string>1.0.0</string> <key>kind</key> <string>software</string> <key>title</key> <string>Wantu</string> </dict> </dict> </array> </dict> </plist>
需要注意的地方是下载的ipa文件路径是否正确,还有你的bundle id等参数都要和app对上。
<html> <a href="itms-services://?action=download-manifest&url=http://10.12.51.32:8000/WantuClient.xml"> Wantu 1.0.0 RC1 (0928) </a> </html>
注意的是这边的href的值要指向xml文件。
然后就自己把这些文件上传到服务器上,让测试用户下载使用。