
正文
IOS以无线方式安装企业内部应用(开发者)
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
请先阅读: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示例内容:
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- array of downloads.-->
<key>items</key>
<array>
<dict>
<!-- an array of assets to download -->
<key>assets</key>
<array>
<!-- software-package: the ipa to install.-->
<dict>
<!-- required. the asset kind.-->
<key>kind</key>
<string>software-package</string>
<!-- optional. md5 every n bytes. will restart a chunk if md5 fails.-->
<key>md5-size</key>
<integer>10485760</integer>
<!-- optional. array of md5 hashes for each "md5-size" sized chunk.-->
<key>md5s</key>
<array>
<string>41fa64bb7a7cae5a46bfb45821ac8bba</string>
<string>51fa64bb7a7cae5a46bfb45821ac8bba</string>
</array>
<!-- required. the URL of the file to download.-->
<key>url</key>
<string>https://www.example.com/apps/foo.ipa</string>
</dict>
<!-- display-image: the icon to display during download.-->
<dict>
<key>kind</key>
<string>display-image</string>
<!-- optional. indicates if icon needs shine effect applied.-->
<key>needs-shine</key>
<true/>
<key>url</key>
<string>https://www.example.com/image.57x57.png</string>
</dict>
<!-- full-size-image: the large 512x512 icon used by iTunes.-->
<dict>
<key>kind</key>
<string>full-size-image</string>
<!-- optional. one md5 hash for the entire file.-->
<key>md5</key>
<string>61fa64bb7a7cae5a46bfb45821ac8bba</string>
<key>needs-shine</key>
<true/>
<key>url</key><string>https://www.example.com/image.512x512.jpg</string>
</dict>
</array>
<key>metadata</key>
<dict>
<!-- required -->
<key>bundle-identifier</key>
<string>com.example.fooapp</string>
<!-- optional (software only) -->
<key>bundle-version</key>
<string>1.0</string>
<!-- required. the download kind.-->
<key>kind</key>
<string>software</string>
<!-- optional. displayed during download; typically company name -->
<key>subtitle</key>
<string>Apple</string>
<!-- required. the title to display during the download.-->
<key>title</key>
<string>Example Corporate App</string>
</dict>
</dict>
</array>
</dict>
</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






