如何为ios模拟器设置代理?

问题描述 投票:0回答:1

作为主题。

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

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

我打开我的

System Preferences
,并配置网络代理,如:

https://img.techpowerup.org/200731/proxies.png

然后,在我的终端中,我启动我的 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个回答
0
投票

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

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

© www.soinside.com 2019 - 2024. All rights reserved.