Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 8 / Xcode 6 Simulator is not using HTTP Proxy anymore

Tags:

My iOS 8 Simulator is not using my proxy settings anymore (I want to debug with Charles). The rest of the system does. The simulator somehow seems to get direct internet access. Have I missed some new setting?

Caution: this is NO dup of How to use Charles Proxy on the Xcode 6 (iOS 8) Simulator?. I´m not trying to use SSL on the simulator in the first place. My simulator doesn´t even start to use the proxy.

Charles:

Proxy Settings

System:

ConnectionProxy Settings

like image 449
stk Avatar asked Sep 26 '14 11:09

stk


People also ask

How do I enable simulator in Xcode?

Open Xcode and click Menu > Xcode > Preferences > Select Components, and then choose the simulator version you want to download.

What is HTTP proxy Apple?

Use the Global HTTP Proxy payload to specify a proxy for all HTTP traffic to and from an iPhone, iPad, Mac computer, or Apple TV device that's enrolled in an MDM solution.

How do I test my website in Xcode iPhone simulator?

Viewing & Testing. When you're in the simulator, click open Safari, click on the URL bar, and you can paste the testing URL using ^⌘V (Edit > Paste Text), then hit enter.


2 Answers

Restart the simulator between proxy changes

like image 62
Vetsin Avatar answered Oct 04 '22 12:10

Vetsin


This is correct. Proxy settings that are setup on the host are not necessarily usable by the simulated runtime. If your proxy server requires authentication, you will not be able to use it in the iOS Simulator due to the simulator and host not sharing the same keychain. If you rely on this functionality, please file a radar at http://bugreport.apple.com and request an alternative.

Also note that this is discussed in the Xcode 6 Release Notes:

  • iOS Simulator does not support the use of network proxy servers that require authentication. (14889876)
like image 29
Jeremy Huddleston Sequoia Avatar answered Oct 04 '22 12:10

Jeremy Huddleston Sequoia