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

Sep 4, 2016 9:59 AM in response to toddhamilton

Oh dear. I had this problem too when I did the last OSX software update today. It removed all my files, applictions and utilities.

I followed your advice re deleting myself as a user, logging in as a guest, and then reinstating myself and the result is that all my files, photos, settings etc are gone even though I ticked the box to keep them. It is as though I have started from scratch.

Sep 5, 2016 7:36 AM in response to toddhamilton

Todd

I followed what you did and deleted myself as a user but then came the problem, I am having difficulty reinstating my user account.

I have followed the instructions Apple give for restoring a deleted account (mine from a folder not a disk image), as follows

Restore the home folder from a disk image

  1. In the Finder, open the Deleted Users folder by choosing Go > Go to Folder, entering /Users/Deleted Users, then clicking Go.
  2. Open the disk image file for the deleted user’s home folder. The disk image filename begins with the user’s account name and ends with .dmg.The contents of the home folder appear in a new window.
  3. Hold down the Option key while dragging the small icon in the title bar of the new window to the Users folder. Click Authenticate, then enter an administrator name and password to proceed. The deleted user’s home folder is copied to the Users folder.
  4. Choose Apple menu > System Preferences, then click Users & Groups.
  5. Click the lock icon User uploaded file to unlock it, then enter an administrator name and password.
  6. Click the Add button User uploaded file below the list of users.
  7. Click the New Account pop-up menu, then choose a type of user.
  8. Enter a full name for the user.An account name is generated automatically.
  9. If necessary, edit the account name so it matches the name of the deleted user’s home folder.
  10. Enter a password for the user in the Password and Verify fields, then enter a hint to help the user remember the password.
  11. Click Create User.
  12. Click Use Existing Folder.

Restore the home folder from a saved folder

  1. In the Finder, open the Users folder by choosing Go > Go to Folder, entering /Users, then clicking Go. The deleted user’s home folder is in the /Users folder, and its name is the same as the user’s account name, followed by (Deleted).
  2. Rename the deleted user’s home folder by removing (Deleted), so that the folder name exactly matches the account name of the deleted user. You may be asked to enter your administrator name and password before you can rename the folder.
  3. Follow steps 3 through 12 of “Restore the home folder from a disk image,” above.

But have two problems. The first is that I cannot understand what step 3 involves as my deleted users folder is already in the users folder. But more problematic is that step 12 never appears. What happens is that a duplicate users account is created with the same name as my deleted users account and, of course, when I log in using this new duplicate account it contains no files, documents, photos or films.

All these "missing" items I can see are there under the original users folder. I tried copying them over to the new duplicate account but that takes me way past my storage limit as it involves about 150gb and I would rather not clutter up my storage with a duplicate set of files.

What am I doing wrong?

Sep 5, 2016 7:44 AM in response to octavia2004

If you kept the user folder where it was, you will not have a disk image, so step 3 is unnecessary.

The old user's home folder should already be there inside /Users - let's say the old user had a short name 'octavia': then the home folder should remain where it always was, /Users/octavia


For step 12 to work you have to give the user you are creating the exact same short name matching the old user (and therefore matching the name in the old user's home folder) - so call it 'octavia' (or whatever it was in the first place).

Sep 5, 2016 8:10 AM in response to Luis Sequeira1

Luis

Thanks. I did that, using the exact same name, having removed "Deleted" as item 2 of the Apple instructions say. But no "Use existing folder" option appears and I end up with two user accounts with identical names though one is my original account and the there is a new one and no way to add my original account back into "Users and Groups" using Systems Preferences.

Sep 5, 2016 9:14 AM in response to Luis Sequeira1

That is what I thought too but there were! I at last solved the problem by changing the name of the original deleted user (to Octavia you will be amused to know!) and then using that name not only for the Account Name but also for the Full Name when creating a "new user" account. That did the trick and brought up the "Use existing folder" option. I then deleted the "phantom" user account. All now good. Thanks for your help.

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.