The issues youre seeing are because, unlike the instructions youre referencing assume, your built product isnt the actual application, so your copy of the framework cant be located via offsets from the application.
However, rather than mucking with that, let me instead suggest that you include the AP source file in your project and just compile it in. This not only is easier in the first place for you to build, it also makes it harder to crack. Both of the example CoreFoundation (recommended) and Cocoa (not recommended) projects work this way. Best, br On Apr 12, 2010, at 8:38 AM, nimblehost wrote: > Greetings fellow devs, > > I'm running into an issue trying to include the AP framework with a > RapidWeaver plugin I'm working on. Based upon the CocoaCast video and AP's > online documentation I've done all the appropriate steps to get this working: > > 1. Added AquaticPrime.h to my project, imported it in my implementation file > 2. Added AquaticPrime.framework to my project > 3. Added a new Copy Files build phase, then drag and droped the AP framework > into that Copy FIles build phase folder > > The app builds successfully, but the host app (RapidWeaver) throws this error > in the console and my plugin isn't recognized: > > RapidWeaver[2486:a0f] Error loading > /Developer/NimbleHost/RWPlugins/Mobilize/build/Debug/Mobilize.rwplugin/Contents/MacOS/Mobilize: > > dlopen(/Developer/NimbleHost/RWPlugins/Mobilize/build/Debug/Mobilize.rwplugin/Contents/MacOS/Mobilize, > 265): Library not loaded: > @executable_path/../Frameworks/NimblePrime.framework/Versions/A/NimblePrime > Referenced from: > /Developer/NimbleHost/RWPlugins/Mobilize/build/Debug/Mobilize.rwplugin/Contents/MacOS/Mobilize > Reason: image not found > > After searching the interwebs and finding a similar error with those using > the Sparkle framework I tried installing the AP framework to > @loader_path/../Frameworks (could possibly have done this part wrong - did > this through the inspector for the above mentioned Copy Files build phase > folder). > > I've also tried compiling the AP framework from scratch based on bdrister's > github project, and adding that to my project instead - again with the same > results. > > If I remove the framework from my project, the plugin builds successfully and > works properly with the host app. > > Anyone have suggestions as to what might be causing this problem and how to > go about fixing it? > > Best, > > Jonathan > NimbleHost.com > > -- Benjamin Rister President, Decimus Software, Inc. http://decimus.net/ [Non-text portions of this message have been removed] ------------------------------------ MacSB email guidelines: http://tinyurl.com/2g55d6 Use MacSB-Talk for off topic messages: http://groups.google.com/group/macsb-talk Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/macsb/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/macsb/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
