Proxyman
HomepageDownload
  • Overview
  • Changelog
  • License
  • License Manager
  • Raycast
  • Command-line
  • Security Compliance
  • Proxyman iOS
    • Proxyman for iOS
    • Map Local for iOS
    • Breakpoint for iOS
    • Tutorial for iOS
      • Map Local for iOS Tutorial
      • Breakpoint for iOS Tutorial
  • Debug on Devices
    • macOS
    • iOS Device
    • iOS Simulator
    • tvOS & watchOS
    • Android Device & Emulator
      • Automatic Script for Android Emulator
      • Sample Android Project
    • Firefox
    • Java VMs
    • Python
    • Ruby
    • NodeJS
    • Rust
    • Golang
    • React Native
    • Flutter
    • HTTP Clients
    • Docker
    • ElectronJS
    • NextJS (fetch)
  • Automatic Setup
    • Automatic Setup
    • Manual Setup
    • Troubleshooting
  • Atlantis
    • Atlantis for iOS
  • BASIC FEATURES
    • Proxyman Proxy Helper Tool
    • Request / Response Previewer
    • SSL Proxying
    • Bypass Proxy List
    • Import / Export
    • Content Filter
    • Multiple Tabs
    • Horizontal/Vertical/Window Layout
    • Copy as
    • Custom Previewer Tab
    • Custom Header Column
    • Regex (Regular Expression)
    • Filter JSON Response
    • Highlight by Color and Add Comment
    • Import / Export Settings
    • Multipart Form-Data Previewer
    • JSONPath
    • Customize Toolbar
    • Localization
    • Quick Preview
  • ADVANCED FEATURES
    • Repeat
    • Edit & Repeat
    • Compose new Request
    • No Caching
    • Breakpoint
    • Breakpoint Templates
    • Map Local (File)
    • Map Local (Directory)
    • Map Remote
    • External Proxy
    • Save Session
    • Protobuf
    • WebSocket
    • Clear Session
    • Block List
    • Allow List
    • Charles Proxy Converter
    • Custom Certificates
    • GraphQL
    • Network Conditions
    • Multiple Filters
    • Custom Filters
    • Publish to Gist
    • Reverse Proxy
    • Code Generator
    • Diff
    • Access Control
    • DNS Spoofing
    • SOCKS Proxy
    • Swagger OpenAPI
    • TLS Key Logging
  • Proxyman Windows
    • Install Certificate
    • WSL
  • Scripting
    • Scripting
    • async/await Request
    • Addons
    • Built-in JS Libraries
    • Write your own Addons
    • Snippet Code
    • Environment Variables
  • Troubleshooting
    • Proxyman does not work with VPN apps
    • My Remote Devices (iOS/Android) could not connect to Proxyman?
    • iOS 16 and iOS 17 issues
    • SSL Error from HTTPS Request/Response
    • I could not see any requests from my localhost server
    • I could not see any HTTP traffic from my NodeJS, Python, or Ruby scripts
    • *.local requests do not appear on Proxyman
    • I couldn't see any traffics on Proxyman
    • I couldn't see any requests from 3rd-party network libraries
    • [Breakpoint] Modify Request/Response by Raw Message
    • Could not change Proxyman App Icons
    • Lost data after updating Proxyman app?
    • Proxyman consumes too much RAM & unresponsive
Powered by GitBook
On this page
  • 1. iOS Simulator Setup Guide
  • Xcode Preview (SwiftUI)
  • Manually Install
  • 2. Troubleshooting
  • 1. Unable to install the Certificate
  • 2. Get SSL Error from HTTPS Response
  • 3. Some HTTP/HTTPS Requests are missing from Proxyman
  • Manually Install the Certificate by exporting the certificate
  • Tutorial
  1. Debug on Devices

iOS Simulator

How to set up iOS / iPad Simulator with Proxyman to capture HTTP/HTTPS Requests/Response

