ipa测试安装(itms-services协议安装)
准备plist文件, 有下面两种方式
- 在xcode导出ipa文件时候选择develop,然后有个可选项Include manifest for over-the-air installation。选中以后会填写相关信息,最后会在生成的ipa目录下面有一个manifest.plist文件
- 直接编辑,格式如下,里面的https也可以是http,https://xxxx/xxx.ipa 必须是可以访问到的地址
<?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/xxx.ipa</string>
</dict>
<dict>
<key>kind</key>
<string>display-image</string>
<key>url</key>
<string>https://xxx/xxx.png</string>
</dict>
<dict>
<key>kind</key>
<string>full-size-image</string>
<key>url</key>
<string>https://xxx/xxx.png</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>xxx.xxx.xxx</string>
<key>bundle-version</key>
<string>0.0</string>
<key>kind</key>
<string>software</string>
<key>platform-identifier</key>
<string>com.apple.platform.iphoneos</string>
<key>title</key>
<string>xxxxxx</string>
</dict>
</dict>
</array>
</dict>
</plist>
新建web网页,链接指向上面创建的plist文件,这里链接必须是https,将改网页地址发给需要安装的人用safari打开点击链接就会提示下载安装了
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Install</title>
</head>
<body>
<p align=center>
<font size="10">
<a style="color:#69DEDA" href="itms-services://?action=download-manifest&url=https://xxxx/xxx.plist">点击安装</a>
</font>
</p>
</body>
</html>