【问题标题】:How to set up proxy for ios simulator?如何为ios模拟器设置代理?
【发布时间】:2020-11-20 01:49:01
【问题描述】:

作为主题。

我在我的 macbook pro iOS 模拟器中运行一个应用程序,我希望通过我的 http 中间件配置我的应用程序的请求。

那么,如何设置iOS模拟器http代理?

我打开我的System Preferences,并配置网络代理,例如:

然后,在我的终端中,我启动了我的 http 中间件:

Web server listening at http://127.0.0.1:8081/
Loading script mitm_script.py
Proxy server listening at http://*:10000

然后,我打开模拟器的应用程序。

但是,我的终端中没有出现日志。

【问题讨论】:

    标签: ios iphone proxy simulator


    【解决方案1】:

    mac 上的模拟器使用 mac 的网络功能。为您的 Mac 设置代理服务器也应该通过该代理路由所有模拟器的流量。

    尝试https://www.howtogeek.com/293444/how-to-configure-a-proxy-server-on-a-mac/ 作为起点。

    【讨论】:

      猜你喜欢
      • 2012-09-08
      • 1970-01-01
      • 2010-12-06
      • 2013-10-23
      • 2016-05-31
      • 2010-10-06
      • 1970-01-01
      • 2011-05-18
      • 1970-01-01
      相关资源
      最近更新 更多