itemServices 是苹果推出的一款协议.基于这款协议,咱们在本地部署一个服务器,将 ipa 包存放到本地服务器.而后,测试人员只要经过 iOS 测试设备的 Safari 浏览器访问特定的地址,就能够经过内网更新 app浏览器
在进行功能实现之前,咱们须要了解如下的准备内容服务器
项目打包后的文件,使用企业分发方式打出的一个 xxx.ipa 包(若是选择 Development, 则只能使用注册过的设备进行内测,若是选择 EnterPrise 打包的话,不只能够内测,还能够提供给外部人员使用);
一个 xxx.plist 文件,内容以下,生成成功之后使用 Xcode 查看是否可以成功打开;app
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <array> <array> <dict> <key>assets</key> <array> <dict> <key>kind</key> <string>software-package</string> <key>url</key> <string>https://ipa.xxxx.com/20190531/xxxx.ipa</string> </dict> <dict> <key>kind</key> <string>full-size-image</string> <key>needs-shine</key> <true/> <key>url</key> <string>https://kaig.chuangkegf.com/profile/down_image_57.png</string> </dict> <dict> <key>kind</key> <string>display-image</string> <key>needs-shine</key> <true/> <key>url</key> <string>https://kaig.chuangkegf.com/profile/down_image_512.png</string> </dict> </array> <key>metadata</key> <dict> <key>title</key> <string>惠普众联</string> <key>bundle-version</key> <string>版本号</string> <key>kind</key> <string>software</string> <key>bundle-identifier</key> <string>com.wanshang.WuHanLoan(app 的 bundleID)</string> </dict> </dict> </array> </array> </plist>
itms-services://?action=download-manifest&url=https://www.xxx.com/20190530/xxxx.plist
<a href="itms-services://?action=download-manifest&url=https://www.xxx.com/20190530/xxxx.plist">下载安装</a>
PS:ide
https://blog.csdn.net/weixin_34290000/article/details/87141847测试
https://www.jianshu.com/p/550545eb505furl