5分钟快速构建苹果IPA免费发布服务器

 happyzxb   2019-05-31 19:59   3245 人阅读  0 条评论
在ios的开发中, 通过苹果的各种秘钥加密, 我们会生成一个.ipa文件,这就是我们的应用软件的安装包. 这个文件是能被安装到iphone/ipad上的.
可是,如何才能让不在身边的人安装上这个应用呢?  发微信,不可以, QQ,传过去点击安装,不可以, 发布到苹果市场,不容易通过,周期太长.
到底该如何做? 看下面告诉你答案. 5分钟搞定一个ipa,苹果应用发布服务器. 让所有测试人员可以网上更新

整理必要文件:


1,下载ipa的首页(index.html)

这里我们就写一个下载按钮


<!doctype html>

<html>

<head>

    <meta charset="utf-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <meta name="description" content="">

    <meta name="keywords" content="">

    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>哦靠炫衣</title>

</head>

<body>

    <a href="itms-services://?action=download-

manifest&url=https://achar.coding.me/test/ipa.plist">下载哦靠炫衣ios测试版</a><!--修改这里-->

</body>

</html>

以上内容复制到文本文档,别存为index.html

https://achar.coding.me/test/ipa.plist 是我的服务器的ipa.list的路径, 使用时改为自己的即可.


2,苹果PLIST文件(ipa.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://achar.coding.me/test/okoxy.ipa</string><!--修改这里-->

                    </dict>

                </array>

                <key>metadata</key>

                <dict>

                    <key>bundle-identifier</key>

                     <string>com.okoxy.beihai</string><!--修改这里-->

                     <key>bundle-version</key>

                    <string>1.31.1287</string><!--修改这里-->

                    <key>kind</key>

                    <string>software</string>

                    <key>title</key>

                    <string>哦靠炫衣</string><!--修改这里-->

                </dict>

            </dict>

        </array>

    </dict>

</plist>


以上内容复制到文本文档,别存为ipa.plist

注意修改代码为你的软件信息:

https://achar.coding.me/test/okoxy.ipa, 改为你自己的ipa包的网络下载路径. 可以为任意的网络下载路径.(本服务器的,其他服务器的,https,http等都没有限制),建议使用一个下载速度快的服务器上.com.okoxy.beihai, 改为你的bundle-identifier, 你自己的包名.1.31.1287, 改为你自己的版本号,其实没有太多关系,随便填就行.哦靠炫衣, 改为你的应用的名称.



本文地址:https://zxbblog.com/?id=103
版权声明:本文为原创文章,版权归 happyzxb 所有,欢迎分享本文,转载请保留出处!

 发表评论


表情

还没有留言,还不快点抢沙发?