Xcode 4 无法创建目录(权限被拒绝)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20792677/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode 4 unable to create directory (permission denied)
提问by Armin
I am trying to build a plugin using Xcode 4, upon building however I get the following message: /bin/mkdir -p /plugin1.app/Contents error: Unable to create directory: /plugin1.app/Contents (Permission denied)
我正在尝试使用 Xcode 4 构建插件,但在构建时收到以下消息:/bin/mkdir -p /plugin1.app/Contents 错误:无法创建目录:/plugin1.app/Contents(权限被拒绝)
weirdly enough I haven't set any path as given by the error! Any Ideas?
奇怪的是,我没有设置错误给出的任何路径!有任何想法吗?
I have also the following path in my locations (under preferences): /Users/arming/Library/Developer/Xcode/DerivedData
我的位置(在首选项下)还有以下路径:/Users/arming/Library/Developer/Xcode/DerivedData
回答by Z.L.Chen
You may change the file permission setting of the
您可以更改文件的权限设置
~/Library/Application Support/Developer/Shared/Xcode/Plug-ins
~/Library/Application Support/Developer/Shared/Xcode/Plug-ins
folder.
(right click the plug-in folder and select the "Get Info". At the bottom of the panel, there is a section named "Sharing & Permissions". Set privilege of "staff" to "Read & Write")
文件夹。
(右击插件文件夹,选择“获取信息”,面板底部有一个“共享与权限”部分,将“员工”权限设置为“读写”)