iOS如何搭建测试安装服务

2021-10-09  本文已影响0人  Zz7777777

背景

大多数开发工程师找的第三方分发平台,比如大家耳熟能详的[蒲公英分发平台](https://www.pgyer.com)
但是基于产品经理对于安全考虑,对第三方平台是否安全,是否对我们的App产生安全的隐患问题,于是我们就
在内网本地服务器搭建分发平台

How Mac本地搭建Apache服务器

1.搭建Apache服务器的前提

2.搭建Apache服务器

图一.png 图二.png 图三.png 图四.png 图五.png 图六.png

How 无线分发,安装测试ipa

搭建git仓库

图七.png
```
需要将图示部分选中,为了导出manifest.plist文件

```
图八.png 图九.png
```manifest.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://gitee.com/1019459067/testApp</string> (需要跟你git的服务器地址一致)
              </dict>
                 <dict>
                    <key>kind</key>
                    <string>display-image</string>
                   <key>url</key>
                    <string>https://gitee.com/1019459067/testApp</string>
             </dict>
                <dict>
                <key>kind</key>
                <string>full-size-image</string>
                <key>url</key>
                <string>https://gitee.com/1019459067/testApp</string>
            </dict>
        </array>
        <key>metadata</key>
        <dict>
            <key>bundle-identifier</key>
            <string>com.xwh.testApp</string>
            <key>bundle-version</key>
              <string>1.0</string>
                <key>kind</key>
                  <string>software</string>
             <key>title</key>
             <string>testApp</string>
         </dict>
        </dict>
  </array>
</dict>
</plist>

```
图十.png
```
获取地址:https://gitee.com/1019459067/testApp/raw/master/manifest.plist,
这个地址在下载ipa时会用到,而且非常重要!!!后续要用到

```
图11.png
```
<key>kind</key>
 <string>software-package</string>
    <key>url</key>
 <string>http://172.20.108.15/testApp/testApp.ipa</string>
 
 注: manifest.plist中的图片可以自行更新
 
```
上一篇 下一篇

猜你喜欢

热点阅读