El Capitan: You can't open the application 'app name' because it may be damaged or incomplete

Ran into this multiple times. After initially upgrading to El Capitan 10.11.2, after logging into my main (admin) account, I could not open any applications, and received the following error:


"You can't open the application 'app name' because it may be damaged or incomplete."


I could not open "Activity Monitor", "System Preferences", "Finder", or anything (either system provided, App Store, or other). The icons would revert to the default application icon. Other users had no problem with the same apps.


After freaking out, I found a solution: go to another admin account, delete the old user account, and re-add it. This fixes the problem for that user; it apparently rebuilds the user identity information for that user, while leaving their home folder (and preferences, documents, keychain, etc) alone. iCloud information has to be re-entered, but it's trivial. After the user delete and re-add, I was able to run those applications.


When I upgraded to 10.11.3, the same thing happened, but to 3 accounts. I was able to fix this via the Guest account - i.e. I was still able to authenticate as an admin, but I couldn't login and run anything.


El Capitan removed permissions repair; I believe it can be done at the recovery console, but I shouldn't have to do that.


Any idea why this keeps happening?


Searching for the above error message usually is specific to App Store applications or other applications, not to things like "Activity Monitor" and "System Preferences".

iMac, OS X El Capitan (10.11.3)

Posted on Jan 26, 2016 1:51 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 12, 2018 2:01 AM

This just happen to me on OS X 10.13.2

I deleted the folders in /var/folders except zz and everything is back to normal. Thanks again Linc Davis.


In my case I couldn't delete the files from OS X because I was getting the error. "File is used by the system, It couldn't be deleted"

In order to fix this I deleted the files from recovery mode.


Steps to do this:

Put your Mac in recovery mode, here is how.

After you select the language, open Terminal.

Utilities -> Terminal


If your disk is not mounted in Volumes, use this tutorial


See what files you need to delete

cd /Volumes/Macintosh\ HD/
ls private/var/folders/

Now you should see the specified folders that you want to backup then delete


Backup the files

cd /Volumes/Macintosh\ HD/Users/ReplaceWithYourUser/Downloads/
mkdir backup
cp -r /Volumes/Macintosh\ HD/private/var/folders/  /Volumes/Macintosh\ HD/Users/ReplaceWithYourUser/Downloads/backup


Delete the folders

cd /Volumes/Macintosh\ HD/private/var/folders/
ls
rm -rf cp
rm -rf dq
rm -rf gh
rm -rf k5
rm -rf sb
ls

Now you should see only the zz folder, if there is another one, just delete it.


That's it


Restart and login

47 replies

Jan 9, 2017 4:07 PM in response to Linc Davis

Linc! You are GREAT man. After 2 months fighting I've just repair my system disk with great difficulty recovered after a disk utility fixing it joined this partition with another one from second disk into one raid partition. I tried EasyRecovery without any success, and only r-studio with the subsequent interference diskwarrior allowed again to see the correct partition, although only on a single disk. But system was very slow and I could't run any application. I still have problem with right recovery of second disk with too partitions: one with Lion {now successfuly recovered], and second: with Mountain Lion. R-Studio allow me to see partition I'm looking for with right size, but when I try to make an image of it it's oversized and after dumping to a new disk - it's useless. I can recover more of my data, but not the whole system partition. Any idea?

And one more question. It seems, that only system applications in dock have default icons (brash and pencil in "A"shape symbol). Do you have any advice to resolve this problem?

Jan 10, 2017 1:32 PM in response to Eric Root

Unfortunately, the icons in the Applications folder are also default.I have this problem with:
App Store, Automator, Calculator, Calendar, Chess, Contacts, Dashboard, Dictionary, DVD Player, Face Time, Font Book, Game Center, Image Capture, Launchpad, Mail, Maps, Messages, Mission Control, Notes, Photo Booth, Photos, Preview, QuickTime Player, Reminders, Stickles, System Preferences, TextEdit, Time Machine,
and with Ulilities folder:
Activity Monitor,
Some of theme work (i.e. Preferences, Time Machine), some not (Gmail, Activity Monitor)

Feb 15, 2017 7:29 AM in response to Linc Davis

Linc, may I ask: what happens if that ”zz” folder is deleted? In fact, I deleted the entire ”folders” folder by mistake in order to fix a startup issue on my sister's computer and that solved it (after I manually created a ”folders” folder from another Mac with the problematic one connected via Target Disk Mode), but now after a couple of days of use she started to get this ”You can't open the applicaion…” error for every app.


Thanks in advance for any help!

Feb 27, 2017 10:32 AM in response to Linc Davis

Linc, thank you so very much for this. I just updated a machine here at work and had this very issue, on my account. Normally, I let our JAMF system do the updates, but there were a few pending and I was restarting for another reason anyway. Kind of embarrassing for the Mac administrator (me!) to be unable to access applications in his own account. Fortunately, there are several other admin accounts I could use to effect the fix.

Again, thanks!

Jan 26, 2016 4:01 PM in response to toddhamilton

Please launch the Console application in any one of the following ways:

☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)

☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.

☞ Open LaunchPad and start typing the name.

The title of the Console window should be All Messages. If it isn't, select

SYSTEM LOG QUERIES ▹ All Messages

from the log list on the left. If you don't see that list, select

View ▹ Show Log List

from the menu bar at the top of the screen.

Click the Clear Display icon in the toolbar. Then take an action that isn't working the way you expect. Select any lines that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.

The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.

Please don't indiscriminately dump thousands of lines from the log into this discussion.

Please don't post screenshots of log messages—post the text.

Some private information, such as your name or email address, may appear in the log. Anonymize before posting.

