App can't be opened because it is from an unidentified developer

流过昼夜 提交于 2019-12-17 10:12:47

问题


I installed Mac OS X Mavericks (10.9) yesterday and since then I am not able to start my Eclipse. I am attaching a screenshot of the message I see.

Is there a workaround for this?

I found a solution in Fix the “App can’t be opened because it is from an unidentified developer” Error in Mac OS X.


回答1:


It's because of the Security options.

Go to System Preferences... > Security & Privacy and there should be a button saying Open Anyway, under the General tab.

You can avoid doing this by changing the options under Allow apps downloaded from:, however I would recommend keeping it at the default Mac App Store and identified developers.




回答2:


An easier way to open a document from an unidentified developer, if you know it's safe, is to control-click on the file icon and then select "Open." You will then be given the option of opening it regardless of its unidentified source.




回答3:


Right-click (or control-click) the application in question and choose "Open"




回答4:


You can also use the xattr command as in Stack Overflow question How do I remove the "extended attributes" on a file in Mac OS X?.

Just remove the com.apple.quarantine attribute. It works even if you don't have an administrator account, which can be a plus. After that, the app isn't considered "downloaded" and is therefore not blocked.




回答5:


It is prohibiting the opening of Eclipse app because it was not registered with Apple by an identified developer. This is a security feature, however, you can override the security setting and open the app by doing the following:

  1. Locate the Eclipse.app (eclipse/Eclipse.app) in Finder. (Make sure you use Finder so that you can perform the subsequent steps.)
  2. Press the Control key and then click the Eclipse.app icon.
  3. Choose Open from the shortcut menu.
  4. Click the Open button when the alert window appears.

The last step will add an exception for Eclipse to your security settings and now you will be able to open it without any warnings.

Note, these steps work for other *.app apps that may encounter the same issue.




回答6:


In terminal type the command:

xattr -d com.apple.quarantine [file path here]

Once you click enter it will no longer have that problem. Its annoying that apple adds a quarantine to files automatically. I do not know how to turn this off but there probably is a way...




回答7:


I had the same problem, Eclipse would not start. Found this link and it worked like a charm:

Can't click Menu Bar Items in Eclipse

Java is messed-up on Maverick, need to download and install from here: http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US




回答8:


you can modify the gatekeeper settings by running the following command

To disable to allow apps from anywhere to be installed use the following command in terminal ::

sudo spctl --master-disable

To re-enable use the following command

sudo spctl --master-enable




回答9:


Control Click the application in the Applications folder, not lauchpad. Choose open and then you get an options to actually open it.




回答10:


Right click > Open.

Or, you can go into System Preferences, Security & Privacy, and set the restrictions on opening apps there.




回答11:


Open terminal, go to extracted folder of eclipse and run the following command:

./eclipse -clean



回答12:


Terminal type:

Last login: Thu Dec 20 08:28:43 on console
 ~  sudo spctl --master-disable
Password:
 ~  spctl --status
assessments disabled
 ~ 

System Preferences->Security & Privacy




回答13:


I had got the same error. Because of security reasons, I could not see option for allowing Apps downloaded from Anywhere in System preference-> Security Tab.

I removed the extended attribute from Zip file by below command.

xattr -d com.apple.quarantine [Zip file path] 

And then got below error:- org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct

Resolved it by uninstalling all different versions of java and installed just 1.8.0_231.

Worked finally.




回答14:


Try looking into Gatekeeper. I am not sure of too much Mac stuff, but I heard that you can enable it in there.




回答15:


Open Terminal, Go to the eclipse folder, Run ./eclipse



来源:https://stackoverflow.com/questions/19551298/app-cant-be-opened-because-it-is-from-an-unidentified-developer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!