Allow standard user to enable MacOS proxy when use Charles web proxy

zhiguo_zhang
New Contributor

when enable Charles web proxy, as standard user, user will meet the following the permission elevation issue by default

eb4683170b554196bdd290d6b5fb29e8

The follow post-install script can fix this problem

#!/bin/sh pathToScript=$0 pathToPackage=$1 targetLocation=$2 targetVolume=$3 cp /Applications/Charles.app/Contents/Library/LaunchServices/com.xk72.charles.ProxyHelper /Library/PrivilegedHelperTools cp /Applications/Charles.app/Contents/Resources/com.xk72.charles.ProxyHelper.plist /Library/LaunchDaemons chown root:wheel /Library/LaunchDaemons/com.xk72.charles.ProxyHelper.plist /Library/PrivilegedHelperTools/com.xk72.charles.ProxyHelper chmod 744 /Library/LaunchDaemons/com.xk72.charles.ProxyHelper.plist launchctl load -Fw /Library/LaunchDaemons/com.xk72.charles.ProxyHelper.plist exit 0 ## Success exit 1 ## Failure

vendor package didn't include com.xk72.charles.ProxyHelper.plist. you need to install package into your local pc and run Charles one time to create, then you can find and copy it when you re-package it.

1 REPLY 1

yuenhongtang
New Contributor III

Hi, After i created it and install it also allow admin, i still dont see any com.xk72.charles.ProxyHelper.plist. in the contents/Resource

Is there any way to workaround this?