"Xcode" is corrupt and cannot be opened. You have to move it to the basket

Installed XCode 6 on Mavericks . He is not running. Updated OS to Yosemite 10.10 : now the launch of Xcode.app (installed via * .dmg) ends with the error message "Xcode" is damaged and can't be opened. You should move it to the Trash. "Xcode" is damaged and can't be opened. You should move it to the Trash. Updated to XCode 6.0.1 through the App Store. Not lucky yet. Same error message. Anyone with a fix?

enter image description here

+7
source share
6 answers

I experienced this error with any newly added (all) macOS Sierra application.

The only solution that worked for me was to execute:

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

You can also use the following command to β€œrestore” all applications:

 xattr -rc /Applications/*.app 
+21
source

Several times lower than the parameters

  • Open system settings
  • Click "Security & Privacy"

enter image description here

Allow downloading applications containing only 2 options "AnyWhere" is missing to open the terminal and add the line below

 sudo spctl --master-disable 

enter the system password. Now you will exit System Preferences and open System Preferences / Security and Privacy / General again. Now the "AnyWhere" option will be available. Hurrah. You did it.

Problem resolved hope this works for you.

+7
source

I know this is an old question, but if you are like me and absolutely want to install Xcode from the DMG and not from the App Store, there is a way inspired by this post from Will Lowe that talks about installing an unsigned application.

  • Set DMG as usual (double click, drag down)
  • Open system settings
  • Click "Security & Privacy"
  • Adjust the setting "Allow applications downloaded from:" to "Anywhere"
  • Open xcode
  • Be patient while he checks and opens

You only need to do this the first time you open Xcode, so after completing Xcode, you can change your security settings to their original value.

+3
source

If you trust the people from whom you download things, you can bypass this warning by setting "Settings"> "Security and privacy" to

Allow downloading applications: Anywhere

+2
source

I just experienced this from Xcode 6.1.1 on Yosemite, except that it only happened when creating and running in the simulator - when the application starts, Xcode will crash and the panel will say β€œXcode is corrupted. Uninstall it and download it again from the app store "

I decided to do the following:

  • Delete project derived data and completely clear
  • Remove the application from the simulator and exit the simulator
  • Reboot

In any case, just in case, this will help the new visitor to this question :)

+1
source

I found this solution useful and follow these steps:

  1. sudo spctl --master-disable this command in the terminal sudo spctl --master-disable it may ask your user password.
  2. Go to "System Preferences" β†’ "Security and Privacy" β†’ "General" tab β†’ check the "Everywhere" checkbox below

Hope this helps someone.

0
source

Source: https://habr.com/ru/post/1204954/


All Articles