Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Library Validation: mapped file has no cdhash (in Mac OS X Catalina 10.15.1) #112

Open
frflores11 opened this issue Feb 17, 2020 · 2 comments

Comments

@frflores11
Copy link

frflores11 commented Feb 17, 2020

I'm getting this error when trying to activate the add-on on my Mac OS X kodi... the relevant part of the kodi.log is this:

NOTICE: ADDON: xbmc.webinterface v1.0.0 installed
2020-02-17 18:44:34.972 T:4604845504 WARNING: CGUIMediaWindow::OnMessage - updating in progress
2020-02-17 18:44:35.069 T:123145323524096   ERROR: Unable to load /Users/fflores/Library/Application Support/Kodi/addons/pvr.mythtv/pvr.mythtv.5.10.15.dylib, reason: dlopen(/Users/fflores/Library/Application Support/Kodi/addons/pvr.mythtv/pvr.mythtv.5.10.15.dylib, 1): no suitable image found.  Did find:
                                            	/Users/fflores/Library/Application Support/Kodi/addons/pvr.mythtv/pvr.mythtv.5.10.15.dylib: code signature in (/Users/fflores/Library/Application Support/Kodi/addons/pvr.mythtv/pvr.mythtv.5.10.15.dylib) 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.
                                            	/Users/fflores/Library/Application Support/Kodi/addons/pvr.mythtv/pvr.mythtv.5.10.15.dylib: stat() failed with errno=84
2020-02-17 18:44:38.356 T:123145323524096   ERROR: UpdateAddons: Failed to create add-on MythTV PVR Client, status = 5
2020-02-17 18:44:56.472 T:123145322373120 WARNING: DARWINOSX: underflow (0 vs 4096 bytes)

Is there any workaround to deal with this issue?

@janbar
Copy link
Member

janbar commented Feb 24, 2020

In my opinion, it is a new feature of osx 10.15 which requires signed binary.
you could googling to disable it.

@frflores11
Copy link
Author

frflores11 commented Mar 21, 2020

Thank you Janbar,
You're indeed correct!.. it's a notarization problem since the shared library is not notarized... it's not straightforward to solve given that the kodi binary (the release version) is in fact signed, contrary to the pvr.mythtv.5.10.15.dylib object...
The proper way to solve it is through a "synchronization" between the teams compiling kodi and the plugin (or both use notarization or none uses it, ... today there is a mismatch; or the other option is to use an entitlement in kodi's building process, basically saying "do not check for notarization in the libraries used")...

The workaround that I found that might be useful for others with this problem is to use not the kodi release version but one of the nightly build (that are not using notarization) than can be found here:

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

No branches or pull requests

2 participants