码迷,mamicode.com
首页 > 移动开发 > 详细

IOS以无线方式安装企业内部应用(开发者)

时间:2016-02-25 23:00:35      阅读:261      评论:0      收藏:0      [点我收藏+]

标签:

请先阅读:http://help.apple.com/deployment/ios/#/apda0e3426d7

操作系统:osx yosemite 10.10.5 (14F1509)

xcode:Version 7.2 (7C68)

1.Product-- >Archive,如果成功则会弹出Organizer--Archives界面,选择Export

技术分享

2.选择“企业部署方式”

技术分享

3.选择相应的账号

技术分享

4.选择“所有设备”

技术分享

5.勾选“生成plist文件”

通过无线方式安装需要用到plist文件,所以必须选择;如果通过iTunes方式安装则不需要。

技术分享

点击“Learn More”可以看到apple对“以无线方式安装企业内部应用”的详细解释:http://help.apple.com/deployment/ios/#/apda0e3426d7

6.上一步勾选了“生成plist文件”,所以此时需要填写相关地址;若未勾选,则不会出现次界面。注意:必须是https的。

技术分享

7.点击"Export"即可完成导出。

8.用文本编辑器打开“manifest.plist”,可以看到刚才填写的信息。

apple官网给出的manifest.plist示例内容:

 1 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 2 <plist version="1.0">
 3 <dict>
 4   <!-- array of downloads.-->
 5   <key>items</key>
 6   <array>
 7    <dict>
 8     <!-- an array of assets to download -->
 9      <key>assets</key>
10       <array>
11        <!-- software-package: the ipa to install.-->
12         <dict>
13          <!-- required. the asset kind.-->
14           <key>kind</key>
15           <string>software-package</string>
16           <!-- optional. md5 every n bytes. will restart a chunk if md5 fails.-->
17           <key>md5-size</key>
18           <integer>10485760</integer>
19           <!-- optional. array of md5 hashes for each "md5-size" sized chunk.-->
20           <key>md5s</key>
21           <array>
22             <string>41fa64bb7a7cae5a46bfb45821ac8bba</string>
23             <string>51fa64bb7a7cae5a46bfb45821ac8bba</string>
24           </array>
25           <!-- required. the URL of the file to download.-->
26           <key>url</key>
27           <string>https://www.example.com/apps/foo.ipa</string>
28         </dict>
29         <!-- display-image: the icon to display during download.-->
30         <dict>
31          <key>kind</key>
32          <string>display-image</string>
33          <!-- optional. indicates if icon needs shine effect applied.-->
34          <key>needs-shine</key>
35          <true/>
36          <key>url</key>
37          <string>https://www.example.com/image.57x57.png</string>
38         </dict>
39         <!-- full-size-image: the large 512x512 icon used by iTunes.-->
40         <dict>
41          <key>kind</key>
42          <string>full-size-image</string>
43          <!-- optional. one md5 hash for the entire file.-->
44          <key>md5</key>
45          <string>61fa64bb7a7cae5a46bfb45821ac8bba</string>
46          <key>needs-shine</key>
47          <true/>
48          <key>url</key><string>https://www.example.com/image.512x512.jpg</string>
49         </dict>
50       </array>
51 <key>metadata</key>
52       <dict>
53        <!-- required -->
54        <key>bundle-identifier</key>
55        <string>com.example.fooapp</string>
56        <!-- optional (software only) -->
57        <key>bundle-version</key>
58        <string>1.0</string>
59        <!-- required. the download kind.-->
60        <key>kind</key>
61        <string>software</string>
62        <!-- optional. displayed during download; typically company name -->
63        <key>subtitle</key>
64        <string>Apple</string>
65        <!-- required. the title to display during the download.-->
66        <key>title</key>
67        <string>Example Corporate App</string>
68       </dict>
69     </dict>
70   </array>
71 </dict>
72 </plist>

 

9.编写html文件,内容如下:

<body>

<a href="itms-services://?action=download-manifest&url=https://git.oschina.net/xxxxxx/raw/master/1.5/manifest.plist">Install App</a>

</body>

10.html文件放到web服务器上面,用户通过扫二维码的方式访问html页面,然后点击“Install App”安装应用。

web服务器不强制https,https和http均可。

关于用户如何安装app和信任app请参见:

http://www.cnblogs.com/pengyan5945/p/5218477.html

IOS以无线方式安装企业内部应用(开发者)

标签:

原文地址:http://www.cnblogs.com/pengyan5945/p/5218481.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!