Xcode bot安装链接请求超时 [英] Xcode bot install link request time out

查看:122
本文介绍了Xcode bot安装链接请求超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经能够让我的Xcode机器人成功集成并创建一个.ipa文件。我在我的Xcode服务器上安装了一个ssl证书,我可以连接到xcode / bots url。当我通过iPad连接到网址时,我首先会提示我安装证书,但它说它没有以红色验证(参见附件)

I have been able to get my Xcode bot to integrate successfully and create a .ipa file. I have an ssl certificate installed on my Xcode server and I can connect to the xcode/bots url fine. When I connect to the url through an iPad, I am first prompted to install a certificate but it says that it's not verified in red (see attachment)

在设备上安装配置文件后,xcode / bots页面有一个绿色的安装按钮。一旦我点击安装按钮它就永远不会加载应用程序,几分钟后我得到一个无法连接到xx.yy.com

After I install the profile on the device, the xcode/bots page has a green "install" button. Once I click the "install" button it never loads the app and after several minutes I get a "Cannot connect to xx.yy.com"

有关这可能是什么的任何想法?

Any thoughts on what this could be?

推荐答案

https://github.com/mtjddnr/lab/wiki/Xcode-Integration-Server-OTA---Reverse-Proxy-Nginx

Internet - > [443]路由器(端口转发) - > [443] Nginx服务器(具有HTTPS证书) - > [443] Mac Mini(OS X服务器,Xcode服务器)

Internet -> [443] Router (Port Forwarding) -> [443]Nginx Server(Has HTTPS certificate) -> [443]Mac Mini (OS X Server, Xcode Server)

(使用StartSSL证书)

Xcode Server使用20300(HTTP),20343(HTTPS )端口

Xcode Server uses 20300(HTTP), 20343(HTTPS) ports


  1. 输入Xcode Server WEB

  2. 选择Bot

  3. 点击安装按钮

  4. 会要求安装证书,如果第一次。安装并返回网页。

  5. 点击再次安装按钮

  6. 提醒消息无法连接到服务器

  1. Enter Xcode Server WEB
  2. Select Bot
  3. hit Install button
  4. It will ask to install certificate if first time. Install it and go back to webpage.
  5. hit Install button again
  6. Alert message "Cannot connect to server"



OTA如何工作



How OTA works


  1. 当点击安装按钮时,它会导航到 https://< DOMAIN> / xcode / internal / api / integrations /< UNIQUE ID> / install_product

  2. 它将状态302返回到新位置: itms-services://?action = download-manifest& url = https://< DOMAIN>:20343 / api / integrations /< UNIQUE ID> /< RECENT Integrated ID> /install_manifest.plist

  3. itms-services URL Schema调用iOS设备运行安装。

  4. iOS下载 install_manifest.plist 然后基于plist信息,它选择正确的 IPA URL

  5. https://< ; DOMAIN>:20343 / api / assets / token /< RECENT集成ID> /< UNIQUE ID> - < Bot名称> /< Intergation#> /<产品名称&g t; - <设备型号> .ipa

  6. 下载&安装

  1. When hit Install button, it navigates to https://<DOMAIN>/xcode/internal/api/integrations/<UNIQUE ID>/install_product
  2. It returns status 302 to new location: itms-services://?action=download-manifest&url=https://<DOMAIN>:20343/api/integrations/<UNIQUE ID>/<RECENT Integrated ID>/install_manifest.plist
  3. itms-services URL Schema calls iOS device to run installation.
  4. iOS downloads install_manifest.plist then based on plist information, it selects right IPA URL
  5. https://<DOMAIN>:20343/api/assets/token/<RECENT Integrated ID>/<UNIQUE ID>-<Bot Name>/<Intergation #>/<Product Name>-<Device Model>.ipa
  6. Download & Install



分析




  • 在第2步,它返回URL < DOMAIN>:20343 。路由器(或防火墙)未打开端口号20343

  • 此外路径应为 / xcode / internal / api / integrations / not / api / integrations /

  • Analysis

    • On Step 2, it returns URL <DOMAIN>:20343. Port number 20343 is not opened by Router(or Firewall)
    • Also path should be /xcode/internal/api/integrations/ not /api/integrations/
    • 位置: / Library / Developer / XcodeServer / CurrentXcodeSymlink / Contents / Developer / usr / share / xcs / xcsd /

      XCSProxiedAPIBasePath:'/ xcode / api',

      XCSProxiedAPIBasePath:'/ xcode / internal / api',

      // host = host.split(':')[0] +':'+ k.XCSHTTPSPort; //强制通过HTTPS端口的流量

      var basePath = k.XCSAPIBasePath; //连接直接到xcsd,总是


      var basePath = k.XCSProxiedAPIBasePath; //连接直接到xcsd,总是

      这篇关于Xcode bot安装链接请求超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