Marc Betts
How Do I Test That?

How Do I Test That?

iOS Simulator Proxy

Marc Betts's photo
Marc Betts

Published on Jan 3, 2021

1 min read

I Google as hard as I could but never could find a way to set a network proxy for an iOS Simulator. This is where I landed. If there's an easier way I'd love to hear about it.

let configuration = URLSessionConfiguration.default

    configuration.connectionProxyDictionary = [
        "HTTPSEnable": 1,
        "HTTPSProxy": "localhost",
        "HTTPSPort": 8888
    ]
 
Share this