ios - plist苹果安装包实现
黄舟
黄舟 2017-04-17 14:23:21
0
6
608

哪位知道 ios app如何能支持plist安装。

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(6)
黄舟

This was just finished recently.

Using plist installation is generally a technique used when enterprise-level developer accounts do not need to log in to the APP STORE when publishing iOS device applications.

Preparation:
*An Apple computer running OSX, the latest version of XCODE, used to export ipa and plist

An HTML web page file (telling iPhone how to find itms-services, attached)

An HTTP server (the server that stores the APP is the server that provides ipa traffic)

A cloud storage (take Qiniu Cloud Storage as an example, used to push plist). It is recommended for users to upgrade to the standard version. The operation is very simple

Alternative:
A QR code and a JS script to automatically identify IOS devices


PS:

Since June 2014, online tutorials have become less useful for two reasons:

Starting from IOS7.1, http push plist is no longer easy to use, only https push can be used

Dropbox is dead and needs to be replaced by other cloud storage that supports HTTPS external links. The operation difficulty has been upgraded



Start

Step one:

When using MACBOOK to export ipa, we also get a plist file at the same time as the ipa

Seeing the plist we exported, there are two places that need attention that have been marked in Chinese.

One is the URL and the other is the bundle-identifier

<?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下载地址(比如:http://127.0.0.1/app.ipa)</string>
                </dict>
            </array>
            <key>metadata</key>
            <dict>
                <key>bundle-identifier</key>
    <string>请填上你的开发者证书用户名</string>
                <key>bundle-version</key>
                <string>1.0</string>
                <key>kind</key>
                <string>software</string>
                <key>title</key>
                <string>请填上标题</string>
            </dict>
        </dict>
    </array>
</dict>
</plist>

1. The URL is the location where our ipa is stored. For example, if you have an external server with an IP address of 12.34.56.78 and the ipa is stored in the APP folder, then fill in this place

http://12.34.56.78/app/应用名字.ipa

2. The bundle-identifier is the name you used when applying for the certificate. The format is usually the name of someone.app

3. These two points should be filled in when you use XCODE to export ipa

============================

Step 2:

The purpose of using Qiniu Storage is that it provides us with an https connection

For specific operation steps, please refer to
http://blog.csdn.net/longxibendi/article/details/37601747

After the operation is completed, just copy the generated hyperlink
http://dn-defined space name.qbox.me/application name.plist
Change to
https://dn-defined storage space name.qbox.me/application name.plist

Fill in the following HTML file and add it to the web server for publishing

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>应用名字</title>
</head>
<body>
<h1 style="font-size:80pt">如果点击无法下载安装,请复制超链接到浏览器中打开<h1/>
<h1 style="font-size:100pt">
<a title="iPhone" href="itms-services://?action=download-manifest&url=https://dn-你的空间名字.qbox.me/你的Plist存放位置/你的plist名字.plist">
Iphone Download</a><h1/>
</body>
</html>

Step 3:
For example, the address where you publish this HTML page is

http://12.34.56.78/iphoneAPP.html

Put this generated hyperlink into http://cli.im/url, generate a QR code, and scan it with your mobile phone. This completes the process of publishing the entire enterprise-level APP using Plist.

Welcome to comment if you have any questions.

PHPzhong

http://fir.im

左手右手慢动作

What does your Plist storage location mean in this sentence? . . Can you give an example? ?

Peter_Zhu

I have now set up the https service of my own server, but when I use Safari to open the URL of the ipa, I click install, but it says that it cannot connect to localhost. Do you know why?

左手右手慢动作

I also encountered the problem of being unable to connect to localhost. Did the author solve it? It is convenient to add QQ:2517077936. Thank you

小葫芦

Both of the two people above said that they cannot connect to localhost, so it must be that the address of the link you posted is wrong. The tutorial says that http://12.34.56.78/app/application name.ipa should replace that IP: 12.34.56.78 with your external IP

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template