I came across some other .jnilib binaries which were detected as .class files and caused issues. It seems there are more Mach-o binary magic variants depending on 32/64 Bit architecture and endianness. Fix is attached. Let me know if I should rather clone the closed TIKA-1169 and attach it there.
Thanks Matthias
Index: tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml (revision 5027b05ea341c0720de4c8bed2ee301bc4759a35) +++ tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml (revision 4792c915bd62d497aae49c1db6ebd1d6d990c349) @@ -244,7 +244,10 @@ <_comment>Java Native Library for OSX</_comment> <magic priority="50"> <match value="0xcafebabe" type="string" offset="0"> - <match value="0xfeedface" type="string" offset="4096"/> + <match value="0xfeedface" type="string" offset="4096"/> + <match value="0xfeedfacf" type="string" offset="4096"/> + <match value="0xcefaedfe" type="string" offset="4096"/> + <match value="0xcffaedfe" type="string" offset="4096"/> </match> </magic> <glob pattern="*.jnilib"/>