Spotlight Importer fails on Mojave with SIP enabled. Code signature error "not valid for use in process using Library Validation: mapping process is a platform binary, but mapped file is not"

Originator:Greiner.Mike
Number:rdar://44973640 Date Originated:2018-10-03
Status:Open Resolved:
Product:macOS + SDK | Spotlight Product Version:10.14 (18A391)
Classification:Other Bug Reproducible:Yes
 
Summary:
Spotlight Importer fails on Mojave with SIP enabled. Code signature error "not valid for use in process using Library Validation: mapping process is a platform binary, but mapped file is not"

This affects the production version of Evernote (version 7.5)

The importer works as expected if SIP is disabled

Steps to Reproduce:
* Ensure that SIP is enabled
* Launch Evernote
* Create a new account or sign in with an existing one
* Create a few notes with unique or distinct titles
* Test the Spotlight Importer by running:
mdimport -g <path/to/importer> -d2 <path/to/external/record>

Expected Results:
mdimport should output at least a kMDItemTitle attribute for the given record

Actual Results:
No title attribute is output. An error similar to the following is observed in the console:

<path/to/importer>: code signature in (<path/to/importer>) not valid for use in process using Library Validation: mapping process is a platform binary, but mapped file is not

Version/Build:
macOS 10.14 (18A391) 

Configuration:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!