Installed XCode 6
on Mavericks
. It din\'t run. Updated OS to Yosemite 10.10
: Now Xcode.app (installed through *.dmg) launch fails wit
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
If you trust the people from whom you are downloading things you can bypass the warning by adjusting your ‘Preferences > Security & Privacy’ to
Allow applications downloaded from: Anywhere
I found this solution helpful and follow these steps:
sudo spctl --master-disable
it may ask your user password.Hope it helps someone.
Some times in below options
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.
hope it will work for you.
I know this is an older question, but if you're like me and absolutely want to install Xcode from a DMG and not from the App Store, there is a way, inspired by this post from Will Lowe that talks about installing an un-signed application.
You only need to do this the first time you open Xcode, so you can change your Security settings back to their original value after Xcode has fully launched.
I have just experienced this with Xcode 6.1.1 on Yosemite, except it only happened when I build and run in the simulator - on app launch Xcode would crash and a panel would declare "Xcode is damaged. Delete it and download again from the App Store".
I did all of the following to solve it:
Anyway just in case this helps a new visitor to this question :)