Mac修改文件权限:You don’t have permission to save the file

来源:互联网 发布:递归算法经典实例 java 编辑:程序博客网 时间:2024/05/22 13:01

Mac修改文件权限:You don’t have permission to save the file

时间:2015-04-23 01:47:00      阅读:3400      评论:0      收藏:0      [点我收藏+]

标签:log   com   代码   src   http   si   文件   it   la   

1、从互联网上或者其他途径拿过来的工程代码,往往会报下面的提示:

 

  (1)打开文件的时候出现窗口提示You don’t have permission to save the file “project.xcworkspace” in the folder “****.xcodeproj”.
  (2)进入Xcode时出现窗口提示Could not add write permission to the file because you do not own it. Try modifying the permissions of the file in the Finder or Terminal.
而且会让你去选择是否locked,选择后提示不能unlocked,如下:

 

 

技术分享

提示没有写权限,并让你试图去finder或者终端中修改它。

2、参考解决方案如下了:

选中工程文件夹点右键,在 “显示简介"——>"共享与权限"——>"-+"号。 添加本用户(就是你登录的那个账号),授予读写权限,并点击下方的设置符号选择"应用到包含的项目",操作如下图:

技术分享

技术分享

Mac修改文件权限:You don’t have permission to save the file


0 0
原创粉丝点击