ProxymanApp / Proxyman

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

install proxy helper tool, The operation couldn’t be completed. (CFErrorDomainLaunchd error 9.) #716

Open khahux opened 3 years ago

khahux commented 3 years ago

Proxyman version? 2.14.1

macOS Version? 10.15.7

NghiaTranUIT commented 3 years ago

Hey @khahux

Look like your machine disables all Helper Tool service, so Proxyman helper tool could not install.

Ref: https://stackoverflow.com/a/32333522/3127477

Can you help me to print out the file /private/var/db/com.apple.xpc.launchd/disabled.plist

khahux commented 3 years ago

@NghiaTranUIT

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>com.apple.AEServer</key>
    <true/>
    <key>com.tencent.Lemon.uninstall</key>
    <false/>
    <key>com.sangfor.EasyMonitor</key>
    <false/>
    <key>homebrew.mxcl.opentsdb</key>
    <false/>
    <key>com.apple.ftpd</key>
    <true/>
    <key>com.apple.mdmclient.daemon.runatboot</key>
    <true/>
    <key>com.tencent.Lemon.listen</key>
    <false/>
    <key>homebrew.mxcl.mongodb-community</key>
    <false/>
    <key>com.apple.bootpd</key>
    <true/>
    <key>com.paragon.NTFS.launch</key>
    <false/>
    <key>homebrew.mxcl.redis@4.0</key>
    <false/>
    <key>com.bjango.istatmenusdaemon</key>
    <false/>
    <key>com.apple.ftp-proxy</key>
    <true/>
    <key>com.tencent.LemonDaemon</key>
    <false/>
    <key>com.proxyman.NSProxy.HelperTool</key>
    <true/>
</dict>
</plist>
NghiaTranUIT commented 3 years ago
<key>com.proxyman.NSProxy.HelperTool</key>
    <true/>

Yay, it's disabled from your macOS.

Please try to delete this line. Restart the machine and try to install the Helper Tool again 🙌

khahux commented 3 years ago

@NghiaTranUIT 可以了,thx!

sudo launchctl enable system/com.proxyman.NSProxy.HelperTool
NghiaTranUIT commented 3 years ago

Glad to know that it works for you 🎉

Cairsimod commented 3 years ago

很高兴知道它对您有用 🎉

oh my god!how fucking amazing it is! I cannot understand why but it works!and i do not find any others ways to work it.

NghiaTranUIT commented 3 years ago

Not sure why some OS blocks the Helper Tool by default, it will be fixed as soon as we unblock it 👍

NghiaTranUIT commented 2 years ago

To anyone, who has error CFErrorDomainLaunchd with code is 2. Here is the solution 👍

Credit to Dan

for whatever reason the helpertool plist in /Library/LaunchDaemons was owned by my user account, not root. 

No idea how that would have happened but more importantly switching the owner back to root and restarting allowed everything to load with the expected privileges so the update worked as expected once I opened proxyman