Again, many thanks, Benjamin. Per your suggestion I've added the CoreFoundation 
code to my project, and am using the example code in the main.c file as a base 
to making some necessary adjustments. 

I'm sure a lack of knowledge is the culprit here, but I'm having some problems 
getting the code from the main.c file to compile. Specifically, the CF-based 
string obfuscation is throwing an "CFString literal expression is not constant" 
error. I originally took that to mean I couldn't add it to a method in the 
@implementation section of my class, but placing it in a function outside the 
class results in the same error.

I'll continue to search through the web for solutions, but if you happen to 
have any suggestions on the best way to incorporate this I'm all ears.

Many thanks for your help to this point. :-)

Best,

Jonathan
NimbleHost.com

 

--- In [email protected], Benjamin Rister <b...@...> wrote:
>
> The issues you're seeing are because, unlike the instructions you're 
> referencing assume, your built product isn't the actual application, so your 
> copy of the framework can't 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]
>


Reply via email to