1. 程式人生 > >Mac修改檔案許可權:You don’t have permission to save the file

Mac修改檔案許可權:You don’t have permission to save the file

標籤: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、參考解決方案如下了:

選中工程資料夾點右鍵,在 “顯示簡介"——>"共享與許可權"——>"-+"號。 新增本使用者(就是你登入的那個賬號),授予讀寫許可權,並點選下方的設定符號選擇"應用到包含的專案",操作如下圖:

技術分享

技術分享