Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xcode-users: building spotlight plugin fail



David (repeating this for the list),

I believe the problem is with the install path of your framework my_fw.framework. The loader is looking for it here:

@executable_path/../Frameworks/my_fw.framework/Versions/A/my_fw

The @executable_path is not your plugin but mdimport. Try changing the INSTALL_PATH (in the target build settings under "Installation Directory") of your framework to be relative to the @loader_path, rather than the executable path.

Preston
http://setdoggedly.blogspot.com/


On Jul 29, 2008, at 1:44 PM, David M. Cotter wrote:

so i'm trying to make an OS X spotlight importer.

i want to link with some frameworks, to start "my_fw.framework"
so i've built my plugin and made sure the copy files build step copies it into the bundle's "Frameworks" directory (verified):

then i drag my plugin into ~/Library/Spotlight, lovely

then i test it out but lo:

malkier: test files davec$ mdimport -d2 my_file_type.foo
2008-07-28 17:48:39.611 mdimport[82639:10b] Error loading /Users/davec/Library/Spotlight/MySpotlightThing.mdimporter/Contents/MacOS/MySpotlightThing:  dlopen(/Users/davec/Library/Spotlight/MySpotlightThing.mdimporter/Contents/MacOS/MySpotlightThing, 262): Library not loaded: @executable_path/../Frameworks/my_fw.framework/Versions/A/my_fw
Referenced from: /Users/davec/Library/Spotlight/MySpotlightThing.mdimporter/Contents/MacOS/MySpotlightThing
Reason: image not found
2008-07-28 17:48:39.612 mdimport[82639:10b] Cannot find function pointer MetadataImporterPluginFactory for factory 6D808E84-D0D5-428C-AC2A-5D68A13F7F2D in CFBundle/CFPlugIn 0x11b170 </Users/davec/Library/Spotlight/MySpotlightThing.mdimporter> (bundle, not loaded)
(Warning) ImportPluginLoading: Plugin at url '/Users/davec/Library/Spotlight/MySpotlightThing.mdimporter/' cannot be loaded.  It will not be used.
2008-07-28 17:48:39.643 mdimport[82639:10b] Imported '/Volumes/aedev/xmp test files/Flash8_Encoder.flv' of type 'com.adobe.flv' with no plugIn.

a sad day!

i swear i did everything right!  it is complaining that the file:

/Users/davec/Library/Spotlight/MySpotlightThing.mdimporter/Contents/MacOS/../Frameworks/my_fw.framework/Versions/A/my_fw

does not exist!  but it DOES!  it's right there!

> malkier:xmp test files davec$ dir /Users/davec/Library/Spotlight/MySpotlightThing.mdimporter/Contents/MacOS/../Frameworks/my_fw.framework/Versions/A/my_fw
> 9864 -rwxr-xr-x  1 davec  staff  5048768 Jul 28 17:18 /Users/davec/Library/Spotlight/MySpotlightThing.mdimporter/Contents/MacOS/../Frameworks/my_fw.framework/Versions/A/my_fw*

any clue anyone?  i stuck!



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Fwd: xcode-users: building spotlight plugin fail (From: "David M. Cotter" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.