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

Code signature not valid for use in process using Library Validation on MacOS #1858

Closed
rch opened this issue Jan 26, 2020 · 4 comments
Closed
Assignees
Labels
Feature Request Missing Feature/Wrapper Lang: Java Java wrapper issue OS: Mac MacOS
Milestone

Comments

@rch
Copy link

rch commented Jan 26, 2020

What version of OR-tools and what language are you using?
Version: stable/v7.3 (and master a6a7855)
Language: Java

Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)
CP-SAT

What operating system (Linux, Windows, ...) and version?
MacOS 10.15.2

Steps to reproduce the behavior:

  1. make third_party && make java && make test_java

Exception in thread "main" java.lang.UnsatisfiedLinkError:
/or-tools/lib/libjniortools.jnilib: dlopen(/or-tools/lib/libjniortools.jnilib, 1): no suitable image found. Did find: /or-tools/lib/libjniortools.jnilib: code signature in (/or-tools/lib/libjniortools.jnilib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.

I'm using a new laptop.

@Mizux Mizux added Bug Lang: Java Java wrapper issue labels Jan 27, 2020
@Mizux Mizux added this to the v7.6 milestone Jan 27, 2020
@Mizux
Copy link
Collaborator

Mizux commented Jan 27, 2020

Can you provide us the java version you used ?
e.g. java -version

@Mizux
Copy link
Collaborator

Mizux commented Jan 28, 2020

Seems to be related to macOS notarization

Solution could be related to electron-userland/electron-builder#3940 (comment)

@Mizux Mizux added Feature Request Missing Feature/Wrapper OS: Mac MacOS and removed Bug labels Jan 28, 2020
@Mizux Mizux modified the milestones: v7.6, Backlog Jan 28, 2020
@rch
Copy link
Author

rch commented Feb 19, 2020

Sorry for the delay - here's my Java version:

$ java -version
openjdk version "12.0.2" 2019-07-16
OpenJDK Runtime Environment AdoptOpenJDK (build 12.0.2+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 12.0.2+10, mixed mode)

The links you provided look promising. Thanks!

@cmcgann-plenty
Copy link

@rch Did you have success? I am having the same problem but am not able to apply the patterns from that post to the build process for or-tools. How do I get a plist built into the jar file - if that is what I need? And what do I use instead of the electron build scrip if running this using the recommended make system? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Missing Feature/Wrapper Lang: Java Java wrapper issue OS: Mac MacOS
Projects
None yet
Development

No branches or pull requests

4 participants