Qt Creator“无法创建文件(...)qtcreator.xml"(苹果电脑) [英] Qt Creator "Cannot create file (...) qtcreator.xml" (Mac)
问题描述
Qt Creator 启动时出现了几条错误消息,内容如下:无法创建文件/Users/[用户名]/.config/Nokia/qtcreator.xml:权限被拒绝"
Qt Creator starts up with several error messages saying that: "Cannot create file /Users/[username]/.config/Nokia/qtcreator.xml: Permission denied"
当我退出时:无法创建文件/Users/[用户名]/.config/Nokia/toolChains.xml:权限被拒绝"
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?
推荐答案
正如评论中提到的,看起来 Qt 安装程序添加了以 root 为所有者的配置目录.要解决此问题,请运行:
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/
这篇关于Qt Creator“无法创建文件(...)qtcreator.xml"(苹果电脑)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!