Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Automatically run xattr -r -d com.apple.quarantine "#{target_dir}" after the installation #44

Closed
murphye opened this issue Jul 30, 2022 · 6 comments

Comments

@murphye
Copy link

murphye commented Jul 30, 2022

Trying to install CE 22.2 onto my MacBook Air M1. Install seems to go OK but I cannot run the executable. See the screenshot.

Zip of the bin folder attached.

Screen Shot 2022-07-30 at 10 10 32 AM

bin.zip

Currently using macOS 12.4

@murphye murphye changed the title Executable is "damaged and can't be opened" Java Executable is "damaged and can't be opened" Jul 30, 2022
@murphye
Copy link
Author

murphye commented Jul 30, 2022

java11 binary also has the same problem

@FranklinChen
Copy link

FranklinChen commented Jul 30, 2022

Run

xattr -r -d com.apple.quarantine "/Library/Java/JavaVirtualMachines/graalvm-ce-java17-22.2.0"

@murphye
Copy link
Author

murphye commented Jul 30, 2022

OK. Looks like that fixed it!

I would recommend changing this instruction to also encompass the "damaged and can't be opened" error:

On macOS Catalina, you may get a warning that "the developer cannot be
verified". This check can be disabled in the "Security & Privacy"
preferences pane or by running the following command:
  xattr -r -d com.apple.quarantine "/Library/Java/JavaVirtualMachines/graalvm-ce-java17-22.2.0"

@murphye
Copy link
Author

murphye commented Jul 30, 2022

Also, is it possible for Homebrew to run xattr -r -d com.apple.quarantine "/Library/Java/JavaVirtualMachines/graalvm-ce-java17-22.2.0 automatically?

@murphye murphye changed the title Java Executable is "damaged and can't be opened" Feature Request: Automatically run xattr -r -d com.apple.quarantine "#{target_dir}" after the installation Jul 30, 2022
@murphye
Copy link
Author

murphye commented Jul 30, 2022

Change this issue into a Feature Request to automatically run xattr -r -d com.apple.quarantine "/Library/Java/JavaVirtualMachines/graalvm-ce-java17-22.2.0".

@fniephaus
Copy link
Member

fniephaus commented Aug 4, 2022

We have discussed this problem before (e.g., in #6 and #28). GraalVM bundles are unfortunately not notarized by Apple and thus, users are required to remove the quarantine attribute before use. While it would make for a better user experience, the GraalVM casks do not automatically do this because we'd work around a security measurement for the user which is bad. Instead, the casks mention what to do in the post installation message. That's the best we can do at this point. The correct fix is to get the bundles notarized and we are working on that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants