Xcode bot安装链接请求超时 [英] Xcode bot install link request time out
问题描述
我已经能够让我的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
- 输入Xcode Server WEB
- 选择Bot
- 点击
安装
按钮 - 会要求安装证书,如果第一次。安装并返回网页。
- 点击
再次安装
按钮 - 提醒消息无法连接到服务器
- Enter Xcode Server WEB
- Select Bot
- hit
Install
button - It will ask to install certificate if first time. Install it and go back to webpage.
- hit
Install
button again - Alert message "Cannot connect to server"
OTA如何工作
How OTA works
- 当点击
安装
按钮时,它会导航到https://< DOMAIN> / xcode / internal / api / integrations /< UNIQUE ID> / install_product
- 它将状态302返回到新位置:
itms-services://?action = download-manifest& url = https://< DOMAIN>:20343 / api / integrations /< UNIQUE ID> /< RECENT Integrated ID> /install_manifest.plist
-
itms-services
URL Schema调用iOS设备运行安装。 - iOS下载
install_manifest.plist
然后基于plist信息,它选择正确的IPA
URL -
https://< ; DOMAIN>:20343 / api / assets / token /< RECENT集成ID> /< UNIQUE ID> - < Bot名称> /< Intergation#> /<产品名称&g t; - <设备型号> .ipa
- 下载&安装
- When hit
Install
button, it navigates tohttps://<DOMAIN>/xcode/internal/api/integrations/<UNIQUE ID>/install_product
- 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
itms-services
URL Schema calls iOS device to run installation.- iOS downloads
install_manifest.plist
then based on plist information, it selects rightIPA
URL https://<DOMAIN>:20343/api/assets/token/<RECENT Integrated ID>/<UNIQUE ID>-<Bot Name>/<Intergation #>/<Product Name>-<Device Model>.ipa
- Download & Install
分析
- 在第2步,它返回URL
< DOMAIN>:20343
。路由器(或防火墙)未打开端口号20343 - 此外路径应为
/ xcode / internal / api / integrations /
not/ api / integrations /
- 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/
Analysis
位置: / 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屋!