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

后端 未结 13 1158
情书的邮戳
情书的邮戳 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:00

    Steps for iOS simulator.

    • Install Charles - download
    • Charles Menu -> Proxy -> Enable Mac Proxy
    • Charles Menu -> Tools -> Proxy -> Proxy Settings -> MacOS -> Check all the check boxes
    • Install Charles Certificate in iOS simulators
    • Charles Menu -> Help -> SSL Proxying -> Install Charles Ceritificate in iOS Simulators
    • Enable Charles Certificate in iOS Simulators
    • iOS Simulators Setttings -> General -> About -> Certificate Trust Settings -> Switch On
    • If traffic does not appear, Run Charles before simulator

    Steps for iPhone/iPad.

    • Open desktop Charles app (Mac/Windows)
    • Goto Charles Menu -> Help -> SSL Proxying -> Install Charles Ceritificate on a Mobile device or Remote browser -> Select -> popup appear with below steps `

      Configure your device to use Charles as its HTTP Proxy on 192.168.0.100:8888, then browser to chls.pro/ssl to download and install the certificate.

    • Goto iPhone settings -> Wifi -> click selected wifi -> Http proxy -> Configure proxy -> select Manual -> Give server as 192.168.0.100 and port as 8888 -> Save

    • Goto iPhone browser -> Load chls.pro/ssl -> It will show below popup `

      The website is trying to download a configuration profile. Do you want to allow this? Ignore button and Allow button

    • Click Allow button -> It will download the profile

    • Goto iPhone Settings -> General -> Profiles -> Downloaded Profile -> Select the Charles Proxy profile -> Install
    • Goto iPhone Settings -> General -> About -> Certificate Trust Settings -> Enable - Charles Proxy CA certificate
    • Now we can track the iPhone app calls in desktop Charles app

提交回复
热议问题