Vimr: Unable to load parinfer-rust dylib because of code signing

Created on 30 Oct 2019  ·  11Comments  ·  Source: qvacua/vimr

From @adamneilson:

It finds it now but I'm getting an error about code signature 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.

This is only when I use VimR but when running nvim directly within a terminal it works without any issue.

See eraserhd/parinfer-rust#42 . I'm not running VimR personally, but from that issue, it looks like this is affecting several users. My DLL is distributed in source only, so they build it themselves with normal Rust tooling.

EDIT: More info, parinfer-rust is a Vim plugin with a shared library part which is invoked using Vim's libcall().

Most helpful comment

All 11 comments

I did some write-up about this, collected some evidence, and I believe adding the "Disable Library Validation" is the right solution.

https://github.com/eraserhd/parinfer-rust/blob/master/extra-docs/MacOS-Code-Signing.adoc

Hopefully this new prerequisite should solve this issue?
https://developer.apple.com/news/?id=12232019a

I read it as a temporary reprieve, and that the same prerequisites that are causing problems will be in effect Feb 3, though I'm not sure I'm reading it correctly.

I've got the same problem when I use the vim-xkbswitch and airline-xkblayout.

let g:XkbSwitchLib = '/usr/local/lib/libInputSourceSwitcher.dylib'

Hello @qvacua !
Can this issue be addressed if possible? Im a huge huge fan of vimr and trying to use it for clojure development and i got hit by this and its blocking it now.
I am more than happy to contribute this if possible, but im not at all experienced with Swift on XCode. Searching I found https://github.com/opencv/opencv/issues/15645#issuecomment-554495051 and if I could get some help in where to set this I can definitely raise a PR! 😄

I'll try to fix this, but when codesigning and entitlements are involved, it could take a while.

Thanks a lot and kudos for the amazing vimr! 👍

Could you try http://taewon.de/VimR-SNAPSHOT-351.tar.bz2 ? I turned on "Disable Library Validation" for the background Neovim binary.

This WORKS!!
Before
Screenshot 2020-06-23 at 20 01 52
After:
Screenshot 2020-06-23 at 20 01 27
Thanks a ton! can't wait for the release!! 😄

Was this page helpful?
0 / 5 - 0 ratings

Related issues

qvacua picture qvacua  ·  7Comments

tjdoc picture tjdoc  ·  6Comments

romaninsh picture romaninsh  ·  7Comments

pjg picture pjg  ·  8Comments

hobbes3 picture hobbes3  ·  4Comments