[GH-ISSUE #1238] Simulator Doesn't Appear in Apps, Can't Filter Just Simulator Traffic #1232

Open
opened 2026-03-03 19:49:30 +03:00 by kerem · 7 comments
Owner

Originally created by @jshier on GitHub (May 17, 2022).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1238

Originally assigned to: @NghiaTranUIT on GitHub.

I would like to filter the traffic Proxyman sees (proxies) to just the Simulator itself. Unfortunately the Simulator doesn't appear in the Apps filter list, even if apps from the simulator do appear.

On a related note, is it possible to limit Proxyman to only traffic from the Simulator or an app? I really don't need to capture all traffic from my system while Proxyman is running. If not by app, is it possible to limit the proxy to only particular domains?

Proxyman version? (Ex. Proxyman 1.4.3)

3.5.0

macOS Version? (Ex. mac 10.14)

12.4

Steps to reproduce

  1. Run an app in the Simulator.
  2. See app in the Apps sidebar, but not the Simulator itself.

Expected behavior

  1. Simulator is visible in the Apps sidebar so I can filter by only its network traffic.
Originally created by @jshier on GitHub (May 17, 2022). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1238 Originally assigned to: @NghiaTranUIT on GitHub. I would like to filter the traffic Proxyman sees (proxies) to just the Simulator itself. Unfortunately the Simulator doesn't appear in the Apps filter list, even if apps from the simulator do appear. On a related note, is it possible to limit Proxyman to only traffic from the Simulator or an app? I really don't need to capture all traffic from my system while Proxyman is running. If not by app, is it possible to limit the proxy to only particular domains? ### Proxyman version? (Ex. Proxyman 1.4.3) 3.5.0 ### macOS Version? (Ex. mac 10.14) 12.4 ### Steps to reproduce 1. Run an app in the Simulator. 2. See app in the Apps sidebar, but not the Simulator itself. ### Expected behavior 1. Simulator is visible in the Apps sidebar so I can filter by only its network traffic.
Author
Owner

@NghiaTranUIT commented on GitHub (May 17, 2022):

Proxyman did display the iOS app, which is running on the iOS Simulator, not the entire iOS Simulator.

I tested it on iOS 15.4 Simulator and macOS 12.4.

Screen_Shot_2022-05-17_at_09_38_46


On a related note, is it possible to limit Proxyman to only traffic from the Simulator or an app? I really don't need to capture all traffic from my system while Proxyman is running. If not by app, is it possible to limit the proxy to only particular domains?

Unfortunately, there is no way to achieve it since the iOS Simulator automatically uses the system proxy (no option to manually override it)

However, you can achieve it with iOS devices. Here is the step:

  1. Open Proxyman and set up the certificate on your iOS devices (Certificate Menu -> Install for iOS -> Physical device)
  2. Disable the Proxyman Proxy Overridden in Tools -> Proxy Setting -> macOS Proxy
  3. From now, Proxyman won't capture traffic from your Mac, and only capture from your iOS devices.
<!-- gh-comment-id:1128341848 --> @NghiaTranUIT commented on GitHub (May 17, 2022): Proxyman did display the iOS app, which is running on the iOS Simulator, not the entire iOS Simulator. I tested it on iOS 15.4 Simulator and macOS 12.4. ![Screen_Shot_2022-05-17_at_09_38_46](https://user-images.githubusercontent.com/5878421/168717107-e13f6a16-55b8-4ccf-9665-791a572d98df.jpg) ------------------ > On a related note, is it possible to limit Proxyman to only traffic from the Simulator or an app? I really don't need to capture all traffic from my system while Proxyman is running. If not by app, is it possible to limit the proxy to only particular domains? Unfortunately, there is no way to achieve it since the iOS Simulator automatically uses the system proxy (no option to manually override it) However, you can achieve it with iOS devices. Here is the step: 1. Open Proxyman and set up the certificate on your iOS devices (Certificate Menu -> Install for iOS -> Physical device) 2. Disable the Proxyman Proxy Overridden in Tools -> Proxy Setting -> macOS Proxy 3. From now, Proxyman won't capture traffic from your Mac, and only capture from your iOS devices.
Author
Owner

@jshier commented on GitHub (May 17, 2022):

So the Simulator isn't visible to Proxyman at all, as it simply passes network traffic through to the system? Didn't realize it was that transparent.

As for the filtering, perhaps I can just manually hide everything.

<!-- gh-comment-id:1128348693 --> @jshier commented on GitHub (May 17, 2022): So the Simulator isn't visible to Proxyman at all, as it simply passes network traffic through to the system? Didn't realize it was that transparent. As for the filtering, perhaps I can just manually hide everything.
Author
Owner

@NghiaTranUIT commented on GitHub (May 17, 2022):

You might try the Block List with the "Hide, but not block" option to hide your unnecessary traffic.

Screen Shot 2022-05-17 at 09 49 28

Yes, the simulator doesn't actually make a request, it's the app itself. Here is the path of the Alamofire App (on the iOS Simulator):

~/Library/Developer/CoreSimulator/Devices/F29F405D-1EE2-4D39-A92E-6692A7CA6832/data/Containers/Bundle/Application/35EB4567-D49E-47CD-9F16-766DEB9E5ED9/iOS Example.app/iOS Example

Thus, I collect its traffic and put it in iOS Example.app (Get the real name (Alamofire) by parsing the info.plist)

<!-- gh-comment-id:1128351255 --> @NghiaTranUIT commented on GitHub (May 17, 2022): You might try the Block List with the "Hide, but not block" option to hide your unnecessary traffic. <img width="855" alt="Screen Shot 2022-05-17 at 09 49 28" src="https://user-images.githubusercontent.com/5878421/168718281-20a24c49-f6b9-49cf-9f1f-5d9012c9dc8c.png"> ------------- Yes, the simulator doesn't actually make a request, it's the app itself. Here is the path of the Alamofire App (on the iOS Simulator): ``` ~/Library/Developer/CoreSimulator/Devices/F29F405D-1EE2-4D39-A92E-6692A7CA6832/data/Containers/Bundle/Application/35EB4567-D49E-47CD-9F16-766DEB9E5ED9/iOS Example.app/iOS Example ``` Thus, I collect its traffic and put it in `iOS Example.app` (Get the real name (Alamofire) by parsing the info.plist)
Author
Owner

@NghiaTranUIT commented on GitHub (May 17, 2022):

I have an idea, which shows the Simulator with IDF29F405D-1EE2-4D39-A92E-6692A7CA6832, and group all app traffic from this simulator 👍 Thus, it's easier to narrow down the traffic.

<!-- gh-comment-id:1128352023 --> @NghiaTranUIT commented on GitHub (May 17, 2022): I have an idea, which shows the Simulator with ID`F29F405D-1EE2-4D39-A92E-6692A7CA6832`, and group all app traffic from this simulator 👍 Thus, it's easier to narrow down the traffic.
Author
Owner

@ashton-seek commented on GitHub (May 27, 2022):

For the related note, I configure the proxy in the app itself by setting URLSessionConfiguration.connectionProxyDictionary. I've actually got it swizzled in Debug builds so all URLSessions get proxied, this could also be done as an LLDB command too.

<!-- gh-comment-id:1139278126 --> @ashton-seek commented on GitHub (May 27, 2022): For the related note, I configure the proxy in the app itself by setting `URLSessionConfiguration.connectionProxyDictionary`. I've actually got it swizzled in Debug builds so all URLSessions get proxied, this could also be done as an LLDB command too.
Author
Owner

@NghiaTranUIT commented on GitHub (May 27, 2022):

if you set a Proxy byURLSessionConfiguration.connectionProxyDictionary and run it with iOS Simulator, I'm not sure if Proxyman can display as an app. (I've not tested this scenario yet)

At the moment, if you use iOS Simulator, no connectionProxyDictionary, the traffic will go through the Proxyman app via System HTTP Proxy. Then, Proxyman can know which the app is.

<!-- gh-comment-id:1139295455 --> @NghiaTranUIT commented on GitHub (May 27, 2022): if you set a Proxy by`URLSessionConfiguration.connectionProxyDictionary` and run it with iOS Simulator, I'm not sure if Proxyman can display as an app. (I've not tested this scenario yet) At the moment, if you use iOS Simulator, no `connectionProxyDictionary`, the traffic will go through the Proxyman app via System HTTP Proxy. Then, Proxyman can know which the app is.
Author
Owner

@NghiaTranUIT commented on GitHub (May 27, 2022):

@ashton-seek for an alternative solution, you can use Atlantis: https://github.com/ProxymanApp/atlantis

It will capture all traffic and show it as an app on Proxyman. Works with Simulator and physical devices 👍

<!-- gh-comment-id:1139296017 --> @NghiaTranUIT commented on GitHub (May 27, 2022): @ashton-seek for an alternative solution, you can use Atlantis: https://github.com/ProxymanApp/atlantis It will capture all traffic and show it as an app on Proxyman. Works with Simulator and physical devices 👍
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Proxyman#1232
No description provided.