How to use Charles Proxy on the Xcode 6 (iOS 8) Simulator?

后端 未结 13 1162
情书的邮戳
情书的邮戳 2020-12-07 08:38

It seems that the directory for the iOS Simulator has changed. It used to be in ~/Library/Application\\ Support/iPhone\\ Simulator/ and now it\'s in ~/Lib

13条回答
  •  隐瞒了意图╮
    2020-12-07 09:03

    I just tested Charles over Xcode 7 / iOS9 simulator. Just a few pointers I want to add if you're having trouble:

    • Make sure "Enable Mac OS proxy" and "Use HTTP Proxy" are checked under Charles' Proxy | Proxy Settings; and optionally check "Enable Mac OS X proxy at startup" if you don't want to do this step every time you start Charles.
    • If your Automatic Proxy Configuration (and/or Auto Proxy Discovery) is set in your System Preferences | Network, you need to uncheck it lest Charles' Web Proxy (HTTP) and Secure Web Proxy (HTTPS) will not take effect.
    • If your company requires proxy server independent of Charles, you need to manually replicate the settings inside Charles lest they are overridden by Charles and you won't be able to access the internet. Make note of the proxy URL and port numbers before starting Charles. Transcribe these Web Proxy and Secure Web Proxy settings under Charles' Proxy | External Proxy Settings.
    • "Enable SSL Proxying" and add your endpoint on the list, via Charles' Proxy | SSL Proxying Settings.
    • "Install Charles Root Certificate in iOS Simulator" via Charles' Help | SSL Proxying menu.
    • And yeah, make sure Charles is setup and started first before you start the simulator.
    • Finally for now, disable ATS during development until we hear more from Apple.

提交回复
热议问题