Capturing network traffic when the application is running on iPhone and connected to xcode

Is there a way to capture network traffic (using an app like Ethereal on Mac) when the app is running on iPhone and connected to xcode

thanks

+5
source share
3 answers

Connect the mac using an ethernet cable. Share your Mac network connection over your AirPort. Attach your iPhone to the ad-hoc network for Mac.

Launch Wireshark or HTTPScoop on your Mac and you can see all the traffic from your iPhone.

I do not know how to do this for a WAN connection. I would be surprised if this is possible.

+4
source

- HTTP, Charles (Mac) Fiddler2 (Windows). wi-fi HTTP-, IP- -. , . ( localhost-only .)

+1

iPhone Wireshark, iTunes. iPhone USB Mac... iTunes iPhone .

enter image description here

UUID, . , UUID, .

: rvictl -s <device-id>

~/.bash_aliases alias mntios='rvictl -s <device-id>' - , UUID , .

As soon as you have the trigger installed on the device. brew install wireshark(see: http://brew.sh )

One of the network adapters should be rvi0- this is the network interface for your iPhone.

Now you can capture packets - double click on it to start capturing.

If you want to filter specific URLs, you can enter a filter, for example: http.request.full_uri contains <string-in-url>to filter requests.

+1
source

All Articles