Previous 1 2 3 Next 41 Replies Latest reply: Nov 7, 2013 12:27 PM by pthomet Go to original post
  • softwater Level 5 Level 5 (5,370 points)

    I'm confused.

     

    There is no such thing as

     

    com.apple.Xcode.plist

     

    in my user prefs (or in the list above), and the instruction to remove

     

    com.apple.dt.Xcode.plist

     

    was given at the beginning of the thread, twice...

  • xnav Level 5 Level 5 (6,635 points)

    Older Xcode versions used com.apple.Xcode.plist.

  • mitsmada Level 1 Level 1 (0 points)

    Oops, I spoke too soon. I get this error message again?

     

    “mx_sw_ch Project” is locked for editing and you may not be able to save your changes. Do you want to unlock it?

    “mx_sw_ch Project” is currently locked because you are not the owner of the file and do not have write permission.

  • softwater Level 5 Level 5 (5,370 points)

    Thanks, but the OP is running Mountain Lion. He needs to be using the latest version of Xcode or for sure there's going to be problem trying to get it to run.

  • xnav Level 5 Level 5 (6,635 points)

    I wasn't suggesting that the OP run an older Xcode version.

  • xnav Level 5 Level 5 (6,635 points)

    What happens if you answer 'Yes' to the unlock message?

  • mitsmada Level 1 Level 1 (0 points)

    !.) Here's the 1st error message I get:

    “mx_sw_ch Project” is locked for editing and you may not be able to save your changes. Do you want to unlock it?

    “mx_sw_ch Project” is currently locked because you are not the owner of the file and do not have write permission.

     

    2.) Here's the message after I press unlock: It repreats about every 5 seconds.

    The file “UserInterfaceState.xcuserstate” could not be unlocked.

    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.

     

    I found that I can still run my programs between warnings.

     

    Xcode  version 4.5.2

  • xnav Level 5 Level 5 (6,635 points)

    Use finder and Ctl-Click on 'mx_sw_ch.xcodeproj' and use Get Info to display the Sharing and Permissions for the file (note, this file is actually a special package directory).  Is this an Xcode project that you need?

  • xnav Level 5 Level 5 (6,635 points)

    If you want to use Terminal, enter this command:

     

    ls -al FOLDER_THAT_HOLDS_YOUR_XCODE_PROJECTS/mx_sw_ch/mx_sw_ch.xcodeproj/project.xcworkspace/xcuserdata/YOUR_ID.xcuserdatad

    You need to substitute something like '/Users/YOUR_ID/myProjects' for FOLDER_THAT_HOLDS_YOUR_XCODE_PROJECTS, and your Mac user ID for YOUR_ID.

     

    The output of  the command should show the UserInterfaceState.xcuserstate file and its ownership like this:

     

    -rw-r--r--  1 myID  myID  13681 Dec  2  2011 UserInterfaceState.xcuserstate
    -rw-r--r--  1 myID  myID  29637 Sep  7  2010 WorkspaceState.xcuserstate
    

     

    Message was edited by: xnav

  • mitsmada Level 1 Level 1 (0 points)

    Tried the Ctl-Click on 'mx_sw_ch.xcodeproj' and changed access to all user read/write but still no luck.

    BTW, this problem happens on all my projects not just mx_sw_ch.xcodeproj.

     

    Sorry, not sure what to substitute in the terminal command. It's getting a little complicated to follow.

     

    It's looking like I need to just switch users and dump this one. Class is starting in a few days and I need to

    focus my attention on SQL. Never thought this problem would be so difficult.

    What do you guys think?

  • xnav Level 5 Level 5 (6,635 points)

    Migrate to the user that works.

  • pthomet Level 1 Level 1 (10 points)

    @xnav : perfect description of the problem, and your solution solved the issue on my side

     

    Jan 4, 2013 12:21 PM (in response to mitsmada)

     

    I had this happen when I accidently told Xcode too open the directory that contains all my projects.  If Xcode works from a new/different user ID then try deleting everything that starts:

    ~/Library/Preferences/com.apple.dt.* under the user experiencing the problem.

Previous 1 2 3 Next