<?XmlRss/ target=_blank class=infotextkey>Xml version="1.0" encoding="UTF-8"?>
items
assets
kind
software-package
url
${ipaDownloadUrl}
metadata
bundle-identifier
${identifier}
bundle-version
${version}
kind
software
subtitle
${subtitle}
title
${title}
controller
@RequestMapping(value = "/plist/{id}",method = RequestMethod.GET)
public void plist(HttpServletResponse response,@PathVariable String id) throws IOException, TemplateException {
Map data = new HashMap<>();
//put variables
//....
//convert to string
String content = FreemarkerUtil.generateContent("plist.ftl",data);
response.setHeader("Content-Type", "application/octet-stream; charset=utf-8");
response.setHeader("Content-Disposition",
"attachment;filename=app.plist");
response.getWriter().write(content.toCharArray());
}
下載頁面
參考二維碼app下載方案
坑關於這個plist的接口,假如不是PathVariable的參數,而是RequestParam這種,經過itms-services無法發送對plist的懇求,後來把參數都改為經過PathVariable才可以。
itms-services://?action=download-manifest&url=https://xxxxxx/plist/xxxxx
docipapk-server
運用itms-services從閱讀器發布IOS App遇到的問題總結
IOS9AdaptationTips
IOS9企業部署分發無法裝置問題深化處理
以上就是對靜態生成ios plist的辦法的相關引見,希望對您學習ios有所協助,感激您關注本站!
【靜態生成ios plist的辦法】的相關資料介紹到這裡,希望對您有所幫助! 提示:不會對讀者因本文所帶來的任何損失負責。如果您支持就請把本站添加至收藏夾哦!