brew install mitmproxy
mitmweb --listen-port 9090
In you Wifi settings, change the Http Proxy part.
Open http://mitm.it with safari and follow the guide on the images, after download the file, iPhone will tell you to install the certification file manually .
After the installation, you need to enable the certification file in Settings-> General -> About, at the bottom of the page, you will find Certificate Trust Setttings, enable the mitm inside this page.