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
原文:http://www.cnblogs.com/niexiaobo/p/4449094.html