Member-only story

Setting up proxy for the iOS Simulator

Dunya Kirkali
2 min readMar 29, 2020

Often in an Enterprise environment the internet is shielded of from the office network. In other words, you will not able to be access certain URL’s whilst you’re on your office network.

In our case, our app was trying to parse an RSS feed from an URL that is only accessible through our company’s proxy server (http://proxy-access.company.com:8080).

I knew how to make use of a proxy server in the terminal (setting the http_proxy and https_proxy ENV variables), I also knew how to set it in my system:

System Preferences

Unfortunately neither of these options got picked up by the iOS Simulator. I also tried various other tricks but nothing worked. Until finally, one day, a colleague (Mario Negro Ponzi) taught me how.

It was actually pretty simple. The trick was to set the ENV variables from within Xcode:

Xcode

Edit the main scheme, go to the Run tab and add two new environment variables there: http_proxy and https_proxy and set their values. That’s it!

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Already have an account? Sign in

Dunya Kirkali
Dunya Kirkali

Written by Dunya Kirkali

I'm an engineering manager passionate about empowering engineers to deliver exceptional work through collaboration and innovation.

Responses (4)

Write a response

Working great for me, thanks for this!!

I didn’t have to add http:// for my configuration; the value for my case is more like:

“Companyproxy:80” for http
And “companyproxy:443” for https

I put 80 for both without confirming the correct ports and…

--

This method don't work, please remove the article

--

I tried but don't think it is working
XCode 11.3
Mac OS 10.15.7

--