问题
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