美文网首页专注iOS开发iOS小记iOS开发
使用Github发布iOS应用(OTA)

使用Github发布iOS应用(OTA)

作者: pandora的技术博客 | 来源:发表于2016-04-12 19:32 被阅读1441次

OTA (Over The Air)是苹果很早就支持的功能,目的是让企业用户脱离Appstore通过网页来发布app,想要实现OTA发布,首页要购买一个企业证书,价格是$299/年。申请企业证书:https://developer.apple.com/programs/enterprise/

发布流程如下:

1,使用Xcode生成ipa安装包

  • 首先在TARGETS的General配置中,将Bundle Identifier设置为该企业帐号对应的App ID,如com.baidu.XXX;
  • 然后在Build Setting的Code signing一栏,选择企业帐号对应的Distribution证书;
  • 接下来选择Xcode->Product->Archive,即可开始打包了。
  • 生成xcarchive,接下来Export时,需要选择Save for Enterprise Deployment一项,点击next即可导出ipa文件了。
Enterprise

2,将ipa、plist、html文件、icon上传至新建的根目录

首先新建一个空白的github仓库,将打包好的ipa文件及空白install.plist、install.html文件及app Icon图片上传至仓库根目录。这样就有了每个文件在github上的链接地址。

然后配置install.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>https://***/XXX.ipa</string>
              </dict> 
                             
              <dict>
                    <key>kind</key>
                    <string>display-image</string>
                    <key>needs-shine</key>
                    <true/>
                    <key>url</key>
                    <string>https://***/Icon57.png</string>
                </dict>

                <dict>
                    <key>kind</key>
                    <string>full-size-image</string>
                    <key>needs-shine</key>
                    <true/>
                    <key>url</key>
                    <string>https://***/Icon57.png</string>
                </dict>
           </array>
            
            <key>metadata</key>
            
            <dict>
                <key>bundle-identifier</key>
                <string>com.baidu.***</string>
                <key>bundle-version</key>
                <string>1.0.0</string>
                <key>kind</key>
                <string>software</string>
                <key>title</key>
                <string>Hiclub</string>
            </dict>
            
        </dict>
    </array>
</dict>
</plist>

pist文件中需要注意:

  • software-package对应的链接即github上ipa文件所在地址
  • display-image为安装过程中iphone桌面上显示的图标
  • bundle-identifier为打包ipa中所配置的id
  • bundle-version为当前app版本

3,配置install.html文件,用来生成安装页

<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Install</title>
    </head>
    <body>
        <p align=center>
          <font size="10">
            <a style="color:#69DEDA" href="itms-services://?action=download-manifest&url=***/install.plist">点击安装</a>
          </font>
        </p>
    </body>
</html>

install.plist即为该文件在github上的链接地址,然后将全部文件push到github。

4,生成在线安装链接

htmlpreview
由于github上的安装页面install.html无法直接预览,通过一个非常使用的小工具htmlpreview,将install.html原链接转换为可预览的链接,如上图所示。最后用iPhone Safari 打开新生成的链接就可以安装了。

相关文章

  • 使用Github发布iOS应用(OTA)

    OTA (Over The Air)是苹果很早就支持的功能,目的是让企业用户脱离Appstore通过网页来发布ap...

  • 无需App Store,无线发布iOS应用(OTA)

    一、OTA (Over The Air) OTA 是苹果在 iOS4 中新增的一项功能,目的是让企业用户能够在脱离...

  • OTA方式来分发iOS的应用

    OTA分发的实现方式 针对iOS应用分发,需要在服务器里上包括三个文件,来实现OTA方式的分发 1.ipa文件,也...

  • 2018-04-18Google_OTA更新-1

    OTA 更新 正常使用的 Android 设备可以接收和安装系统和应用软件的无线 (OTA) 更新。本部分介绍了更...

  • iOS13来了,可直接在手机上升级

    昨天苹果发布了iOS 13的第二个测试版本(Beta 2),同时用于OTA的描述文件也一同放出,也就是可以直接使用...

  • ionic - iOS 打包&OTA发布

    打包前准备 1)确认网络地址 2)确认版本号 3)确认本地测试通过 对于iOS打包(使用企业级应用),暂未有相关的...

  • iOS OTA内网发布ipa

    公司要求搭建一个iOS的发布的流程,专门用于给测试提供测试包。不使用蒲公英,说是以前就用这个,测试嫌弃下载的慢。。...

  • 2022-10-21

    iOS最新应用上架App Store流程 iOS应用发布流程简要说明 简介:iOS应用上线发布流程一般包含四个部分...

  • 搭建iOS应用OTA服务

    安装Apache并配置https模块,如果已有具备管理权限的https服务器可以忽略这一步 OSX自带的有Apac...

  • iOS企业发布流程

    iOS企业发布流程 企业发布流程博客地址 企业发布流程Github地址 Github附件地址: https://g...

网友评论

本文标题:使用Github发布iOS应用(OTA)

本文链接:https://www.haomeiwen.com/subject/parwlttx.html