XCode 12 package fetch behind corporate proxy

Hi,

In my organization we have a corporate proxy for navigation and when a package tries to download a dependency for example from github, from xcode it does not work but in command line I can compile it correctly.

In command line I have git configured with the https proxy and exported the environment variable https_proxy and executing the swift build command resolves the dependencies, downloads and compiles them correctly.

Is there a way to be able to configure the proxy for xcode and to properly download external dependencies?

I've seen the same issue on my configuration which has a corporate firewall.

If you can get the Package.swift established and make changes directly to it, you can go to the terminal and do something like

xcodebuild -resolveDependencies

Here you can control those env variables and make terminal abide by them. Problem still exists around the other item though unfortunately.

I'm creating a ticket for it, you should too.

XCode 12 package fetch behind corporate proxy
 
 
Q