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、參考解決方案如下了:
選中工程文件夾點右鍵,在 “顯示簡介"——>"共享與權限"——>"-+"號。 添加本用戶(就是你登錄的那個賬號),授予讀寫權限,並點擊下方的設置符號選擇"應用到包含的項目",操作如下圖: