Re: Test spotlight importer reports wrong architecture
"Adam R. Maxwell" <[email protected]> Mon, 07 Feb 2011 07:47:07 -0800
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
On Feb 7, 2011, at 07:28 , Christiaan Hofman wrote: > I am trying to test my spotlight importer for a custom file type. I am using mdimport with the -d option of a file. It does find a correct version of the importer (actually in a Debug build of my app bundle in the build location). However, it says it fails because it "does not match current 64 bit architecture". I do however have an Intel machine, calling it from Terminal.app running in 64 bit mode, and the importer plugin is build for the standard archs (64 bit universal and ppc). I have double checked that the x86_64 bit arch is actually included in the binary, and of course it is. Also, running mdls on the file returns nothing. However Spotlight is able to find the particular file. So what is going on? Are mdimport and mdls broken? How can I test the tests? That question has come up on the Spotlight list also, and no one seems to know (or cares to answer). Personally, I'd guess that it's a Launch Services problem. http://lists.apple.com/archives/Spotlight-dev/2011/Jan/msg00002.html