尝试了好多办法,最后idea的官方issue下找到了答案。
- hey I could fix this issue with following instructions:
-
- open this file /Users/{USER_NAME}/Library/LaunchAgents/jetbrains.vmoptions.plist
-
- and then remove all `launchctl setenv "*_OPTIONS"`.
-
- save and close it.
-
- reboot your mac.
-
- now you can use jetbrain 🙂
issue地址:https://youtrack.jetbrains.com/issue/JBR-4296
也就是说删除这个文件里的带有“launchctl setenv”的行,然后保存文件重启mac就行了!