ProxymanApp / Proxyman

Modern. Native. Delightful Web Debugging Proxy for macOS, iOS, and Android ⚡️
https://proxyman.io
5.64k stars 187 forks source link

Install certificate for Xcode Previews #1568

Open auramagi opened 1 year ago

auramagi commented 1 year ago

Description

Add ability to install root certificate for simulators that are used for Xcode Previews.

simctl tool supports having discrete sets of simulators. Xcode Previews use this feature to maintain a "previews" set of simulators. By using the set option we can select which simulator set gets used for a command.

We can use the following command to manually install the certificate while a live preview is shown:

xcrun simctl --set previews keychain booted add-root-cert path/to/Certificate.pem

Why this feature/change is important?

Inspecting traffic in Xcode Previews now requires some manual certificate juggling, but it would be better for Proxyman to support this in the UI.

NghiaTranUIT commented 1 year ago

Thanks for the suggestion 🎉

I would add the Xcode Previews into the iOS Simulator Setup Guide, under the Advance Cog button.

NghiaTranUIT commented 1 year ago

You can try this Beta build: https://download.proxyman.io/beta/Proxyman_4.3.1_Support_Install_to_Xcode_Preview.dmg

Screenshot 2023-03-06 at 21 28 41
auramagi commented 1 year ago

You can try this Beta build

It seems to work great. I think a cog button is a reasonable place to put this feature.

Really impressed by the fast issue turnaround 👍