myProject is locked for editing and you may not be able to save your changes?

前端 未结 4 611
粉色の甜心
粉色の甜心 2020-12-08 04:32

I get the following error messages when I moved my code from my laptop to my Mac Mini and opened it over there:

myProject is locked for editing and yo

相关标签:
4条回答
  • 2020-12-08 05:02

    Go to the Folder in Finder where the xcode project is and right click -> Get info. The permissions and the bottom should be set to read/write and in my case they were. The trick is to click the settings icon at the bottom and select "Apply to enclosed items". The chmod method shown above doesn't change the permissions of the contents within the folder.

    0 讨论(0)
  • 2020-12-08 05:06

    Have you tried copying the contents like suggested in this answer?: Unable to unlock file for editing in Xcode 4?

    Alternatively you could use the console to set yourself a writing permission on all the files for your xcode project:

    http://www.mac-terminal.com/files-and-folders/permissions/chmod/

    0 讨论(0)
  • 2020-12-08 05:10
    1. go to the folder in finder
    2. right click on folder and click the "Get info"

    1. go down to the bottom and click the lock and write administrator password

    1. now click on the settings icon and press "Apply to enclosed items..."

    0 讨论(0)
  • 2020-12-08 05:10

    Please note that I had to add the recursive command flag and sudo to get it to work for me:

    $ sudo chown -R Roger my_app_folder/*
    

    And:

    $ sudo chmod -R 774 my_app_folder/*
    

    Because I was getting this error:

    chmod: Unable to change file mode on my_app_folder: Operation not permitted

    0 讨论(0)
提交回复
热议问题