文章内容
XCode打企业包,或者给测试打包的时候,不需要每次都对测试机插在mac上给他们安装,最简单的方法是做个二维码,让他们去扫描安装
步骤一
首先导出ipa包
步骤二
把ipa包放到一个服务器上面,以便其他人下载
步骤三
做一个plist文件内容:并且把这个 plist 文件放到 https 服务器上
<?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下载地址</string>
</dict>
<dict>
<key>kind</key>
<string>full-size-image</string>
<key>needs-shine</key>
<false/>
<key>url</key>
<string></string>
</dict>
<dict>
<key>kind</key>
<string>display-image</string>
<key>needs-shine</key>
<false/>
<key>url</key>
<string>填写安装过程显示图片(可无)</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>填写bundle ID</string>
<key>bundle-version</key>
<string>填写版本号</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>安装显示应用名</string>
</dict>
</dict>
</array>
</dict>
</plist>
步骤四
1、访问地址
itms-services://?action=download-manifest&url=/*plist文件位置*/https://***/***.plist
2、制作访问页面
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0">
<meta name="keywords" content="test" />
<meta name="description" content="" />
<title>测试包</title>
</head>
<body>
<div>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<p align="center"><a href="itms-services://?action=download-manifest&url=/*plist文件位置*/https://***.com/***.plist"></a></p>
<br/>
<br/>
</div>
</body>
</html>