When you post the log extract, you might see an error message on the web page: "You have included content in your post that is not permitted," or "The message contains invalid characters." That's a bug in the forum software. Please post the text on Pastebin, then post a link here to the page you created.

If you have an account on Pastebin, please don't select Private from the Paste Exposure menu on the page, because then no one but you will be able to see it.

Jan 26, 2016 4:23 PM in response to Linc Davis

I had another user log into the machine. It appears that lsd is crashing. The console indicated many of the following errors:


1/26/16 7:04:49.709 PM ReportCrash[27507]: Saved crash report for lsd[27564] version 728.6 to /Users/username/Library/Logs/DiagnosticReports/lsd_2016-01-26-190449_machine.cr ash


Based on what I read, lsd is used for application launching, which seems consistent with the behavior of being unable to launch any applications. I looked at other user accounts that had previously experienced similar problems, and they had the same crash files; the timestamps were consistent with the time the issue was happening. I looked at one account I know has not been used since the upgrade, and it does not have any crash reports.


The following sequence of events is repeated several times in the log when this situation was occurring:


1/26/16 7:05:00.374 PM com.apple.xpc.launchd[1]: (com.apple.lsd[27568]) Service exited due to signal: Segmentation fault: 11

1/26/16 7:05:00.374 PM Finder[27517]: LaunchServices: disconnect event received for service com.apple.lsd.modifydb

1/26/16 7:05:00.374 PM CoreServicesUIAgent[27563]: LaunchServices: disconnect event received for service com.apple.lsd.mapdb

1/26/16 7:05:00.374 PM Finder[27517]: LaunchServices: disconnect event received for service com.apple.lsd.mapdb

1/26/16 7:05:00.374 PM CoreServicesUIAgent[27563]: LaunchServices: disconnect event received for service com.apple.lsd.modifydb

1/26/16 7:05:00.374 PM Dock[27514]: LaunchServices: disconnect event received for service com.apple.lsd.modifydb

1/26/16 7:05:00.374 PM Dock[27514]: LaunchServices: disconnect event received for service com.apple.lsd.mapdb

1/26/16 7:05:00.375 PM diagnosticd[151]: error evaluating process info - pid: 27568, puniqueid: 27568

1/26/16 7:05:00.375 PM Spotlight[27550]: LaunchServices: disconnect event received for service com.apple.lsd.modifydb

1/26/16 7:05:00.375 PM accountsd[27468]: LaunchServices: disconnect event received for service com.apple.lsd.modifydb

1/26/16 7:05:00.378 PM quicklookd[27485]: LaunchServices: disconnect event received for service com.apple.lsd.mapdb

1/26/16 7:05:00.469 PM ReportCrash[27507]: Saved crash report for lsd[27568] version 728.6 to /Users/username/Library/Logs/DiagnosticReports/lsd_2016-01-26-190500_machine.cr ash


Looking at the crash file, I am getting a seg fault:


Process: lsd [26237]

Path: /usr/libexec/lsd

Identifier: lsd

Version: 728.6

Code Type: X86-64 (Native)

Parent Process: ??? [1]

Responsible: lsd [26237]

User ID: 503


Date/Time: 2016-01-26 16:19:45.018 -0500

OS Version: Mac OS X 10.11.3 (15D21)

Report Version: 11

Anonymous UUID: 77677FDF-90EF-8EF1-BCF1-719D4C71BE07



Time Awake Since Boot: 530000 seconds


System Integrity Protection: enabled


Crashed Thread: 3 Dispatch queue: com.apple.lsd.database


Exception Type: EXC_BAD_ACCESS (SIGSEGV)

Exception Codes: KERN_INVALID_ADDRESS at 0x00000001096e19b8

Exception Note: EXC_CORPSE_NOTIFY

Jan 26, 2016 5:21 PM in response to toddhamilton

This procedure will delete certain temporary and cache files. The files are automatically generated and don't contain any of your data. Occasionally they can become corrupt and cause problems such as yours.

Please back up all data.

Triple-click anywhere in the line below on this page to select it:

/var/folders

Right-click or control-click the highlighted line and select

Services Open

from the contextual menu.* A folder with the odd name "folders" should open.

Inside "folders" are several subfolders, each with a two-character name. Drag all the subfolders except the one named "zz" to the Trash. Don't delete the subfolder named "zz". You'll be prompted for your administrator login credentials.

Restart the computer and empty the Trash.

*If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select

Go Go to Folder...

from the menu bar and paste into the box that opens by pressing command-V. You may not see what you pasted because a line break is included. Press return.

Jan 26, 2016 5:21 PM in response to Linc Davis

So, there's a number of two-letter directories in there; the contents of which are all owned by a single user.


For instance, there's three directories that have contents owned by me: one has some very old files, one has files that were created between the 10.11.2->10.11.3 updates, and the third has files after the most recent update.


I'm seeing something similar with other users (multiple directories). The one user that has yet to log in to experience the problem has one directory associated with them.


I've taken the surgical approach and rm -rf only those directories with the older files, which I presume are associated with the older accounts (since I ended up deleting and re-adding the accounts to fix this, which I assume generates a new UUID or something for the user, that these files are associated with).


This appears to have worked! Thank you.


I figured there was some "broken" caching associated with the user. Since none of these /var/folders were associated with the Guest account, if this ever happens again, I can log in to Guest, and clean these out as needed.


P.S. I found this reference to /var/folders: http://www.magnusviri.com/OS_X_Admin/what-is-var-folders.html

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

El Capitan: You can't open the application 'app name' because it may be damaged or incomplete

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