PreviousiOS DeviceNexttvOS & watchOS

Last updated 7 months ago

In order to capture the HTTP/HTTPS message from your iOS Simulator devices, please navigate to:

  • Certificate Menu -> Install Certificate on iOS -> Simulators

1. iOS Simulator Setup Guide

Image for: 1. iOS Simulator Setup Guide

It works for iOS, iPadOS, tvOS and watchOS.

The following photo describes three steps:

  1. Install Root Proxyman Certificate on your machine: You can follow the macOS Guide.

  2. Install Proxyman Certificate to all available simulators, which you have opened at least one time.

  3. Reset the Simulator: Proxyman tries to reset all simulators, so it will load the new Certificate.

From Proxyman 2.19.0+, Proxyman uses the simctl command line to perform tasks.

simctl is built-in on your installed Xcode, which is more modern and reliable than the legacy approach (Use Python custom scripts).

This step only installs on Simulators, which you have open at least one time

For instance, if you would like to debug on iPhone X Simulator, please make sure to open the iPhone X Simulator first, then install the Certificate in Step 2

Xcode Preview (SwiftUI)

If you're using Xcode Preview for SwiftUI, you can install the certificate into the Xcode Preview Simulator by following:

  1. Open Xcode with Previewer Mode (SwiftUI).

  2. Open Proxyman -> Certificate Menu -> Install for iOS -> Simulator

  3. Click on the Advanced button -> Install for Xcode Preview

You can read more at: https://github.com/ProxymanApp/Proxyman/issues/1568#issue-1610877870

Manually Install

In Proxyman v4.16.0 or later, you can manually install the certificate to your iOS Simulator in case the Automatic Solution doesn't work.

  1. Certificate Menu -> Install Certificates for iOS -> Simulators

  2. In Step 2, click on the ↓ button (Next to the Prepare Simulators button) -> Install Manually…

  1. Drag and drop the certificate to your iOS Simulator

  1. Open your iOS Simulator -> Setting app -> General -> About -> Certificate Trust Setting -> Find Proxyman CA Certificate and switch it ON

  2. Done

2. Troubleshooting

Image for: 2. Troubleshooting

1. Unable to install the Certificate

If you get errors when clicking on Step 2, please open Xcode -> Preferences -> Location tabs -> Select your Xcode in the Command Line Tools.

2. Get SSL Error from HTTPS Response

  • Opening the Setting app -> General -> About -> Certificate Trust Settings and verifying that Proxyman Certificate is installed and trusted.

If it's not installed:

  • Open the iOS Simulator Setup (Certificate Menu -> Install Certificate on iOS -> Simulator) and click on the 2nd button.

  • Or Try the following step to manually install the Certificate.

3. Some HTTP/HTTPS Requests are missing from Proxyman

Alamofire or URLSession might use the cached response for your request. As a result, the actual request doesn't hit the server. Thus, Proxyman could not capture and display it on the app.

Solution:

  • Disable the cache mechanism on URLSession or Alamofre.

  • Use the No Caching Tool (⌥⌘N)

Manually Install the Certificate by exporting the certificate

Image for: Manually Install the Certificate by exporting the certificate

If you cannot install the certificate, you can manually do it:

  1. Open Proxyman -> Certificate Menu -> Export -> Root Certificate as DER -> Save to Desktop Folder

  2. Open the Simulator drag the certificate and drop it on the Simulator screen

  3. Open Setting app (on the Simulator) -> General -> Device Management -> Select the Certificate -> Install

  4. Setting app -> General -> About -> Certificate Trust Settings and verifying that Proxyman Certificate is installed and trusted.

  5. Done ✅

Tutorial

See detailed steps to debug an application on iOS Simulator with Proxyman

Automatically install the Certificate to iOS Simulators
Install certificate manually
Manually Install the certificate
Make sure you have the Xcode Command Line
Proxyman Certificate is installed and trusted properly