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

久未见 提交于 2020-01-10 08:47:05

问题


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:

System:


回答1:


Restart the simulator between proxy changes




回答2:


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)



回答3:


Do not forget the HTTPS:

  1. Set Web Proxy (HTTP) and Secure Web Proxy (HTTPS)
  2. Restart the simulator after proxy changes


来源:https://stackoverflow.com/questions/26058211/ios-8-xcode-6-simulator-is-not-using-http-proxy-anymore

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!