ios itunesconnect 使用防火墙后面的应用程序加载器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6069940/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 20:01:49  来源:igfitidea点击:

itunesconnect using application loader behind a firewall

iphoneiosapp-store-connectapplication-loader

提问by karim

I was trying to upload the app store build zip file of my app to app store.

我试图将我的应用程序的应用程序商店构建 zip 文件上传到应用程序商店。

When using behind my office firewall, the TCP/IP connection failed.

在我的办公室防火墙后面使用时,TCP/IP 连接失败。

I need to know what exact port should be open to upload iPhone application by using application loader. So that the port can be opened. Or any other configurations, if you know.

我需要知道应该打开哪个确切的端口来使用应用程序加载器上传 iPhone 应用程序。这样端口就可以打开了。或者任何其他配置,如果你知道的话。

回答by leppie

Go to Preferences, Advanced, select DAV only.

转到首选项,高级,仅选择 DAV。

This will use port 443 (aka HTTPS) for uploading.

这将使用端口 443(又名 HTTPS)进行上传。

There is no way the company will open those ports for me ;p

公司不可能为我打开这些端口;p

回答by InsertWittyName

I had the same problem.

我有同样的问题。

The Application Loader Guide shows the range of IP addresses and ports that need opening.

Application Loader Guide 显示了需要打开的 IP 地址和端口范围。

After following the document I was able to successfully submit a binary for approval.

遵循文档后,我能够成功提交二进制文件以供批准。

https://help.apple.com/itc/transporteruserguide/#/apdATD1E112-D1E1A1303-D1E112A1126

https://help.apple.com/itc/transporteruserguide/#/apdATD1E112-D1E1A1303-D1E112A1126

回答by karim

Seems there is no other way. You have to open all the ports of the firewall when you upload the app. The port shown here may not be consistent.

好像没有别的办法了。上传应用程序时,您必须打开防火墙的所有端口。此处显示的端口可能不一致。

Here is a snapshot of the communication,

这是通讯的快照,

(src ip -        dst ip -           protocol -  src_port > dst_port)

> 10.145.50.51  17.152.249.56       TCP         56358 > 33001
> 10.145.50.51  17.152.249.102      TCP         56373 > 44001 
> 10.145.50.51  17.152.19.127       TCP         56369 > https

System and Network Requirements Application Loader 1.3 requires a minimum OS version of Mac OS X 10.5.3. Note: Because Application Loader is integrated with Xcode you can also deliver your binary directly from Xcode. For more information on this delivery mechanism, review the Distributing Applications section in the iOS Development Guide located in the iOS Dev Center. The following table lists details about the servers Application Loader uses to deliver your application binary files to the App Store. For the best upload experience, verify that all of the ports and IP addresses are accessible.

系统和网络要求 Application Loader 1.3 要求最低操作系统版本为 Mac OS X 10.5.3。注意:由于 Application Loader 与 Xcode 集成,您还可以直接从 Xcode 交付二进制文件。有关此交付机制的更多信息,请查看位于 iOS 开发中心的 iOS 开发指南中的分发应用程序部分。下表列出了有关 Application Loader 用于将您的应用程序二进制文件传送到 App Store 的服务器的详细信息。为获得最佳上传体验,请确认所有端口和 IP 地址均可访问。

The following table lists details about the servers Application Loader uses to deliver packages and application binary files. For the best upload experience, verify that all of the ports and IP addresses are accessible.

下表列出了有关 Application Loader 用于交付包和应用程序二进制文件的服务器的详细信息。为获得最佳上传体验,请确认所有端口和 IP 地址均可访问。

<Server                  IP Address       TCP Port   UDP Port>  
-------                  ----------       --------   ---------
itmsdav.apple.com       17.152.19.125    443        n/a
contentdelivery.itunes.apple.com 
                        17.152.19.127    443*       n/a
vgr101.apple.com        17.152.249.51    33001  33001-33500
vgr102.apple.com        17.152.249.52    33001  33001-33500
vgr103.apple.com        17.152.249.53    33001  33001-33500
vgr104.apple.com        17.152.249.54    33001  33001-33500
vgr105.apple.com        17.152.249.55    33001  33001-33500
vgr106.apple.com        17.152.249.56    33001  33001-33500
vgr107.apple.com        17.152.249.57    33001  33001-33500
vgr108.apple.com        17.152.249.58    33001  33001-33500
vgr301.apple.com        17.172.190.141   33001  33001-33500
vgr302.apple.com        17.172.190.142   33001  33001-33500
vgr303.apple.com        17.172.190.143   33001  33001-33500
vgr304.apple.com        17.172.190.144   33001  33001-33500
vgr305.apple.com        17.172.190.145   33001  33001-33500
vgr306.apple.com        17.172.190.146   33001  33001-33500
vgr307.apple.com        17.172.190.147   33001  33001-33500
vgr308.apple.com        17.172.190.148   33001  33001-33500
sgr201.apple.com        17.152.249.101   44001  44001-44500

Note: Because Apple periodically releases new versions and updates to its software, servers listed in the table may change mid-release.

