Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

xcode won't run.

While moving HD icon I placed it on top of or near the xcode icon on desktop. now xcode won't run. All hardware tested fine at apple and we reinstalled operating system. also HD icon removed from desk. Activity monitor %150 from xcode. Xcode removed and reinstalled twice. Girl at Genius bar stumped too.


Mac Air OsX 10.8.2

MacBook Air, OS X Mountain Lion (10.8.2)

Posted on Jan 4, 2013 9:31 AM

Reply
43 replies

Jan 19, 2013 9:40 AM in response to xnav

!.) 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

Jan 19, 2013 11:36 AM in response to mitsmada

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

Jan 20, 2013 10:14 AM in response to xnav

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?

Nov 7, 2013 12:27 PM in response to xnav

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


xnav wrote :

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.

xcode won't run.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.