很简单,别害怕
学海无涯,每天学一点新知识,即使是一个很小的技术点,都觉得很开心
1、打包,生成2个证书,使用ExportOptions这个证书
2、将ipa包上传至https服务端,链接如图所示
https://xingyb.oss-cn-hangzhou.aliyuncs.com/ios.ipa
3、修改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">
<array>
<dict>
<key>assets</key>
<array>
<dict>
<key>kind</key>
<string>software-package</string>
<key>url</key>
<string>https://xingyb.oss-cn-hangzhou.aliyuncs.com/ios.ipa</string>
</dict>
<dict>
<key>kind</key>
<string>full-size-image</string>
<key>needs-shine</key>
<true/>
<key>url</key>
<string>http://xingyb.oss-cn-hangzhou.aliyuncs.com/webapp/512.png</string>
</dict>
<dict>
<key>kind</key>
<string>display-image</string>
<key>needs-shine</key>
<true/>
<key>url</key>
<string>http://xingyb.oss-cn-hangzhou.aliyuncs.com/webapp/57.png</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>此处写证书,即打包好的ID</string>
<key>bundle-version</key>
<string>版本号</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>APP名称</string>
</dict>
</dict>
</array>
</plist>
4、将写好的plist上传至服务端,链接如
https://xingyb.oss-cn-hangzhou.aliyuncs.com/ExportOptions.plist
5将链接修改为一个a标签,copy进入safari尝试一下,可以下载即成功
itms-services://?action=download-manifest&url=https://xingyb.oss-cn-hangzhou.aliyuncs.com/ExportOptions.plist
网友评论