trakt/Plex-Trakt-Scrobbler

macOS Catalina: Unable to import playhouse.apsw_ext (apsw.so completely unsigned)

Opened this issue · 6 comments

This plugin hasn't worked since I updated to macOS Catalina. Looking at the error log, it looks like the binaries aren't codesigned, which is required starting in Catalina.

Relevant part of the error message:

code signature in ([...]/apsw.so) 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.

Here's the full error message:

2019-11-28 23:35:46,394 - plex_database.core.database      (10da67dc0) :  ERROR (plex_database.core.database:17) - Unable to import "playhouse.apsw_ext": dlopen(/Users/username/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.plugins.trakttv/Libraries/MacOSX/x86_64/ucs2/apsw.so, 2): no suitable image found.  Did find:
	/Users/username/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.plugins.trakttv/Libraries/MacOSX/x86_64/ucs2/apsw.so: code signature in (/Users/username/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.plugins.trakttv/Libraries/MacOSX/x86_64/ucs2/apsw.so) 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.

Just tried manually codesigning the apsw.so file:

codesign -f -s "Apple Development: [name]" apsw.so

And the error message has changed to this:

code signature in ([...]/apsw.so) not valid for use in process using Library Validation: mapping process and mapped file (non-platform) have different Team IDs

@airdrummingfool did you ever find a solution for this?

@nambrosch unfortunately not. I'd guess that it needs to be signed by the same entity that signed Plex on MacOS.

thanks, i tried the same thing as you with the same results and obviously can't sign the binaries as plex, so the trakt bundle will no longer work after the upgrade to catalina.

I guess we can just use docker plex, until this is resolved?

chances are it won't be resolved for macos. have a look at https://github.com/Taxel/PlexTraktSync