itunesconnect using application loader behind a firewall

后端 未结 10 780
误落风尘
误落风尘 2020-12-01 06:36

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

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

I need to k

10条回答
  •  自闭症患者
    2020-12-01 06:57

    I came across this issue too, when using Fastlane to automate the upload of binaries to 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

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

    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.

    Hopefully that helps someone

提交回复
热议问题