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
Question marked as Top-ranking reply

Jan 12, 2018 2:01 AM in response to michelfromgenève

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

Mar 13, 2018 6:20 AM in response to schpanky

I just had the same problem in the 10.13.3 beta. The /var/folders trick cleared it up. This is an awfully hottible bug to be shipping out to users. Why doesn't the Finder or some other system service have a fallback somewhere to clear those cache directories in this sort of situation?


I've never run into something so horrifying and seemingly random on an otherwise reliable machine.

Dec 23, 2017 1:16 AM in response to Linc Davis

Hello Linc,

This is Michel from Geneva, working on 10.13.2, MacbookPro. I've got the same issue for the 2nd time. Two months ago, I deleted my user account (from admin account), re-create it and the issue was resolved. Today, I'm unable to delete the user account. So, I followed the steps you've proposed but the different folders in : /var/folders can't be deleted ("fichiers utilisés par le système et ne peuvent être supprimés").


My two questions are :

1. Is your answer (01.26. 2016) still up to date with High Sierra ?

2. How could I delete these folders ?


Thanks for your help,


Michel

Oct 26, 2017 8:46 AM in response to Linc Davis

Hello,

I followed your instructions and it worked for me but now I can't delete one of the files that I moved to the Trash. I tried renaming the file with '-old' and I tried unlocking permissions for the file and it's subfolders. I've also tried starting in Safe Mode and emptying trash but I always get the same message that the file can't be deleted because the file is in use.

Any ideas on how I can delete these remaining old cache files? See screenshot for the file in the trash.

User uploaded file

Apr 5, 2018 11:08 AM in response to frasiatthebeach

Wow, this is the only thing that has worked for me so far.

I am running El Capitan on a MacMini (Late 2012). This moring I finished installing the security update 2018-002 (as 001 failed to install everytime due to file not recognised or something like that. Really frustrating and could not find a way to make it work). After the update, the mac was extremely slow and I was not even able to watch any of my apps icons (only the standard app icon) and not even able to start the terminal from my normal boot up, as every time I've received the same message "you can't open the application 'terminal' because it may be damaged or incomplete'.

So, after testing this solution, it was all fixed. Thanks a million!!

Apr 25, 2018 5:51 PM in response to Linc Davis

Thank you, Linc Davis, for a good solution.

Actually, I had to open folder by folder and delete file by file once the system was preventing me to delete the subfolders, just because of system using or something, and even that way, some files was just unable to be deleted, and I just let them there... But after delete everything I could and empty the Trash, everything worked fine after a old and good restart.


Thank you once again.

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.