I'm using the latest React Native (0.18 at the time of this writing) and would like to inspect the network requests my iOS simulator makes.
Using the latest Xcode "instruments" i get this:
. I get the same error on both 10.11 and 10.10 machines, both using the latest Xcode.
我也尝试过使用 Charles,但它无法拦截流量。
Wireshark 能够看到它,但我想要的数据是基于 SSL 的,所以我无法访问它。
作为一名网络开发人员,理想情况下我想在 chrome 调试器中检查网络流量,但我知道这在这种环境中是不可能的,但仅仅查看原始数据包数据对于调试目的来说不够用户友好。
谁知道这个问题的解决方案?
事实证明,使用 Charles 是一个不错的选择。
只需设置 SSL 证书:
帮助 > SSL 代理 > 在 charles 中的 iOS 模拟器中安装 Charles 根证书,开心吧!
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)