注意:由于 Apple 会定期发布其软件的新版本和更新,因此表中列出的服务器可能会在发布中期发生变化。

回答by herdsothom

I came across this issue too, when using Fastlane to automate the upload of binaries to App Store Connect.

在使用 Fastlane 自动将二进制文件上传到 App Store Connect 时,我也遇到了这个问题。

The error message was saying that connection timed out.

错误消息是说连接超时。

The reason ended up being that Fastlane's Ruby script was using a java program in the background (visible from nettop), which ignored the proxy settings set in the bash profile or in my case .zshrc

最终的原因是 Fastlane 的 Ruby 脚本在后台使用了一个 java 程序(从 nettop 可见),它忽略了 bash 配置文件中设置的代理设置,或者在我的情况下是 .zshrc

To fix this, add this line in your bash profile:

要解决此问题,请在您的 bash 配置文件中添加以下行:

export JAVA_TOOL_OPTIONS='-Dhttp.proxyHost=xx.xx.xx -Dhttp.proxyPort=xxxx -Dhttps.proxyHost=xx.xx.xx -Dhttps.proxyPort=xxxx -Dhttp.nonProxyHosts=xxx'

export JAVA_TOOL_OPTIONS='-Dhttp.proxyHost=xx.xx.xx -Dhttp.proxyPort=xxxx -Dhttps.proxyHost=xx.xx.xx -Dhttps.proxyPort=xxxx -Dhttp.nonProxyHosts=xxx'

This will force the java runtime to use your desired proxy, and in my case, fixed the issue of fastlane failing to upload builds to App Store Connect.

这将强制 java 运行时使用您想要的代理,在我的情况下,修复了 fastlane 无法将构建上传到 App Store Connect 的问题。

Hopefully that helps someone

希望能帮助某人

回答by schneidexe

With the Application Loader v2.8 I tried to set the delivery mechanism to just DAV but that didn't help on Mountain Lion. Seems the Java-Backend of the Application Loader does not pick-up the proxy settings of the System. You you have to hack them in /Developer/Applications/Utilities/Application\ Loader.app/Contents/MacOS/itms/java/lib/net.properties.

在 Application Loader v2.8 中,我尝试将传递机制设置为 DAV,但这对 Mountain Lion 没有帮助。似乎应用程序加载器的 Java 后端没有选择系统的代理设置。你必须破解它们/Developer/Applications/Utilities/Application\ Loader.app/Contents/MacOS/itms/java/lib/net.properties

See http://blog.schneidexe.de/2013/08/apple-application-loader-und-proxy.htmlfor more details.

有关更多详细信息,请参阅http://blog.schneidexe.de/2013/08/apple-application-loader-und-proxy.html

回答by ml_

I need to set the proxy setting manually. I'm using Xcode 4.6.3 and have to set the proxy settings in "/Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/MacOS/itms/java/lib/net.properties"

我需要手动设置代理设置。我正在使用 Xcode 4.6.3 并且必须在“/Applications/Xcode.app/Contents/Applications/Application\Loader.app/Contents/MacOS/itms/java/lib/net.properties”中设置代理设置

https.proxyHost=
https.proxyPort=
http.proxyUser=
http.proxyPassword=

Then Application Loader.app successfully uploads my app to apple.

然后 Application Loader.app 成功上传我的应用程序到苹果。

回答by SRP-Achiever

In your mac - go to security and privacy - firewall option - click on '+' icon and add 'Application Loader' to that list.

在您的 Mac 中 - 转到安全和隐私 - 防火墙选项 - 单击“+”图标并将“应用程序加载程序”添加到该列表中。

Magic - Uploads works now.

魔术 - 上传现在有效。

回答by alemangui

in my case the problem was related to Java (Application Loader uses Java, and Java does not inherit the Mac's proxy settings). I had to set the proxy settings to Java.

就我而言,问题与 Java 相关(Application Loader 使用 Java,而 Java 不继承 Mac 的代理设置)。我必须将代理设置设置为 Java。

If you are on a Mac OS pre-10.7.5 (more or less) just look for the Java Preferences application via the spotlight. If not, this SO questionspecifies another way of doing so.

如果您使用的是 10.7.5 之前的 Mac OS(或多或少),只需通过聚光灯查找 Java Preferences 应用程序。如果没有,这个 SO 问题指定了另一种方法。

回答by Joze

Try the build and archive option under the build menu and submit it that way. It should work. That way you don't have to use the application loader. And you won't need to zip it either.

尝试构建菜单下的构建和存档选项并以这种方式提交。它应该工作。这样您就不必使用应用程序加载器。你也不需要压缩它。

回答by Daniel Danielecki

Xcode users: check Very Slow App Upload/Communication Failure - Application Loaderif you're using Charles proxyyou might need to close it. If not then try simply to restart your network and/or Mac. Restarting network andMac helped in my case.

Xcode 用户:如果您使用Charles 代理,请检查非常慢的应用程序上传/通信失败 - 应用程序加载程序,您可能需要关闭它。如果没有,那么尝试简单地重新启动您的网络和/或 Mac。重新启动网络Mac 对我有帮助。