TravaOpenJDK / trava-jdk-11-dcevm

dcevm-11 built on Travis
Apache License 2.0
403 stars 57 forks source link

Not notarized on macOS #45

Closed brendan-lee closed 3 years ago

brendan-lee commented 3 years ago

Every .dylib file reports the same warning "cannot be opened because the developer cannot be verified" on Big Sur and I have to click "Allow Anyway" for every single file, which is really inconvenient.

Any solutions?

image image
skybber commented 3 years ago

It could be doable, there is -codesign-identity option in temurin-build https://github.com/TravaOpenJDK/temurin-build-dcevm/blob/master/sbin/common/config_init.sh#L221

brendan-lee commented 3 years ago

I'll take a look at it, thank you @skybber 👍

weltonrodrigo commented 3 years ago

Workaround is to

xattr -d com.apple.quarantine ~/Downloads/dcevm-11.0.11+1/

Where ~/Downloads/dcevm-11.0.11+1/ is the place where DCEVM is uncompressed.

brendan-lee commented 3 years ago

Workaround is to

xattr -d com.apple.quarantine ~/Downloads/dcevm-11.0.11+1/

Where ~/Downloads/dcevm-11.0.11+1/ is the place where DCEVM is uncompressed.

It works, really appreciate it! @weltonrodrigo

pgerhard commented 2 years ago

@brendan-lee I had lots of issues using the DCEVM image on MacOS. These were caused by the folder contents not being notarized, however on macOS Catalina when selecting "Allow anyway" the folder is opened but it does not solve the issue. I'd suggest adding the above command line command xattr -d com.apple.quarantine ~/Downloads/dcevm-11.0.11+1/ to the installation instructions for MacOS. What are your thoughts on this?

brendan-lee commented 2 years ago

Great idea, it would be helpful for others who face the same problem 👍

On Dec 8, 2021, at 20:32, Philipp Gerhard @.***> wrote:

@brendan-lee https://github.com/brendan-lee I had lots of issues using the DCEVM image on MacOS. These were caused by the folder contents not being notarized, however on macOS Catalina when selecting "Allow anyway" the folder is opened but it does not solve the issue. I'd suggest adding the above command line command xattr -d com.apple.quarantine ~/Downloads/dcevm-11.0.11+1/ to the installation instructions for MacOS. What are your thoughts on this?