ipa文件通过链接下载安装

mo| 阅读:447 发表时间:2023-09-24 19:01:41 科技智能

原文链接 https://segmentfault.com/a/1190000042579194

1、ipa的下载地址放到plist的文件中,链接指定plist(plist格式见下文)

2、plist的链接要求一定是https的,而且必须是公网ssl,自签名及免费的https不可用。

3、链接格式要求一定是符合苹果规范的,itms-services://?action=download-manifest&url=https://****/***.plist

强调必须是公网ssl的https,其它不符合格式网址会报错,提示域名无法连接。

目前可以使用https测试用的域名:https://raw.githubusercontent.com/           (2018-01-16 测试通过)

具体方法:将plist上传到github上,查看plist内容页面上右上角点击“Raw”

使用该地址链接格式为https://raw.githubusercontent.com/用户名/项目名/master/xxxx.plist

拼接链接:itms-services://?action=download-manifest&url=https://raw.githubusercontent.com/用户名/项目名/master/xxxx.plist

在iphone手机中打开Safari,访问该链接,提示“在"iTunes"中打开链接吗?",点击打开

提示“raw.githubusercontent.com”要安装“XXXXX”,点击安装即可在线下载安装ipa。

.plist格式

<?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://xxxxxxxxxxxxxxxxxxx/xxx.ipa</string>

</dict>

<dict>

<key>kind</key>

<string>full-size-image</string>

<key>needs-shine</key>

<true/>

<key>url</key>

<string>http://xxxxxxxxxxxxxxxxxx.png</string>

</dict>

<dict>

<key>kind</key>

<string>display-image</string>

<key>needs-shine</key>

<true/>

<key>url</key>

<string>http://xxxxxxxxxxxxxxxxxx.png</string>

</dict>

</array>

<key>metadata</key>

<dict>

<key>bundle-identifier</key>

<string>com.xxxx.demo</string>

<key>bundle-version</key>

<string>1.0.0</string>

<key>kind</key>

<string>software</string>

<key>title</key>

<string>XXXX App download</string>

</dict>

</dict>

</array>

</dict>

</plist>


*文章为投稿者独立观点,不代表本站站长的立场
本文由相遇青春-Yn发表并编辑,转载此文章须经作者同意,并请附上出处及本页链接。如有侵权,请联系本站删除。

热门推荐