Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

“Xcode” is damaged and can’t be opened. You should move it to the Trash

Installed XCode 6 on Mavericks. It din't run. Updated OS to Yosemite 10.10 : Now Xcode.app (installed through *.dmg) launch fails with error message “Xcode” is damaged and can’t be opened. You should move it to the Trash. Updated to XCode 6.0.1 through App Store. Still no luck. Same error message. Anyone with a fix?

enter image description here

like image 754
danfelabs Avatar asked Oct 17 '14 22:10

danfelabs


2 Answers

Some times in below options

  • Open System Preferences
  • Click on "Security & Privacy"

enter image description here

Allow apps downloaded from contains only 2 options "Anywhere" is missing for that open your terminal and add below line

sudo spctl --master-disable

enter your system password. Now you quit System Preferences and reopen it System Preferences/Security & Privacy/General now "Anywhere" option will be there. Hurrah You have done it.

Problem solved hope it will work for you.

like image 54
Maishi Wadhwani Avatar answered Oct 05 '22 08:10

Maishi Wadhwani


I experienced this error with any new added application under (all) macOS Sierra builds.

The only solution that worked for me was to execute :

xattr -rc /Applications/<faulty application>.app

You can also use the following command to "repair" all applications :

xattr -rc /Applications/*.app
like image 42
Arnaud Nelissen Avatar answered Oct 05 '22 08:10

Arnaud Nelissen