Qt Creator “Cannot create file (…) qtcreator.xml” (Mac)

房东的猫 提交于 2020-01-12 14:13:29

问题


Qt Creator starts up with several error messages saying that: "Cannot create file /Users/[username]/.config/Nokia/qtcreator.xml: Permission denied"

And when I exit: "Cannot create file /Users/[username]/.config/Nokia/toolChains.xml: Permission denied"

The program runs fine, but I guess it won't be able to store any config. Anyone know how to fix this?


回答1:


As has been mentioned in the comments, it looks like the Qt installer adds the configuration directories with root as the owner. To fix this, run:

sudo chown -R `id -un`:staff ~/.config/Nokia/



回答2:


this command works great for me. found it in qtcenter forum

find ~/.config/Nokia -print0 | sudo xargs -0 chown $USER

i use this instead for version 2.6.1 Qt 5

find ~/.config/QtProject -print0 | sudo xargs -0 chown $USER


来源:https://stackoverflow.com/questions/7530111/qt-creator-cannot-create-file-qtcreator-xml-mac

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!